eth_call

EthereumC1

Runs a call against the current (or historic) state without broadcasting or spending gas. The standard way to read contract view/pure functions. Historic calls resolve on archive nodes.

Endpoint
POST https://api.1st-node.com/v1/ethereum/rpc

Parameters

NameTypeDescription
callObjectObjectThe call: to, data, and optionally from/gas/value.
blockQUANTITY | TAGState to execute against.

Returns

DATA — the return value of the executed call.

Request

curl https://api.1st-node.com/v1/ethereum/rpc \
  -H "Authorization: Bearer $ONE_KEY" \
  -H "content-type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_call",
  "params": [{ "to": "0xdac17f…", "data": "0x70a08231000000…" }, "latest"]
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_call",
  "params": [{ "to": "0xdac17f…", "data": "0x70a08231000000…" }, "latest"]
}

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x0000000000000000000000000000000000000000000000000000000005f5e100"
}
More transactions methods on Ethereum

Ethereum API

Perguntas frequentes

Does eth_call cost gas?

No — it executes against state without a transaction, so nothing is spent on-chain.

Recarregue, pegue a chave e publique.

Autoatendimento. Pague em cripto ou cartão. Medido por créditos: primitivas pesadas custam mais, as simples são baratas.

Obter chave de API