Saltar al contenido principal

eth_gasPrice

Returns the current price per gas in wei

Params

(0)

Result

(eth_gasPrice_result)
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$

Example

Request

curl -X POST --data \
'{
"method": "eth_gasPrice",
"params": [],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
localhost:12539

Result

"0x1"

Endpoint

Request

curl -X POST --data \
'{
"method": "eth_gasPrice",
"params": [],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
https://evmtestnet.confluxrpc.com