Fantomfoundation Block API

The block API from Fantomfoundation, for block.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

GET /api/v1/get-blocks Blocks list #
GET /api/v1/get-block Get block by block number #

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/fantomfoundation:fantomfoundation-block-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

fantomfoundation-block-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fantom explorer Block API
  description: Work in progress
  version: '0.1'
servers:
- url: http://3.136.216.35:3100
tags:
- name: Block
paths:
  /api/v1/get-blocks:
    servers:
    - url: http://3.136.216.35:3100
    get:
      description: Returns blocks list with pagination. Max count = 30, order may be -1 or 1.
      parameters:
      - name: offset
        in: query
        schema:
          type: integer
        example: 0
      - name: count
        in: query
        schema:
          type: integer
        example: 1
      - name: order
        in: query
        schema:
          type: integer
        example: -1
      responses:
        '200':
          description: ok
          content:
            application/json; charset=utf-8:
              schema:
                type: object
                properties:
                  meta:
                    $ref: '#/components/schemas/meta'
                  data:
                    type: object
                    properties:
                      maxBlockHeight:
                        type: integer
                      total:
                        type: integer
                        description: total number of blocks in database by provided (or not) conditions
                      offset:
                        type: integer
                        description: offset of pagination
                      count:
                        type: integer
                        description: number of blocks per page
                      blocks:
                        type: array
                        items:
                          $ref: '#/components/schemas/Block'
      servers:
      - url: http://3.136.216.35:3100
      tags:
      - Block
      summary: Blocks list
      operationId: getApiV1GetBlocks
      x-operation-id-source: derived
  /api/v1/get-block:
    servers:
    - url: http://3.136.216.35:3100
    get:
      summary: Get block by block number
      tags:
      - Block
      description: Returns block with provided number
      parameters:
      - name: blockNumber
        in: query
        schema:
          type: number
        required: true
        example: 5
      responses:
        '200':
          description: ok
          content:
            application/json; charset=utf-8:
              schema:
                type: object
                properties:
                  meta:
                    $ref: '#/components/schemas/meta'
                  data:
                    type: object
                    properties:
                      block:
                        $ref: '#/components/schemas/Block'
      servers:
      - url: http://3.136.216.35:3100
      operationId: getApiV1GetBlock
      x-operation-id-source: derived
components:
  schemas:
    Block:
      type: object
      properties:
        gasUsed:
          type: integer
          description: The total used gas by all transactions in this block.
        hash:
          type: string
          description: Hash of the block.
        number:
          type: integer
          description: The block number.
        parentHash:
          type: string
          description: Hash of the parent block.
        stateRoot:
          type: string
          description: The root of the final state trie of the block.
        timestamp:
          type: integer
          description: The unix timestamp for when the block was collated.
        transactions:
          type: integer
          description: number of transactions in block
    meta:
      type: object
      properties:
        success:
          type: boolean
          description: is operation successful
      required:
      - success