zkLink Nova chain RPC Methods & API Documentation
eth_call RPC Method
eth_call
executes an on-chain call immediately without creating a transaction on the block chain.
Returns
data
- The return value of the executed contract method
Need RPC API keys?
Get 12.5M archival requests for free today.
Parameters
1.TRANSACTION CALL OBJECT
[required]
from
[optional] - The address from which the transaction is sent.to
- The address where the transaction is sent to.gas
[optional] - Integer of the gas provided for the transaction execution. Althougheth_call
consumes zero gas, this parameter may still be needed by some executions.gasPrice
[optional] - Integer of the gasPrice used for each paid gas as hexadecimal.value
[optional] - Interger of the value sent with a stated transactiondata
[optional] - Hash of the method signature and encoded parameters. More info 👉 Ethereum Contract ABI (opens in a new tab)
2.BLOCK PARAMETER
[required]
The string "latest", "earliest", "pending", "safe" or "finalized", or an hexadecimal block number."Safe" and "finalized" are only availible on Ethereum and Arbitrum One chains. Read block parameter description in Ethereum documentation (opens in a new tab).
Request
POST https://<network>.chainnodes.org/YOUR-API-KEY
Example
💡 Confusing?
Ask our experienced blockchain developers in Telegram
- HTTPS POST Request with a JSON RPC call in the body
- Replace YOUR-API-KEY with the API key from your CHAINNODES.ORG Dashboard
- You can use a different supported network by replacing
zklink-nova-mainnet
curl https://zklink-nova-mainnet.chainnodes.org/YOUR-API-KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"from": "0x47ac0Fb4F2D84898e4D9E7b4DaB3C24507a6D503","to": "0xdAC17F958D2ee523a2206206994597C13D831ec7","gas": "0x92c0","gasPrice": "0x7896e72a000","value": "0x0","data": "0x70a0823100000000000000000000000047ac0fb4f2d84898e4d9e7b4dab3c24507a6d503"}, "latest"],"id":1}'
Body
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x000000000000000000000000000000000000000000000000000470de54da7138"
}