Skip to main content
GET
/
gateway
/
v1
/
onchain
/
gas-price
Current Gas Price
curl --request GET \
  --url https://api.ask.surf/gateway/v1/onchain/gas-price
{
  "data": {
    "chain": "<string>",
    "gas_price": "<string>",
    "gas_price_gwei": 123
  },
  "meta": {
    "cached": true,
    "credits_used": 123
  },
  "$schema": "<string>"
}

Query Parameters

chain
enum<string>
required

Chain. Can be ethereum, polygon, bsc, arbitrum, optimism, base, avalanche, fantom, linea, or cyber.

Available options:
ethereum,
polygon,
bsc,
arbitrum,
optimism,
base,
avalanche,
fantom,
linea,
cyber
Example:

"ethereum"

Response

OK

data
object
required
meta
object
required
$schema
string<uri>

A URL to the JSON Schema for this object.

Example:

"https://example.com/schemas/DataObjectResponseOnchainGasPriceItem.json"