eth_gasPrice
Returns the current gas price in wei.
Parameters
None
Returns
A hexadecimal of the current gas price (in wei).
Example
Request
curl https://rpc.testnet.radiustech.xyz/<YOUR-RPC-ENDPOINT> \
-X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"method": "eth_gasPrice",
"params": [],
"id": 1
}
'
Response
{
"jsonrpc": "2.0",
"result": "0x0",
"id": 1
}
Last updated
Was this helpful?