speculative_exec
The speculative_exec
endpoint allows contract developers to test and debug their contracts against the live network using real production data.
Note:
speculative_exec
executes a Deploy at a specified block.
This method will use 150
Compute Units.
Reference: Here
Parameters
block_identifier [object] [optional]. The block hash or height on top of which to execute the deploy. If not supplied, the most recent block will be used.
deploy [object] A Deploy consists of an item containing a smart contract along with the requester's signature(s).
Returns
api_version
String The RPC API version.block_hash
Object The Block hash on top of which the deploy was executed.execution_result
Object The map of Block hash to execution result.
Note for using examples below:
If you copy the Raw data from the cspr.live explorer, you will need to remove part of the
Deploy
object from"api_version"
onwards in your request.
Last updated