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 URL
    https://api.asksurf.ai
  • Auth
    HTTP 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

$schemastring uri

A URL to the JSON Schema for this object.

Example response

{
  "$schema": "https://example.com/schemas/DataObjectResponseOnchainGasPriceItem.json"
}

Changes

No recorded changes to this operation across all 12 revisions of this API.