Simulating Bundles via RPC
The SignetBundle in JSON
SignetBundle in JSON{
"jsonrpc": "2.0",
"id": 1,
"method": "signet_simBundle",
"params": [
{
txs, // Array[String], A list of signed transactions to execute in an atomic bundle
blockNumber, // String, a hex encoded block number for which this bundle is valid on
stateBlockNumber, // String, either a hex encoded number or a block tag for which state to base this simulation on. Can use "latest"
timestamp, // (Optional) Number, the timestamp to use for this bundle simulation, in seconds since the unix epoch
gas_limit, // (Optional) Number, the gas limit of the block to use for this simulation.
difficulty, // (Optional) U256, the difficulty of the block to use for this simulation.
base_fee, // (Optional) Number, basefee of the block to use for this simulation.
host_fills, // Map<Address, Map<Address, Number>>, Host fills to be applied to the bundle for simulation.
}
]
}Simulating a bundle with "signet_simBundle"
"signet_simBundle"Calculating the bundleHash
bundleHashLast updated