curl --request POST \
--url https://ronin-mainnet.core.chainstack.com/3997273fc956a67dc6982384500e669e \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_call",
"params": [
{
"to": "0x5a254c12ddeb86e2f5626d59c490eb3db1974944",
"data": "0x0d9160e7"
},
"latest"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}curl --request POST \
--url https://ronin-mainnet.core.chainstack.com/3997273fc956a67dc6982384500e669e \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_call",
"params": [
{
"to": "0x5a254c12ddeb86e2f5626d59c490eb3db1974944",
"data": "0x0d9160e7"
},
"latest"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}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.
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.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.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.Was this page helpful?