Parameters
- transactionobject
The transaction call object which contains the following fields:
- tostringREQUIRED
The address to which the transaction is addressed
- gasinteger
The integer of gas provided for the transaction execution
- gasPriceinteger
The integer of gasPrice used for each paid gas encoded as hexadecimal
- maxPriorityFeePerGasinteger
The maximum fee per gas to pay above the base fee (EIP-1559)
- maxFeePerGasinteger
The maximum total fee per gas the sender is willing to pay (EIP-1559)
- valueinteger
The integer of value sent with this transaction encoded as hexadecimal
- datastring
The hash of the method signature and encoded parameters. For more information, see the Contract ABI description in the Solidity documentation
- blockNumberstringREQUIRED
The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized
Returns
- accessListarray
A list of addresses and storage keys that the transaction will access
- addressstring
The address that will be accessed
- storageKeysarray
The storage keys that will be accessed at this address
- gasUsedstring
The estimated gas used by the transaction with the access list included
- errorstring
Error message if the transaction would revert (optional, present only on failure)
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"accessList": [],6"gasUsed": "0x5208"7}8}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"accessList": [],6"gasUsed": "0x5208"7}8}