Skip to main content

eth_gasPrice

Returns the current price per gas in wei.

Parameters (by position)

This method does not accept any parameters.

Result

Gas price string

Gas price

Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


Examples

eth_gasPrice example

Request

{
"params": []
}

Response

"0x3e8"