eth_call | Ronin

The interactive example here is a call to the Ronin Staking Vesting contract. Specifically, to the lastBlockSendingBonus function. The data 0x0d9160e7 in the call is the signature for the function lastBlockSendingBonus. You can generate the function signature using Chainstack's Web3Tools by typing lastBlockSendingBonus() into the function name field.

Ronin API method eth_call allows for executing a message call transaction, which directly interacts with a smart contract method without creating a transaction on the blockchain. This is particularly useful for read-only operations that don't require a transaction to be committed to a block.

👍

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • object - The transaction call object:
    • to: The address of the contract to call.
    • data: The data to send to the contract. This is usually the method signature and encoded parameters.
  • string - The block number or string (latest, earliest, pending) specifying the state to use for executing the call.

Response

  • result - The return value of the executed contract method, encoded in data. This could be a direct value or a set of values depending on the contract's method called.

Use case

The eth_call method is essential for interacting with smart contracts when you need to query their state or execute their read-only methods. For example, getting the balance of a token for a specific address, checking the status of a decentralized application, or any other operation that doesn't change the state of the blockchain.

Try the eth_call RPC method yourself

Language
Click Try It! to start a request and see the response here!