Parameters
- transactionsarrayREQUIRED
An array of transaction hashes to simulate. The transactions are executed in the given order
- blockNumberstringREQUIRED
The block number in hexadecimal format or tags whose state the bundle is simulated on top of. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators
Returns
- resultobject
The bundle simulation result with the following fields:
- bundleHashstring
The hash of the simulated bundle
- resultsarray
An array with one result object per transaction, in execution order, with the following fields:
- txHashstring
The hash of the simulated transaction
- gasUsedinteger
The amount of gas used by the transaction
- valuestring
The 32-byte return value of the transaction. Present only when the transaction succeeds
- errorstring
The error message, such as out of gas. Present only when the transaction fails
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"bundleHash": "0x6ee1e51e40919d33d5fbdf01edba6297afa08e441793b7f82103385b6c0fe127",6"results": [7{8"gasUsed": 34681,9"txHash": "0x748d1a88c80d2163f34b320637f42fd3d09578d7e63409cbe20bbf937ce2aefb",10"value": "0x0000000000000000000000000000000000000000000000000000000000000000"11},12{13"gasUsed": 317886,14"txHash": "0x6eee322435106806401b9449809d01ccd8a7f0b096b81bf3df60b6a0235715fb",15"value": "0x000000000000000000000000000000000000000000000000000000006d117847"16}17]18}19}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"bundleHash": "0x6ee1e51e40919d33d5fbdf01edba6297afa08e441793b7f82103385b6c0fe127",6"results": [7{8"gasUsed": 34681,9"txHash": "0x748d1a88c80d2163f34b320637f42fd3d09578d7e63409cbe20bbf937ce2aefb",10"value": "0x0000000000000000000000000000000000000000000000000000000000000000"11},12{13"gasUsed": 317886,14"txHash": "0x6eee322435106806401b9449809d01ccd8a7f0b096b81bf3df60b6a0235715fb",15"value": "0x000000000000000000000000000000000000000000000000000000006d117847"16}17]18}19}