Parameters
- bundlesarrayREQUIRED
An array of bundles. Each bundle is executed in order, with the following fields:
- transactionsarrayREQUIRED
An array of transaction call objects executed in order. Each object can contain from, to, gas, gasPrice, value, and data
- simulationContextobjectREQUIRED
The simulation context object with the following fields:
- blockNumberstringREQUIRED
The block number in hexadecimal format, the block hash, or tags such as latest, safe, or finalized
- transactionIndexinteger
The position in the block at which the bundles are simulated
- traceConfigobject
The tracer object with the following fields. If omitted, the default struct logger output is returned:
- tracerstring
The type of tracer. It could be callTracer or prestateTracer
Returns
- resultarray
An array of arrays of trace objects, indexed as result[bundleIndex][transactionIndex], in request order. The indices are array positions, not object keys
- [bundleIndex]array
The array at result[bundleIndex], containing one trace object per transaction. Access each trace as result[bundleIndex][transactionIndex]. With callTracer, each trace object has the following fields; without traceConfig, it contains gas, failed, returnValue, and structLogs instead
- fromstring
The address the call is sent from
- gasstring | integer
With callTracer, the gas provided for the call, encoded as hexadecimal. Without traceConfig, the total gas used by the transaction
- gasUsedstring
The gas used by the call, encoded as hexadecimal
- tostring
The address the call is directed to
- inputstring
The call data
- outputstring
The data returned by the call
- valuestring
The value sent with the call, encoded as hexadecimal
- typestring
The type of the call, such as CALL, STATICCALL, or CREATE
- failedboolean
Returned when traceConfig is omitted. Whether the transaction failed
- returnValuestring
Returned when traceConfig is omitted. The return value of the call
- structLogsarray
Returned when traceConfig is omitted. The trace result of each step with the following fields:
- pcinteger
The current index in bytecode
- opstring
The name of the current executing operation
- gasinteger
The available gas in the execution
- gasCostinteger
The gas cost of the operation
- depthinteger
The number of levels of calling functions
- stackarray
An array of values in the current stack
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5[6{7"from": "0x0000000000000000000000000000000000000001",8"gas": "0x23c34600",9"gasUsed": "0x5de2",10"to": "0x6b175474e89094c44da98b954eedeac495271d0f",11"input": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be",12"output": "0x0000000000000000000000000000000000000000000000000858898f93629000",13"value": "0x0",14"type": "CALL"15},16{17"from": "0x0000000000000000000000000000000000000001",18"gas": "0x23c34600",19"gasUsed": "0x5b8d",20"to": "0x6b175474e89094c44da98b954eedeac495271d0f",21"input": "0x18160ddd",22"output": "0x00000000000000000000000000000000000000000edea83121566ef30d4cb500",23"value": "0x0",24"type": "CALL"25}26]27]28}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5[6{7"from": "0x0000000000000000000000000000000000000001",8"gas": "0x23c34600",9"gasUsed": "0x5de2",10"to": "0x6b175474e89094c44da98b954eedeac495271d0f",11"input": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be",12"output": "0x0000000000000000000000000000000000000000000000000858898f93629000",13"value": "0x0",14"type": "CALL"15},16{17"from": "0x0000000000000000000000000000000000000001",18"gas": "0x23c34600",19"gasUsed": "0x5b8d",20"to": "0x6b175474e89094c44da98b954eedeac495271d0f",21"input": "0x18160ddd",22"output": "0x00000000000000000000000000000000000000000edea83121566ef30d4cb500",23"value": "0x0",24"type": "CALL"25}26]27]28}