Skip to main content
GET
eth_call

Authorizations

apikey
string
query
required

Enter your Etherscan API key, or set one up if you don't have one.

Query Parameters

chainid
string
required

Chain ID to query, eg 1 for Ethereum, 42161 for Arbitrum from our supported chains.

module
string
default:proxy
required

Set to proxy for this endpoint.

action
string
default:eth_call
required

Set to eth_call for this endpoint.

to
string
required

The address to interact with, as a 0x-prefixed hex address.

from
string

The address the call is sent from, as a 0x-prefixed hex address. Defaults to the zero address, so set it when the result depends on the caller.

data
string

The 4-byte function selector followed by the ABI-encoded arguments, as 0x-prefixed hex. For example, 0x70a08231 followed by a padded address calls balanceOf.

gas
string

Gas limit, as 0x-prefixed hex, such as 0x5208 for 21000. Decimal values are read as hex: 21000 becomes 0x21000 (135168).

gasPrice
string

Gas price in wei, as 0x-prefixed hex, such as 0x64 for 100 wei. Decimal values are read as hex: 100 becomes 0x100 (256 wei).

value
string

Native currency to send, in wei, as 0x-prefixed hex, such as 0x64 for 100 wei. Decimal values are read as hex: 100 becomes 0x100 (256 wei).

tag
string
default:latest

Only latest is supported. Defaults to latest when omitted.

Response

200 - application/json

Successful response

jsonrpc
string

JSON-RPC protocol version.

id
integer

Fixed JSON-RPC request ID of 1. This endpoint does not echo a caller-supplied ID.

result
string

Return value of the executed call, as a hex string.