CPC G06Q 20/3825 (2013.01) [G06Q 20/065 (2013.01); G06Q 20/401 (2013.01); H04L 9/50 (2022.05); G06Q 2220/00 (2013.01); H04L 2209/463 (2013.01); H04L 2209/56 (2013.01)] | 13 Claims |
1. A method for executing a smart contract, wherein the method is performed by a node in a blockchain system and the method comprises:
determining whether the node belongs to a preset permission node of the smart contract;
determining, in response to determining that the node belongs to the preset permission node of the smart contract, whether a preset executing moment for executing the smart contract is reached;
determining, in response to determining that the preset executing moment for executing the smart contract is reached, whether a to-be-executed transaction sent by another node in the blockchain system and used for executing the smart contract has been received;
in response to determining that the to-be-executed transaction submitted by the another node has not been received, generating a to-be-executed transaction corresponding to the node, and sending the generated to-be-executed transaction to the blockchain system;
performing consensus with the another node on the to-be-executed transaction corresponding to the smart contract; and
obtaining and executing the smart contract according to the to-be-executed transaction on which the consensus is performed.
|