The invention discloses a method and a device for realizing an
oracle machine calling process based on a
smart contract. The method comprises the following steps: acquiring an
oracle machine calling event of an original transaction, wherein the
oracle machine calling event comprises an
oracle machine calling request, a request identifier and an intelligent contract address of an intelligent contract of an original transaction, and the request identifier is generated based on the
oracle machine calling request and is globally unique; sending an
oracle machine calling event to the trusted execution environment module during original transaction block writing; starting a
timer and sending a
data acquisition request based on the oracle machine calling request to the outside; and if an external response to the
data acquisition request is received before the
timer finishes running, constructing a first
callback transaction and sending the first
callback transaction to the executor, thereby enabling the executor to execute the first
callback transaction, and further executing callback logic of the
smart contract of the original transaction. According to the embodiment of the invention, the transaction execution speed of the
blockchain is ensured, the transaction execution efficiency is high, and contract
code writing is simple.