eth_call
Executes a new message call immediately without creating a transaction on the block chain.
Parameters
Object
- The transaction call object with the following:from
(optional): the address the transaction is sent from.to
(required): the address the transaction is sent to.gas
(optional): Integer of the gas provided for the transaction execution. eth_call consumes zero gas, but this parameter may be needed by some executions.gasPrice
(optional): Integer of the gasPrice used for each paid gas.value
(optional): Integer of the value sent with this transaction.data
(optional): Hash of the method signature and encoded parameters. For details see Ethereum Contract ABI in the Solidity documentation.
Quantity
ortag
- choose 1 of the following options:A hexadecimal block number.
"latest"
- the latest mined block."finalized"
- the latest finalized block."pending"
- the pending state/transactions.
Sample Request
curl https://lb.nodies.app/v1/<INSERT URL> \
-H "x-api-key: <API-KEY>" \
-X POST \
-H "Content-Type: application/json" \
-d '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_call",
"params": [
{
"from": "0x5Be66f4095f89BD18aBE4aE9d2acD5021EC433Bc",
"to": "0x433E43047B95cB83517abd7c9978Bdf7005E9938",
"data": "0x095ea7b3000000000000000000000000802a8b00876cd1b8ac1df80916012bc31cfa049cffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
},
"latest"
]
}'
Sample Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0000000000000000000000000000000000000000000000000000000000000015"
}
Last updated