# US 2021/0264415 A1 · Method for processing transaction in blockchain and device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0264415 A1
- Document ID: US20210264415A1
- Status: Published application
- Kind: A1
- Application number: 17/249,181
- Filed: 2021-02-23
- Published: 2021-08-26
- Earliest claimed: 2020-02-25
- Assignees: Baidu Online Network Technology (Beijing) Co., Ltd.
- Applicants: Baidu Online Network Technology (Beijing) Co., Ltd.
- Inventors: Yucao WANG; Wei XIAO
- Web page: https://patentgrep.com/patent/US20210264415A1

## CPC

- G06Q 20/02: involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
- G06Q 20/3825: {Use of electronic signatures}
- G06Q 20/0655: {e-cash managed centrally}
- G06Q 20/0855: {involving a third party}
- G06Q 20/389: {Keeping log of transactions for guaranteeing non-repudiation of a transaction}
- G06Q 20/401: {Transaction verification}
- G06Q 20/405: {Establishing or using transaction specific rules}
- G06Q 2220/00: Business processing using cryptography
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments of the present disclosure provide a method for processing blockchain transaction and an electronic device, and relate to a field of blockchain technologies. The method includes: obtaining a transaction request generated on an initiating node; performing at least one transaction execution control based on an actual service charge set in the transaction request; and generating an endorsement signature for the transaction request and feeding back the endorsement signature to the initiating node in response to determining that a result of the at least one transaction execution control meets a transaction execution condition, enabling the initiating node to submit the at least one transaction request to a blockchain network based on the endorsement signature to perform a chaining operation.

## Claims

### Claim 1

A method for processing blockchain transaction, executed by an endorser end, and the method comprising:
obtaining a transaction request generated on an initiating node;
performing at least one transaction execution control based on an actual service charge set in the transaction request; and
generating an endorsement signature for the transaction request and feeding back the endorsement signature to the initiating node in response to determining that a result of the at least one transaction execution control meets a transaction execution condition, enabling the initiating node to submit the at least one transaction request to a blockchain network based on the endorsement signature to perform a chaining operation.

### Claim 2 (depends on 1)

The method according to claim 1, wherein determining that the result of the at least one transaction execution control meets the transaction execution condition comprises:
combining at least one result of the at least one transaction execution control based on a preset logic rule to generate a final result, and determining whether the final result meets the transaction execution condition.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the preset logic rule comprises at least one or a combination of an AND relation and an OR relation of the at least one result.

### Claim 4 (depends on 1)

The method according to claim 1, wherein performing the at least one transaction execution control based on the actual service charge set in the transaction request comprises:
determining a consensus service charge of the transaction request based on a service charge computing rule of an intelligent contract on which the transaction request is based;
determining that the result does not meet the transaction execution condition in response to determining that the actual service charge is less than the consensus service charge; and
determining that the result meets the transaction execution condition in response to determining that the actual service charge is equal to or greater than the consensus service charge.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the transaction request comprises a plurality of transaction requests, performing the at least one transaction execution control based on the actual service charge set in the transaction request comprises:
obtaining a sequence by ranking differences between actual service charges in the plurality of transaction requests and the consensus service charge in a descending order; and
determining an execution order of the plurality of transaction requests based on the sequence.

### Claim 6 (depends on 4)

The method according to claim 4, wherein the transaction request comprises a plurality of transaction requests, performing the at least one transaction execution control based on the actual service charge set in the transaction request comprises:
determining a historical reference value based on actual service charges of transaction requests of existing blocks in the blockchain;
determining that the result meets the transaction execution condition in response to determining that the actual service charge set in the transaction request is equal to or greater than the historical reference value; and
determining an execution order of the plurality of transaction requests based on processing capability of the initiating node in response to determining that the actual service charge is less than the historical reference value.

### Claim 7 (depends on 6)

The method according to claim 6, wherein determining the execution order of the plurality of transaction requests based on the processing capability of the initiating node comprises:
adding the transaction request to a waiting pool and making the transaction request to line up based on the actual service charge; and
extracting a transaction request ranked first from the waiting pool, and determining that the transaction request meets the transaction execution condition when the initiating node is available in a current block-producing period.

### Claim 8 (depends on 6)

The method according to claim 6, wherein determining the historical reference value based on the actual service charges of the transaction requests of the existing blocks in the blockchain comprises:
calculating an average difference value based on a difference between an actual service charge in each transaction request in a last block of the blockchain and a consensus service charge, and determining the average difference as the historical reference value.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the endorser end is configured on a blockchain node or configured to interact with a blockchain node based on a preset communication protocol.

### Claim 10 (depends on 1)

The method according to claim 1, before performing the at least one transaction execution control based on the actual service charge set in the transaction request, the method further comprising:
determining whether an initiating account or the initiating node of the transaction request belongs to an organizer of the endorser end.

### Claim 11

A method for processing blockchain transaction, executed by a first blockchain node, and the method comprising:
generating a transaction request, and setting an actual service charge in the transaction requests;
transmitting the transaction request to an endorser end to request the endorser end to perform at least one transaction execution control based on the actual service charge;
obtaining an endorsement signature of the transaction request fed back by the endorser end, wherein the endorsement signature is generated in response to determining that a result of the transaction execution control meets a transaction execution condition; and
executing the transaction request, encapsulating the endorsement signature into the transaction request, and submitting the transaction request to a blockchain network to perform a chaining operation.

### Claim 12 (depends on 11)

The method according to claim 11, further comprising:
receiving a transaction request submitted by a second blockchain node in the blockchain network; and
refusing to executing the transaction request submitted by the second blockchain node in response to determining that the transaction request submitted by the second blockchain node does not comprise the endorsement signature.

### Claim 13 (depends on 11)

The method according to claim 11, after executing the transaction request, further comprising:
packing a plurality of transaction request submitted by a local node into a current block in a block-producing period of the local node.

### Claim 14 (depends on 11)

The method according to claim 11, further comprising:
in the block-producing period of the local node, refusing to pack the acquired transaction request into the current block when the acquired transaction request does not comprise the endorsement signature, or when a comprised endorsement signature does not belong to an organizer of the local node.

### Claim 15

An electronic device, comprising:
at least one processor; and
a memory communicatively connected to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to execute a method for processing blockchain transaction, the method comprising:
obtaining a transaction request generated on an initiating node;
performing at least one transaction execution control based on an actual service charge set in the transaction request; and
generating an endorsement signature for the transaction request and feeding back the endorsement signature to the initiating node in response to determining that a result of the at least one transaction execution control meets a transaction execution condition, enabling the initiating node to submit the at least one transaction request to a blockchain network based on the endorsement signature to perform a chaining operation.

### Claim 16 (depends on 15)

The electronic device according to claim 15, wherein determining that the result of the at least one transaction execution control meets the transaction execution condition comprises:
combining at least one result of the at least one transaction execution control based on a preset logic rule to generate a final result, and determining whether the final result meets the transaction execution condition.

### Claim 17 (depends on 16)

The electronic device according to claim 16, wherein the preset logic rule comprises at least one or a combination of an AND relation and an OR relation of the at least one result.

### Claim 18 (depends on 15)

The electronic device according to claim 15, wherein performing the at least one transaction execution control based on the actual service charge set in the transaction request comprises:
determining a consensus service charge of the transaction request based on a service charge computing rule of an intelligent contract on which the transaction request is based;
determining that the result does not meet the transaction execution condition in response to determining that the actual service charge is less than the consensus service charge; and
determining that the result meets the transaction execution condition in response to determining that the actual service charge is equal to or greater than the consensus service charge.

### Claim 19 (depends on 18)

The electronic device according to claim 18, wherein the transaction request comprises a plurality of transaction requests, performing the at least one transaction execution control based on the actual service charge set in the transaction request comprises:
obtaining a sequence by ranking differences between actual service charges in the plurality of transaction requests and the consensus service charge in a descending order; and
determining an execution order of the plurality of transaction requests based on the sequence.

### Claim 20 (depends on 18)

The electronic device according to claim 18, wherein the transaction request comprises a plurality of transaction requests, performing the at least one transaction execution control based on the actual service charge set in the transaction request comprises:
determining a historical reference value based on actual service charges of transaction requests of existing blocks in the blockchain;
determining that the result meets the transaction execution condition in response to determining that the actual service charge set in the transaction request is equal to or greater than the historical reference value; and
determining an execution order of the plurality of transaction requests based on processing capability of the initiating node in response to determining that the actual service charge is less than the historical reference value.
