IP Library Granted Patent US 11,099,887
Granted Patent B2
US 11,099,887 · App. 16/450,976 · Granted Aug 24, 2021

Service processing method and apparatus

Inventor: Honglin Qiu (Hangzhou, CN)
Assignee: ADVANCED NEW TECHNOLOGIES CO., LTD.
G06F9/466G06F8/61G06Q20/3821G06Q40/12G06Q20/389
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,099,887
App. No.
16/450,976
Granted
Aug 24, 2021
Kind
B2
Abstract

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for transaction processing are provided. One of the methods includes: receiving a transaction request for a target transaction; loading a transaction template matching a transaction type of the target transaction; processing the target transaction according to the transaction template to obtain transaction information; and writing the transaction information into a blockchain.

Claims (84)

1. A transaction processing method, comprising:

receiving a transaction request for a target transaction;

determining whether any of a plurality of transaction templates matches a transaction type of the target transaction;

in response to determining that none of the plurality of transaction templates matches the transaction type of the target transaction, generating a transaction template matching the transaction type of the target transaction;

loading the transaction template matching the transaction type of the target transaction;

processing the target transaction according to the transaction template to obtain transaction information; and

writing the transaction information into a blockchain.

2. The transaction processing method according to claim 1 , further comprising:

determining a transaction identifier of the target transaction; and

determining the transaction type of the target transaction according to the transaction identifier.

3. The transaction processing method according to claim 1 , wherein processing the target transaction according to the transaction template comprises:

determining one or more rules in the transaction template matching the target transaction; and

processing the target transaction according to the one or more rules.

4. The transaction processing method according to claim 1 , wherein processing the target transaction according to the transaction template comprises:

processing the target transaction according to one or more rules in the transaction template.

5. The transaction processing method according to claim 4 , wherein processing the target transaction according to the one or more rules comprises:

determining a check rule in the one or more rules;

checking whether the transaction request satisfies a preset condition according to the check rule; and

in response to determining that the transaction request satisfies the preset condition according to the check rule, processing the target transaction according to a processing rule in the one or more rules; or

in response to determining that the transaction request does not satisfy the preset condition according to the check rule, prompting that the target transaction processing fails.

6. The transaction processing method according to claim 4 , wherein the transaction request is a tracing data request and the target transaction has a tracing transaction type, and wherein loading the transaction template matching the transaction type of the target transaction comprises: determining a tracing transaction processing rule corresponding to the tracing transaction type from a tracing template, the tracing template corresponding to the tracing transaction type; and

wherein processing the target transaction according to the transaction template to obtain transaction information and writing the transaction information into the blockchain comprises:

analyzing the tracing data request to obtain tracing data, a recipient and a sender of the tracing data based on the tracing transaction processing rule; and

transferring the tracing data from the sender to the recipient, generating corresponding transfer information, and writing the transfer information into the blockchain.

7. The transaction processing method according to claim 4 , wherein the transaction request is an authentication data request and the target transaction has an authentication transaction type, and wherein loading the transaction template matching the transaction type of the target transaction comprises: determining an authentication transaction processing rule corresponding to the authentication transaction type from an authentication template, the authentication template corresponding to the authentication transaction type; and

wherein processing the target transaction according to the transaction template to obtain transaction information and writing the transaction information into the blockchain comprises:

analyzing the authentication data request to obtain authentication data based on the authentication transaction processing rule; and

writing the authentication data into the blockchain.

8. The transaction processing method according to claim 4 , wherein the transaction request is a contract data request and the target transaction has a contract transaction type, and wherein loading the transaction template matching the transaction type of the target transaction comprises: determining a contract transaction processing rule corresponding to the contract transaction type from a contract transaction template, the contract transaction template corresponding to the contract transaction type; and

wherein processing the target transaction according to the transaction template to obtain transaction information and writing the transaction information into the blockchain comprises:

analyzing the contract data request to obtain a smart contract's address and transaction parameters based on the contract transaction processing rule;

transmitting the transaction parameters to the smart contract according to the smart contract's address, to enable the smart contract to execute the transaction parameters and return a transaction result; and

writing the received transaction result into the blockchain.

9. The transaction processing method according to claim 4 , wherein the target transaction has an exchange transaction type, and wherein loading the transaction template matching the transaction type of the target transaction comprises: determining an exchange transaction processing rule corresponding to the exchange transaction type from an exchange template, the exchange template corresponding to the exchange transaction type; and

wherein processing the target transaction according to the transaction template to obtain transaction information and writing the transaction information into the blockchain comprises:

analyzing the transaction request to obtain a transaction initiator's account, a transaction amount, and a transaction recipient's account based on the exchange transaction processing rule;

subtracting the transaction amount from the transaction initiator's account, and transferring the transaction amount into the transaction recipient's account to obtain transaction details; and

writing the transaction details into the blockchain.

10. A system for transaction processing, comprising one or more processors and one or more non-transitory computer-readable memories coupled to the one or more processors and configured with instructions executable by the one or more processors to cause the system to perform operations comprising:

receiving a transaction request for a target transaction;

determining whether any of a plurality of transaction templates matches a transaction type of the target transaction;

in response to determining that none of the plurality of transaction templates matches the transaction type of the target transaction, generating a transaction template matching the transaction type of the target transaction;

loading the transaction template matching the transaction type of the target transaction;

processing the target transaction according to the transaction template to obtain transaction information; and

writing the transaction information into a blockchain.

11. The system according to claim 10 , wherein the operations further comprises:

determining a transaction identifier of the target transaction; and

determining the transaction type of the target transaction according to the transaction identifier.

12. The system according to claim 10 , wherein processing the target transaction according to the transaction template comprises:

determining one or more rules in the transaction template matching the target transaction; and

processing the target transaction according to the one or more rules.

13. The system according to claim 10 , wherein processing the target transaction according to the transaction template comprises:

processing the target transaction according to one or more rules in the transaction template.

14. The system according to claim 13 , wherein processing the target transaction according to the one or more rules comprises:

determining a check rule in the one or more rules;

checking whether the transaction request satisfies a preset condition according to the check rule; and

in response to determining that the transaction request satisfies the preset condition according to the check rule, processing the target transaction according to a processing rule in the one or more rules; or

in response to determining that the transaction request does not satisfy the preset condition according to the check rule, prompting that the target transaction processing fails.

15. A transaction processing method, comprising:

receiving a transaction request;

determining a transaction type of a target transaction included in the transaction request;

loading, according to the transaction type, a transaction template matching the transaction type;

processing the target transaction according to the transaction template and writing obtained transaction information obtained from the processing into a target block in a blockchain;

computing a check value of the target block;

assigning the check value as a state change value of the target block; and

storing the state change value of the target block in the blockchain, the state change value being used to check whether the transaction information recorded in the target block is consistent with transaction information recorded in other blocks in the blockchain.

16. The method according to claim 15 , wherein processing the target transaction according to the transaction template comprises:

determining one or more rules in the transaction template matching the target transaction; and

processing the target transaction according to the one or more rules.

17. The method according to claim 15 , wherein processing the target transaction according to the transaction template comprises:

processing the target transaction according to one or more rules in the transaction template.

18. A system for transaction processing, comprising one or more processors and one or more non-transitory computer-readable memories coupled to the one or more processors and configured with instructions executable by the one or more processors to cause the system to perform operations comprising:

receiving a transaction request;

determining a transaction type of a target transaction included in the transaction request;

loading, according to the transaction type, a transaction template matching the transaction type;

processing the target transaction according to the transaction template and writing obtained transaction information obtained from the processing into a target block in a blockchain;

computing a check value of the target block;

assigning the check value as a state change value of the target block; and

storing the state change value of the target block in the blockchain, the state change value being used to check whether the transaction information recorded in the target block is consistent with transaction information recorded in other blocks in the blockchain.

19. The system according to claim 18 , wherein processing the target transaction according to the transaction template comprises:

determining one or more rules in the transaction template matching the target transaction; and

processing the target transaction according to the one or more rules.

20. The system according to claim 18 , wherein processing the target transaction according to the transaction template comprises:

processing the target transaction according to one or more rules in the transaction template.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 16, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053796/0281 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 3, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053702/0392 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 24, 2019
From: QIU, HONGLIN
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 049572/0179 →