eth_call
eth_call RPC Method
Last updated
eth_call RPC Method
Last updated
Parameters:
transaction - object - The transaction call object which contains the following fields:
from - string - (optional) The address from which the transaction is sent
to - string - The address to which the transaction is addressed
gas - integer - (optional) The integer of gas provided for the transaction execution
gasPrice - integer - (optional) The integer of gasPrice used for each paid gas encoded as hexadecimal
value - integer - (optional) The integer of value sent with this transaction encoded as hexadecimal
data - string - (optional) The hash of the method signature and encoded parameters. For more information, see the
blockNumber/tag - string - The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized (safe and finalized tags are only supported on Ethereum, Gnosis, Arbitrum, Arbitrum Nova and Avalanche C-chain), see the
Returns:
data - The return value of the executed contract method
Code Examples: