execution
eth_call
Simulate a call
Executes a read-only contract call against the given block state. No transaction is broadcast.POST
https://eth.rpc.pinax.network/v1/<API_KEY>/
Required parameters
| Name | Type | Description |
|---|---|---|
torequired | address | Contract address being called. e.g. 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 |
datarequired | hex | ABI-encoded call data. e.g. 0x18160ddd |
blockrequired | block | Block number (hex) or tag. e.g. latest |
Optional parameters
| Name | Type | Description |
|---|---|---|
from | address | Optional sender to use for the simulation. |
Request body
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_call",
"params": [
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"0x18160ddd",
null,
"latest"
]
}Response
200 OKHex-encoded ABI return data.
{ "jsonrpc": "2.0", "id": 1, "result": "0x000000000000000000000000000000000000000000000000000000174876e800" }