BlockPI Network
Search
⌃K
Comment on page

eth_gasPrice

Returns the current price of gas in wei. If minimum gas price is enforced by setting the --price-limit flag, this endpoint will return the value defined by this flag as minimum gas price.

Parameters:

None

Returns:

QUANTITY - integer of the current gas price in wei.

Example:

// Request
curl https://zetachain-athens-evm.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":1}'
​
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x7"
}