logicnodes-io Gasprices API

The Gasprices API from logicnodes-io — 1 operation(s) for gasprices.

Operations 1

GET /gasprices/blockprices Gas price estimates #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/logicnodes-io:logicnodes-io-gasprices-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

logicnodes-io-gasprices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LogicNodes Gasprices API
  version: 1.0.0
  description: 'Blockchain and finance tools AI agents can trust: exact answers or typed errors, never a plausible guess. 40+ tools for EVM chains and Aptos (balances, token amounts, transaction status and receipts, contract and calldata decoding, payment verification, gas on 14 chains), exact finance math, and ERC-8004 agent reputation. Every answer carries a receipt timestamped into Bitcoin. Free tier; pay per call in USDC via x402 on 13 networks, no API key.'
  x-guidance: 'How to use LogicNodes: 1) GET /v1/tools lists every tool with its JSON Schema. 2) POST /v1/tools/<name> with a JSON body, e.g. POST /v1/tools/evm_balance {"chain":"eip155:8453","address":"0x..."} or POST /v1/tools/token_amount_convert {"chain":"eip155:8453","asset":"<token address>","amount":"1.5","direction":"toBase"}. 3) Read "ok": true with "value", or "ok": false with a typed error: INVALID_INPUT (fix the field named), AMBIGUOUS_INPUT (pick one of the options listed and call again), NOT_FOUND, UPSTREAM_ERROR (retry). Chains are CAIP-2 ids (eip155:8453 Base, eip155:1 Ethereum, aptos:1); names like "base" are refused. Amounts are decimal strings, never floats. Pricing: free tools are unlimited; priced tools are free for 25 calls per day per IP, then the same URL returns 402 with x402 terms (USDC on Base, Solana, Polygon, Arbitrum and more: /v1/payments/methods); pay and retry. A failed call is never charged. MCP: /mcp/v2. Full guide: /agent-guide.'
  contact:
    email: denneyconner5@gmail.com
servers:
- url: https://logicnodes.io
tags:
- name: Gasprices
paths:
  /gasprices/blockprices:
    get:
      summary: Gas price estimates
      operationId: getBlockPrices
      parameters:
      - name: chainid
        in: query
        schema:
          type: integer
          default: 1
          enum:
          - 1
          - 8453
          - 42161
          - 10
          - 137
          - 56
          - 43114
          - 59144
          - 534352
          - 324
          - 100
          - 81457
          - 5000
          - 42220
      - name: confidenceLevels
        in: query
        explode: false
        schema:
          type: array
          items:
            type: integer
            minimum: 1
            maximum: 99
          default:
          - 99
          - 95
          - 90
          - 80
          - 70
        description: Comma-separated or repeated.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlockPrices'
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
      tags:
      - Gasprices
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
      required:
      - error
      - message
    BlockPrices:
      type: object
      properties:
        system:
          type: string
        network:
          type: string
        unit:
          type: string
          example: gwei
        maxPrice:
          type: number
        currentBlockNumber:
          type: integer
        msSinceLastBlock:
          type: integer
        blockPrices:
          type: array
          items:
            type: object
            properties:
              blockNumber:
                type: integer
              estimatedTransactionCount:
                type: integer
              baseFeePerGas:
                type: number
              estimatedPrices:
                type: array
                items:
                  type: object
                  properties:
                    confidence:
                      type: integer
                    price:
                      type: number
                    maxPriorityFeePerGas:
                      type: number
                    maxFeePerGas:
                      type: number