eth_call RPC Method
MegaETH nodes use a ~15-day pruning window for historical state data. Calls targeting a block older than ~15 days (1,296,064 blocks) may fail because the required account and storage history has been pruned. For more details, see the MegaETH Pruning Policy.
Parameters
transaction
object
Loading...
from
string
Loading...
to
string
REQUIRED
Loading...
gas
integer
Loading...
gasPrice
integer
Loading...
value
integer
Loading...
data
string
Loading...
blockNumber/tag
string
REQUIRED
Loading...
Returns
data
string
Loading...
Request
1curl -X POST "https://docs-demo.megaeth-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_call",6"params": [7{8"to": "0x219f1811f77252137196cB3D7d81bD491A3a7a92",9"data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"10},11"latest"12],13"id": 114}'
1curl -X POST "https://docs-demo.megaeth-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_call",6"params": [7{8"to": "0x219f1811f77252137196cB3D7d81bD491A3a7a92",9"data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"10},11"latest"12],13"id": 114}'
Response
1{2"jsonrpc": "2.0",3"result": "0x",4"id": 15}
1{2"jsonrpc": "2.0",3"result": "0x",4"id": 15}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free