Onchain
Current Gas Price
Look up the current gas price for one EVM chain. Example: chain=ethereum.
This endpoint uses eth_gasPrice JSON-RPC and returns gas price in both wei and Gwei.
Supported chains: ethereum, polygon, bsc, arbitrum, optimism, base, avalanche, fantom, linea, cyber.
get/gateway/v1/onchain/gas-price
Request
- Base URLhttps://api.asksurf.ai
- AuthHTTP bearer
Query parameters
chain'ethereum' | 'polygon' | 'bsc' | 'arbitrum' | 'optimism' | 'base' | 'avalanche' | 'fantom' | 'linea' | 'cyber' required
Chain. Can be ethereum, polygon, bsc, arbitrum, optimism, base, avalanche, fantom, linea, or cyber.
Example:ethereum
Response
OK
Example response
{
"$schema": "https://example.com/schemas/DataObjectResponseOnchainGasPriceItem.json"
}Changes
No recorded changes to this operation across all 12 revisions of this API.