Call

eth_call

eth_call Executes a new message call immediately without creating a transaction on the block chain. This function requires input as follows:

  • URL 1 : RPC endpoint (Blockchain URL).

  • ID 2 : RPC ID(Optional), used when calling multiple asynchronous RPC calls to differentiate your response data from each other.

  • From Address 3 : The address the transaction is sent from.

  • To Address 4 : The address the transaction is directed to.

  • Data 5 : The hash of the invoked method signature and encoded parameters (ABI).

  • Block Identifier(Optional) 6 : The block number to use which have multiple options:

    • Earliest for the earliest/genesis block.

    • Latest for the latest mined block.

    • Pending for the pending state/transactions.

The returned Response is a struct that holds the JSON- info of the header and body of the response as well as https status code.

NOTE

Last updated