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
- gasinteger
The integer of the gas provided for the transaction execution
- gasPriceinteger
The integer of the gasPrice used for each paid gas
- valueinteger
The integer of the value sent with this transaction
- datastring
The hash of the method signature and encoded parameters
- 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, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators
- 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
- diffModeboolean
When set to true, diff mode returns the differences between the transaction's pre and post-state. The result object will contain a pre and a post object.
Returns
- resultobject
Call frame returned by callTracer (the default). Other tracers return their own response formats.
- fromstring
The address the transaction is sent from
- gasstring
The integer of the gas provided for the transaction execution
- gasUsedstring
The integer of the gas used
- tostring
The address the transaction is directed to
- inputstring
The data given at the time of input
- callsarray
(Conditional) An array containing information about internal calls made during the transaction
- fromstring
The address making the call
- gasstring
The gas limit specified for the call
- gasUsedstring
The amount of gas used during the call
- tostring
The address being called
- inputstring
The input data for the call
- outputstring
(Optional) The output data of the call
- valuestring
The value (in Wei) sent with the call
- typestring
The type of call (e.g., CALL or STATICCALL)
- callsarray
The sub-calls associated with the call
- valuestring
The integer of the value sent with this transaction
- typestring
The type of the call
- errorstring
error returned by the Ritual node.
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"from": "0x3f91da51aa4a5c42f3882c5b5a81ed308413e7f0",6"gas": "0x2faf080",7"gasUsed": "0x5640",8"to": "0xcc5495df16633c0d0c189a71ed3a723c2687dae1",9"input": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be",10"value": "0x0",11"type": "CALL"12}13}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"from": "0x3f91da51aa4a5c42f3882c5b5a81ed308413e7f0",6"gas": "0x2faf080",7"gasUsed": "0x5640",8"to": "0xcc5495df16633c0d0c189a71ed3a723c2687dae1",9"input": "0x70a082310000000000000000000000006e0d01a76c3cf4288372a29124a26d4353ee51be",10"value": "0x0",11"type": "CALL"12}13}