eth_call
Executes a new message call immediately without creating a transaction on the block chain.
Params
(2)1. transaction (required)
from
anyto
anygas
anymaxFeePerGas
string or null
maxPriorityFeePerGas
string or null
value
anyinput
anydata
anynonce
anychainId
anyaccessList
any2. block (required)
Quantity
(any of)
integer
>= 0
Result
(String)string
Example
Request
await window.ethereum.request({
"method": "eth_call",
"params": [
{
"accessList": null,
"chainId": null,
"data": null,
"from": null,
"gas": null,
"input": null,
"maxFeePerGas": "0x0",
"maxPriorityFeePerGas": "0x0",
"nonce": null,
"to": null,
"value": null
}
]
});
Result
null