首页>
外国专利>
EXECUTION METHOD AND APPARATUS FOR SMART CONTRACT IN BLOCKCHAIN, AND ELECTRONIC DEVICE
EXECUTION METHOD AND APPARATUS FOR SMART CONTRACT IN BLOCKCHAIN, AND ELECTRONIC DEVICE
展开▼
机译:区块链中智能合约的执行方法和装置,以及电子设备
展开▼
页面导航
摘要
著录项
相似文献
摘要
An execution method and apparatus for a smart contract in a blockchain, and an electronic device. The method comprises: receiving a first transaction submitted by a user, wherein the first transaction carries a first contract address of a logic contract needing to be called for service execution (310); in response to the first transaction, calling the logic contract corresponding to the first contract address, and acquiring a service logic maintained in a contract account corresponding to the logic contract (320); determining a field name of status data which is lacking in execution of the service logic (330); calling a routing contract of a blockchain, and querying a second contract address mapped from the first contract address in a mapping table maintained in a contract account corresponding to the routing contract (340); calling a data contract corresponding to the second contract address, and acquiring status data of the field name maintained in a contract account corresponding to the data contract (350); and supplementing the status data, which is lacking in the service logic, with the status data, so as to execute the service logic (360).
展开▼