This API simulates the smart contract execution locally without submitting the smart contract transaction to the blockchain. It is useful to evaluate the execution result, calculate the gas cost, etc.
Parameters
Object Name | Required | Type | Detail |
---|---|---|---|
sctx_bytes | ✅ | String | the signed transaction bytes |
"params":[
{
"sctx_bytes":"02f8a4c78085e8d4a51000f86ff86d942e833968e5bb786ae419c4d13189fb081cc43babd3888ac7230489e800008901158e46f1e875100016b841393e2eba6241482098cf11ef4dd869209d7ebd716397f3c862ca5b762bbf403006b1fa009786102383c408cabdf7450c1c73d4dd4a20d3b48a39a88ffe0ecb0e01eae9949f1233798e905e173560071255140b4a8abd3ec6d3888ac7230489e800008901158e460913d00000"
}
]
Result
Result Fields
Key | Type | Detail |
---|---|---|
vm_return | String | the return of the virtual machine |
contract_address | String | the address of the corresponding smart contract |
gas_used | String | amount of gas used for the smart contract execution |
vm_error | String | returned by the virtual machine if any |