eth_call
Executes a new message call immediately without creating a transaction in Radius.
Parameters
from
: 20 bytes - Address the transaction is sent from.to
: 20 bytes - Address the transaction is directed to.gas
: Hexadecimal value of the gas provided for the transaction execution.eth_call
consumes zero gas, but this parameter may be needed by some executions.gasPrice
: Hexadecimal value of thegasPrice
(in wei) used for each paid gas.maxPriorityFeePerGas
: Maximum fee (in wei) the sender is willing to pay per gas above the base fee. See EIP-1559 transactions.maxFeePerGas
: Maximum total fee (base fee + priority fee, in wei), the sender is willing to pay per gas. See EIP-1559 transactions.value
: Hexadecimal of the value sent with this transaction.data
: Hash of the method signature and encoded parameters. See Ethereum contract ABI specification.block parameter
: A string representing a block number, block hash, or one of the string tagslatest
,earliest
,pending
,safe
, orfinalized
. See the default block parameter.
Returns
The returned value of the executed contract.
Example
Request
curl https://rpc.testnet.tryradi.us/<YOUR-RPC-ENDPOINT> \
-X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"method": "eth_call",
"params": [
{
"type": "0x0",
"chainId": "0x12ad11",
"nonce": "0x0",
"to": "0xcae4d474a43b186606bb836f463d4b4072b7fbe3",
"gas": "0x493e0",
"gasPrice": "0x0",
"maxPriorityFeePerGas": null,
"maxFeePerGas": null,
"value": "0x0",
"input": "0x60fe47b1000000000000000000000000000000000000000000000000000000000000002a",
"v": "0x255a45",
"r": "0xd7f188ccfd0223e68c6b300a63c43269beff1ff7d6c9aa257f77e943d7640f4",
"s": "0x24fe69e4849797afb156c3fc11ac273d03c04846e6128fc2c412646326f02b95"
}
],
"id": 1
}
'
Response
{
"jsonrpc": "2.0",
"result": "0x",
"id": 1
}
Last updated
Was this helpful?