---
title: "Current Gas Price"
method: GET
path: "/gateway/v1/onchain/gas-price"
tags: ["Onchain"]
---

# Current Gas Price

`GET /gateway/v1/onchain/gas-price`

## Request

- Base URL: `https://api.asksurf.ai`
- URL: `https://api.asksurf.ai/gateway/v1/onchain/gas-price`
- Auth: HTTP bearer

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`.

## 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`.

## Response `200`

OK

- DataObjectResponseOnchainGasPriceItem
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `data` OnchainGasPriceItem, required
    - `chain` string, required: Canonical chain name
    - `gas_price` string, required: Gas price in wei
    - `gas_price_gwei` number, double, required: Gas price in Gwei
  - `meta` ObjectResponseMeta, required
    - `cached` boolean, required: Whether this response was served from cache
    - `credits_used` integer, required: Credits deducted for this request
    - `empty_reason` string: Hint explaining why the data array is empty, when applicable

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/asksurf/apis/asksurf-public-rest-api.md) - [All operations](https://skmtc.dev/asksurf/apis/asksurf-public-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/asksurf/apis/asksurf-public-rest-api/revisions/91774fdd5302?raw)
