API reference
This section provides reference information for the various Gas REST APIs. Use the APIs to:
- Get EIP-1559 gas prices
- Get the base fee history (in GWEI)
- Get the base fee percentile (in GWEI)
- Get the busy threshold for a network
Supported API request formats
You can call the Gas APIs in two ways:
- Use the API key only - Add your API key as a path option.
- Use the API key and API key secret - Use basic authentication and specify the API key and API key secret.
- Use an API key only
- Use an API key and API key secret
curl -X 'GET' 'https://gas.api.infura.io/v3/<API_KEY>/networks/1/suggestedGasFees'
curl -X 'GET' -u <API_KEY>:<API_KEY_SECRET> 'https://gas.api.infura.io/networks/1/suggestedGasFees'