Skip to main content

eth_call

Executes a new message call immediately without creating a transaction on the block chain.

Params

(2)

1. block (required)

(any of)
string<hex>

2. transaction (required)

accessList
any
chainId
any
from
any
gas
any
maxFeePerGas
string or null
maxPriorityFeePerGas
string or null
nonce
any
to
any
value
any

Result

(String)
string

Example

Request

await window.ethereum.request({
"method": "eth_call",
"params": [
{
"accessList": null,
"chainId": null,
"from": null,
"gas": null,
"maxFeePerGas": "0x0",
"maxPriorityFeePerGas": "0x0",
"nonce": null,
"to": null,
"value": null
}
]
});

Result

null

Params

block

transaction


Request

await window.ethereum.request({
"method": "eth_call",
"params": [
null,
null
]
});