cfx_gasPrice
Returns current gas price.
Params
(0)Result
(cfx_gasPrice_result)string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
Example
Request
curl -X POST --data \
'{
"method": "cfx_gasPrice",
"params": [],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
localhost:12539
Result
"0x1"