> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leokit.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Gas Price

> Get current gas price of given network



## OpenAPI

````yaml /api-reference/openapi.json GET /gas-price/{asset}
openapi: 3.0.3
info:
  title: Leokit API
  version: 1.0.0
  description: API reference for Leokit
servers:
  - url: https://api.leokit.dev
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /gas-price/{asset}:
    get:
      summary: Get gas price
      parameters:
        - name: asset
          in: path
          required: true
          description: Network/asset identifier to fetch gas prices for (e.g., ETH.ETH).
          schema:
            type: string
            default: ETH.ETH
          example: ETH.ETH
      responses:
        '200':
          description: Gas price
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GasPriceResponse'
              example:
                type: dynamic
                units: gwei
                gas_prices:
                  - - 0.01
                    - 1765208995726
                  - - 0.026389
                    - 1765209584945
                  - - 0.155186
                    - 1765285082322
        default:
          $ref: '#/components/responses/ErrorResponse'
components:
  schemas:
    GasPriceResponse:
      description: Gas price response. The shape of `gas_prices` depends on `type`.
      oneOf:
        - $ref: '#/components/schemas/GasPriceDynamicResponse'
        - $ref: '#/components/schemas/GasPriceStaticResponse'
    GasPriceDynamicResponse:
      type: object
      description: >-
        Dynamic gas price response. `gas_prices` is a time series of [value,
        timestamp_ms].
      required:
        - type
        - units
        - gas_prices
      properties:
        type:
          type: string
          enum:
            - dynamic
          description: Indicates a dynamic time series response.
        units:
          type: string
          description: Gas price unit. This depends on the network (e.g., gwei).
        gas_prices:
          type: array
          description: Array of [gas_price, timestamp_ms] points.
          items:
            $ref: '#/components/schemas/GasPricePoint'
    GasPriceStaticResponse:
      type: object
      description: Static gas price response. `gas_prices` is a single numeric value.
      required:
        - type
        - units
        - gas_prices
      properties:
        type:
          type: string
          enum:
            - static
          description: Indicates a static response.
        units:
          type: string
          description: Gas price unit. This depends on the network.
        gas_prices:
          type: number
          description: Fixed gas price value.
    Error:
      type: object
      description: Generic error payload.
      properties:
        message:
          type: string
        code:
          type: string
    GasPricePoint:
      type: array
      description: A historical gas price point as [price, timestamp_ms].
      minItems: 2
      maxItems: 2
      items:
        oneOf:
          - type: number
            description: Gas price value.
          - type: integer
            format: int64
            description: Unix timestamp in milliseconds.
  responses:
    ErrorResponse:
      description: Error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Api-Key
      description: 'Demo API-Key (Sandbox): 7037d2b3-9c76-4f62-b730-c544f7570fa4'

````