Contents

eth_gasPrice RPC method

Parameters:

  1. None

Returns:

  1. Result - Integer value of current gas price in wei.

Code Examples:

from web3 import Web3, HTTPProvider
w3 = Web3(HTTPProvider('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/'))
print (w3.eth.gas_price)
Ready to try QuickNode? Start your 7-day free trial