Chainlens Block-Controller API

The Block-Controller API from Chainlens — 2 operation(s) for block-controller.

Operations 2

GET /blocks Chainlens Retrieve blocks. #
GET /blocks/{blockHash} Chainlens Retrieve a block by its hash or height. #

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/chainlens-block-controller-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

chainlens-block-controller-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Chainlens Account-Controller Block Controller API
  description: Chainlens provides a robust and intuitive platform combining user-friendly exploration with powerful analytics and advanced features. Whether monitoring real-time blockchain transactions, verifying smart contracts, or tracking NFTs, Chainlens ensures you have all the necessary tools at your fingertips.
  version: master
servers:
- url: https://api.chainlens.com
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: Block-Controller
paths:
  /blocks:
    get:
      tags:
      - Block-Controller
      summary: Chainlens Retrieve blocks.
      operationId: findBlocks
      parameters:
      - name: query
        in: query
        required: true
        schema:
          $ref: '#/components/schemas/FindBlocksQuery'
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/LatestBlockModel'
  /blocks/{blockHash}:
    get:
      tags:
      - Block-Controller
      summary: Chainlens Retrieve a block by its hash or height.
      operationId: getBlock
      parameters:
      - name: blockHash
        in: path
        description: The hash or height identifying the block.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/BlockModel'
components:
  schemas:
    LatestBlockModel:
      required:
      - data
      - paging
      type: object
      properties:
        paging:
          $ref: '#/components/schemas/PagingModel'
        data:
          type: array
          items:
            $ref: '#/components/schemas/BlockRowModel'
    BlockRowModel:
      required:
      - hash
      - number
      - timestampISO
      - transactionCount
      type: object
      properties:
        number:
          type: integer
          format: int64
        hash:
          type: string
        timestampISO:
          type: string
        transactionCount:
          type: integer
          format: int32
    BlockModel:
      required:
      - dateVerified
      - difficulty
      - extraData
      - gasLimit
      - gasUsed
      - hash
      - logsBloom
      - miner
      - number
      - parentHash
      - receiptRoot
      - sha3Uncles
      - size
      - stateRoot
      - timestampISO
      - timestampVerifiedISO
      - totalDifficulty
      - transactionCount
      - transactionsRoot
      - uncles
      type: object
      properties:
        number:
          type: integer
          format: int64
        hash:
          type: string
        parentHash:
          type: string
        sha3Uncles:
          type: string
        logsBloom:
          type: string
        transactionsRoot:
          type: string
        stateRoot:
          type: string
        receiptRoot:
          type: string
        miner:
          type: string
        mixHash:
          type: string
        difficulty:
          type: integer
        totalDifficulty:
          type: integer
        extraData:
          type: string
        size:
          type: integer
        gasLimit:
          type: integer
        gasUsed:
          type: integer
        transactionCount:
          type: integer
          format: int32
        uncles:
          type: array
          items:
            type: string
        dateVerified:
          type: integer
          format: int64
        timestampISO:
          type: string
        timestampVerifiedISO:
          type: string
    PagingModel:
      required:
      - direction
      - page
      - size
      - sort
      - totalElements
      type: object
      properties:
        page:
          type: integer
          format: int32
        size:
          type: integer
          format: int32
        sort:
          type: string
        direction:
          type: string
          enum:
          - ASC
          - DESC
        totalElements:
          type: integer
          format: int64
    FindBlocksQuery:
      required:
      - direction
      - page
      - size
      - sort
      type: object
      properties:
        page:
          minimum: 0
          type: integer
          format: int32
        size:
          maximum: 100
          minimum: 1
          type: integer
          format: int32
        direction:
          type: string
          enum:
          - ASC
          - DESC
        sort:
          type: string
          enum:
          - number
          - timestampISO
          - transactionCount
        filter:
          type: string
externalDocs:
  description: Chainlens Documentation
  url: https://docs.chainlens.com/