Skip to main content

eth_call

POST 

/

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

Parameters:

  • to: the address to which the transaction is directed.
  • data: hash of the method signature and encoded parameters.
  • blockNumber: block number in hexadecimal format or the strings 'latest', 'earliest', 'pending'.

Returns:

  • result: a hex string representing the return value of the executed contract call.

Request

Query Parameters

    apikey stringrequired

    Your API key

Body

    id integer
    jsonrpc string
    method string

    params

    object[]

  • Array [

  • anyOf

    to string

    The address to which the transaction is directed.

    data string

    Hash of the method signature and encoded parameters.

  • ]

Responses

Successful response

Schema

    jsonrpc string
    id integer
    result string
Loading...