Parameters
- objectobjectREQUIRED
The transaction call object with the following fields:
- fromstring
The address the transaction is sent from
- tostringREQUIRED
The address the transaction is directed to
- gasstring
The integer of the gas provided for the transaction execution
- maxFeePerGasstring
The maximum fee per gas that the transaction is willing to pay
- maxPriorityFeePerGasstring
The maximum priority fee per gas that the transaction is willing to pay
- valuestring
The integer of the value sent with this transaction
- inputstring
The data given at the time of input
- datastring
The hash of the method signature and encoded parameters
- noncestring
The number of transactions made by the sender prior to this one
- chainIdstring
The chain ID of the network
- accessListarray
A list of addresses and storage keys that the transaction plans to access
- blockReferencestringREQUIRED
The block number in hexadecimal format, the block hash, or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions
- objectobjectREQUIRED
The tracer object with the following fields:
- tracerstring
The type of tracer. It could be callTracer or prestateTracer
- callTracerstring
The calltracer keeps track of all call frames, including depth 0 calls, that are made during a transaction
- prestateTracerstring
The prestateTracer replays the transaction and tracks every part of state that occured during the transaction
- tracerConfigobject
The object to specify the configurations of the tracer
- onlyTopCallboolean
When set to true, this will only trace the primary (top-level) call and not any sub-calls. It eliminates the additional processing for each call frame
- timeoutstring
A string of decimal integers that overrides the JavaScript-based tracing calls default timeout of 5 seconds.
Returns
- resultobject
The result object which contains the following fields:
- typestring
The type of the call
- fromstring
The address the transaction is sent from
- tostring
The address the transaction is directed to
- valuestring
The integer of the value sent with this transaction
- gasstring
The integer of the gas provided for the transaction execution
- gasUsedstring
The integer of the gas used
- inputstring
The data given at the time of input
- outputstring
(Optional) The data which is returned as an output
- errorstring
(Optional) The type of error, if any
- revertReasonstring
(Optional) The type solidity revert reason, if any
1{2"jsonrpc": "2.0",3"result": {4"type": "CALL",5"from": "0x0000000000000000000000000000000000000000",6"to": "0x6b175474e89094c44da98b954eedeac495271d0f",7"value": "0x0",8"gas": "0x7b98a0",9"gasUsed": "0x7b98a0",10"input": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"11},12"id": 113}
1{2"jsonrpc": "2.0",3"result": {4"type": "CALL",5"from": "0x0000000000000000000000000000000000000000",6"to": "0x6b175474e89094c44da98b954eedeac495271d0f",7"value": "0x0",8"gas": "0x7b98a0",9"gasUsed": "0x7b98a0",10"input": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be"11},12"id": 113}