eth_call
Executes a new message call immediately without creating a transaction on the block chain.
Params
(2)1. Transaction (required)
type
stringMatch pattern:
^0x([0-9a-fA-F]?){1,2}$
nonce
stringMatch pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
to
from
stringMatch pattern:
^0x[0-9a-fA-F]{40}$
gas
stringMatch pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
value
stringMatch pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
input
stringMatch pattern:
^0x[0-9a-f]*$
gasPrice
stringThe gas price willing to be paid by the sender in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
maxPriorityFeePerGas
stringMaximum fee per gas the sender is willing to pay to miners in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
maxFeePerGas
stringThe maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
maxFeePerBlobGas
stringThe maximum total fee per gas the sender is willing to pay for blob gas in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
accessList
array[Access list entry]EIP-2930 access list
address
stringMatch pattern:
^0x[0-9a-fA-F]{40}$
storageKeys
array[string]Match pattern:
^0x[0-9a-f]{64}$
blobVersionedHashes
array[string]List of versioned blob hashes associated with the transaction's EIP-4844 data blobs.
Match pattern:
^0x[0-9a-f]{64}$
blobs
array[string]Raw blob data.
Match pattern:
^0x[0-9a-f]*$
chainId
stringChain ID that this transaction is valid on.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
authorizationList
array[object]EIP-7702 authorization list
chainId
stringChain ID on which this transaction is valid
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
nonce
stringMatch pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
address
stringMatch pattern:
^0x[0-9a-fA-F]{40}$
yParity
stringThe parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature
Match pattern:
^0x([0-9a-fA-F]?){1,2}$
r
stringMatch pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
s
stringMatch pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
2. Block
Block number
(any of)
string
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
Result
(Return data)string
Match pattern:
^0x[0-9a-f]*$
Example
Request
await window.ethereum.request({
"method": "eth_call",
"params": [
{
"to": "0x69498dd54bd25aa0c886cf1f8b8ae0856d55ff13",
"value": "0x1"
},
"latest"
]
});
Result
"0x"