speculative_exec
Last updated
Last updated
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
.
[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.
[object] A Deploy consists of an item containing a smart contract along with the requester's signature(s).
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.
speculative_exec
executes a Deploy at a specified block. When you test one of the examples below it may be expired due to timestamp, you can find the latest deploys to use for Casper testnet and mainnet .