eth_gasPrice RPC Method
To use the eth_gasPrice method on the Avalanche C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.
Parameters
This method does not accept any parameters
Returns
gasPrice
string
Loading...
Request
1curl https://docs-demo.avalanche-mainnet.quiknode.pro \2-X POST \3-H "Content-Type: application/json" \4--data '{5"method": "eth_gasPrice",6"params": [],7"id": 1,8"jsonrpc": "2.0"9}'
1curl https://docs-demo.avalanche-mainnet.quiknode.pro \2-X POST \3-H "Content-Type: application/json" \4--data '{5"method": "eth_gasPrice",6"params": [],7"id": 1,8"jsonrpc": "2.0"9}'
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free