Chainstack Blocks Info API

The Blocks Info API from Chainstack — 13 operation(s) for blocks info.

Operations 13

POST /eth_blockNumber eth_blockNumber #
POST /eth_getBlockByHash eth_getBlockByHash #
POST /eth_getBlockByNumber eth_getBlockByNumber #
POST /eth_getBlockTransactionCountByHash eth_getBlockTransactionCountByHash #
POST /eth_getBlockTransactionCountByNumber eth_getBlockTransactionCountByNumber #
POST /eth_newBlockFilter eth_newBlockFilter #
POST /eth_getBlockReceipts eth_getBlockReceipts #
POST /eth_getHeaderByHash eth_getHeaderByHash #
POST /eth_getHeaderByNumber eth_getHeaderByNumber #
POST /eth_getUncleByBlockHashAndIndex eth_getUncleByBlockHashAndIndex #
POST /eth_getUncleByBlockNumberAndIndex eth_getUncleByBlockNumberAndIndex #
POST /eth_getUncleCountByBlockHash eth_getUncleCountByBlockHash #
POST /eth_getUncleCountByBlockNumber eth_getUncleCountByBlockNumber #

Documentation

📖
Documentation
https://docs.chainstack.com/reference/platform-api-getting-started
📖
Documentation
https://docs.chainstack.com/reference/ethereum-getting-started
📖
Documentation
https://docs.chainstack.com/reference/ethereum-beacon-chain-api-getting-started
📖
Documentation
https://docs.chainstack.com/reference/solana-getting-started
📖
Documentation
https://docs.chainstack.com/reference/bitcoin-getting-started
📖
Documentation
https://docs.chainstack.com/reference/bnb-chain-getting-started
📖
Documentation
https://docs.chainstack.com/reference/polygon-getting-started
📖
Documentation
https://docs.chainstack.com/reference/arbitrum-getting-started
📖
Documentation
https://docs.chainstack.com/reference/optimism-getting-started
📖
Documentation
https://docs.chainstack.com/reference/base-getting-started
📖
Documentation
https://docs.chainstack.com/reference/avalanche-getting-started
📖
Documentation
https://docs.chainstack.com/reference/fantom-getting-started
📖
Documentation
https://docs.chainstack.com/reference/gnosis-getting-started
📖
Documentation
https://docs.chainstack.com/reference/cronos-getting-started
📖
Documentation
https://docs.chainstack.com/reference/aurora-getting-started
📖
Documentation
https://docs.chainstack.com/reference/ronin-getting-started
📖
Documentation
https://docs.chainstack.com/reference/tron-getting-started
📖
Documentation
https://docs.chainstack.com/reference/ton-getting-started
📖
Documentation
https://docs.chainstack.com/reference/starknet-getting-started
📖
Documentation
https://docs.chainstack.com/reference/zksync-getting-started
📖
Documentation
https://docs.chainstack.com/reference/polygon-zkevm-getting-started
📖
Documentation
https://docs.chainstack.com/reference/hyperliquid-getting-started
📖
Documentation
https://docs.chainstack.com/reference/monad-getting-started
📖
Documentation
https://docs.chainstack.com/reference/plasma-getting-started
📖
Documentation
https://docs.chainstack.com/reference/tempo-getting-started

Specifications

Schemas & Data

Other Resources

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/chainstack-blocks-info-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

chainstack-blocks-info-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Chainstack Blocks Info API
  version: 1.0.0
  contact:
    name: Chainstack API Support
    email: support@chainstack.com
  license:
    name: Chainstack Terms
    url: https://chainstack.com/terms-of-service/
  description: 'Operations tagged Blocks Info across 8 of this provider''s published API definitions: chainstack-arbitrum-node-api-openapi.yml, chainstack-avalanche-node-api-openapi.yml, chainstack-ethereum-node-api-openapi.yml, chainstack-gnosis-node-api-openapi.yml, chainstack-monad-node-api-openapi.yml, chainstack-plasma-node-api-openapi.yml, chainstack-polygon-node-api-openapi.yml, chainstack-tempo-node-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{node_id}.p2pify.com/{api_key}
  description: Chainstack-managed node endpoint
  variables:
    node_id:
      default: nd-000-000-000
      description: Your Chainstack node identifier
    api_key:
      default: <api-key>
      description: Per-node access key
tags:
- name: Blocks Info
paths:
  /eth_blockNumber:
    post:
      tags:
      - Blocks Info
      summary: eth_blockNumber
      operationId: eth_blockNumber
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_blockNumber
                params:
                  type: array
                  default: []
      responses:
        '200':
          description: The latest block number.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
    servers:
    - url: https://{node_id}.p2pify.com/{api_key}
      description: Chainstack-managed node endpoint
      variables:
        node_id:
          default: nd-000-000-000
          description: Your Chainstack node identifier
        api_key:
          default: <api-key>
          description: Per-node access key
  /eth_getBlockByHash:
    post:
      tags:
      - Blocks Info
      summary: eth_getBlockByHash
      operationId: getBlockByHash
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getBlockByHash
                params:
                  type: array
                  items:
                    anyOf:
                    - type: string
                      title: Block Hash
                      description: The hash identifying the block.
                    - type: boolean
                      title: Transaction selector
                      description: True for the full transactions, false for only the transaction hashes.
                  default:
                  - '0x7ccd0791880035667dfee8244ab96d9c091668859e9e72ded4890e6efde68b25'
                  - false
      responses:
        '200':
          description: The block information
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
    servers:
    - url: https://{node_id}.p2pify.com/{api_key}
      description: Chainstack-managed node endpoint
      variables:
        node_id:
          default: nd-000-000-000
          description: Your Chainstack node identifier
        api_key:
          default: <api-key>
          description: Per-node access key
  /eth_getBlockByNumber:
    post:
      tags:
      - Blocks Info
      summary: eth_getBlockByNumber
      operationId: getBlockByNumber
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getBlockByNumber
                params:
                  type: array
                  items:
                    anyOf:
                    - type: string
                      title: Block identifier
                      description: The block number or tag.
                    - type: boolean
                      title: Transaction selector
                      description: True for the full transactions, false for only the transaction hashes.
                  default:
                  - latest
                  - false
      responses:
        '200':
          description: The block information
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
    servers:
    - url: https://{node_id}.p2pify.com/{api_key}
      description: Chainstack-managed node endpoint
      variables:
        node_id:
          default: nd-000-000-000
          description: Your Chainstack node identifier
        api_key:
          default: <api-key>
          description: Per-node access key
  /eth_getBlockTransactionCountByHash:
    post:
      tags:
      - Blocks Info
      summary: eth_getBlockTransactionCountByHash
      operationId: getBlockTransactionCountByHash
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getBlockTransactionCountByHash
                params:
                  type: array
                  items:
                    type: string
                    title: Block hash
                    description: The block hash identifier.
                  default:
                  - '0x7ccd0791880035667dfee8244ab96d9c091668859e9e72ded4890e6efde68b25'
      responses:
        '200':
          description: The block information
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string
    servers:
    - url: https://{node_id}.p2pify.com/{api_key}
      description: Chainstack-managed node endpoint
      variables:
        node_id:
          default: nd-000-000-000
          description: Your Chainstack node identifier
        api_key:
          default: <api-key>
          description: Per-node access key
  /eth_getBlockTransactionCountByNumber:
    post:
      tags:
      - Blocks Info
      summary: eth_getBlockTransactionCountByNumber
      operationId: getBlockTransactionCountByNumber
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getBlockTransactionCountByNumber
                params:
                  type: array
                  items:
                    type: string
                    title: Block identifier
                    description: The block number or tag.
                  default:
                  - latest
      responses:
        '200':
          description: The block transaction count information
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string
    servers:
    - url: https://{node_id}.p2pify.com/{api_key}
      description: Chainstack-managed node endpoint
      variables:
        node_id:
          default: nd-000-000-000
          description: Your Chainstack node identifier
        api_key:
          default: <api-key>
          description: Per-node access key
  /eth_newBlockFilter:
    post:
      summary: eth_newBlockFilter
      operationId: newBlockFilter
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_newBlockFilter
                params:
                  type: array
                  default: []
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: The new filter ID.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: array
                    items:
                      type: string
      tags:
      - Blocks Info
    servers:
    - url: https://{node_id}.p2pify.com/{api_key}
      description: Chainstack-managed node endpoint
      variables:
        node_id:
          default: nd-000-000-000
          description: Your Chainstack node identifier
        api_key:
          default: <api-key>
          description: Per-node access key
  /eth_getBlockReceipts:
    post:
      tags:
      - Blocks Info
      summary: eth_getBlockReceipts
      operationId: getBlockReceipts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getBlockReceipts
                params:
                  type: array
                  items:
                    anyOf:
                    - type: string
                      title: Block
                      description: Block number or tag (latest, earliest, pending).
                  default:
                  - latest
      responses:
        '200':
          description: Returns all transaction receipts for a given block.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type:
                    - object
                    - 'null'
    servers:
    - url: https://{node_id}.p2pify.com/{api_key}
      description: Chainstack-managed node endpoint
      variables:
        node_id:
          default: nd-000-000-000
          description: Your Chainstack node identifier
        api_key:
          default: <api-key>
          description: Per-node access key
  /eth_getHeaderByHash:
    post:
      tags:
      - Blocks Info
      summary: eth_getHeaderByHash
      operationId: getHeaderByHash
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getHeaderByHash
                params:
                  type: array
                  items:
                    anyOf:
                    - type: string
                      title: Block hash
                      description: Hash of the block.
                  default:
                  - '0x0000000000000000000000000000000000000000000000000000000000000000'
      responses:
        '200':
          description: Returns the block header by block hash.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type:
                    - object
                    - 'null'
    servers:
    - url: https://{node_id}.p2pify.com/{api_key}
      description: Chainstack-managed node endpoint
      variables:
        node_id:
          default: nd-000-000-000
          description: Your Chainstack node identifier
        api_key:
          default: <api-key>
          description: Per-node access key
  /eth_getHeaderByNumber:
    post:
      tags:
      - Blocks Info
      summary: eth_getHeaderByNumber
      operationId: getHeaderByNumber
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getHeaderByNumber
                params:
                  type: array
                  items:
                    anyOf:
                    - type: string
                      title: Block
                      description: Block number or tag (latest, earliest, pending).
                  default:
                  - latest
      responses:
        '200':
          description: Returns the block header by block number.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type:
                    - object
                    - 'null'
    servers:
    - url: https://{node_id}.p2pify.com/{api_key}
      description: Chainstack-managed node endpoint
      variables:
        node_id:
          default: nd-000-000-000
          description: Your Chainstack node identifier
        api_key:
          default: <api-key>
          description: Per-node access key
  /eth_getUncleByBlockHashAndIndex:
    post:
      tags:
      - Blocks Info
      summary: eth_getUncleByBlockHashAndIndex
      operationId: getUncleByBlockHashAndIndex
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getUncleByBlockHashAndIndex
                params:
                  type: array
                  items:
                    anyOf:
                    - type: string
                      title: Block hash
                      description: Hash of the block.
                    - type: string
                      title: Uncle index
                      description: The uncle index position.
                  default:
                  - '0x0000000000000000000000000000000000000000000000000000000000000000'
                  - '0x0'
      responses:
        '200':
          description: Returns information about an uncle by block hash and uncle index position.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type:
                    - object
                    - 'null'
    servers:
    - url: https://{node_id}.p2pify.com/{api_key}
      description: Chainstack-managed node endpoint
      variables:
        node_id:
          default: nd-000-000-000
          description: Your Chainstack node identifier
        api_key:
          default: <api-key>
          description: Per-node access key
  /eth_getUncleByBlockNumberAndIndex:
    post:
      tags:
      - Blocks Info
      summary: eth_getUncleByBlockNumberAndIndex
      operationId: getUncleByBlockNumberAndIndex
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getUncleByBlockNumberAndIndex
                params:
                  type: array
                  items:
                    anyOf:
                    - type: string
                      title: Block
                      description: Block number or tag (latest, earliest, pending).
                    - type: string
                      title: Uncle index
                      description: The uncle index position.
                  default:
                  - latest
                  - '0x0'
      responses:
        '200':
          description: Returns information about an uncle by block number and uncle index position.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type:
                    - object
                    - 'null'
    servers:
    - url: https://{node_id}.p2pify.com/{api_key}
      description: Chainstack-managed node endpoint
      variables:
        node_id:
          default: nd-000-000-000
          description: Your Chainstack node identifier
        api_key:
          default: <api-key>
          description: Per-node access key
  /eth_getUncleCountByBlockHash:
    post:
      tags:
      - Blocks Info
      summary: eth_getUncleCountByBlockHash
      operationId: getUncleCountByBlockHash
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getUncleCountByBlockHash
                params:
                  type: array
                  items:
                    anyOf:
                    - type: string
                      title: Block hash
                      description: Hash of the block.
                  default:
                  - '0x0000000000000000000000000000000000000000000000000000000000000000'
      responses:
        '200':
          description: Returns the number of uncles in a block from a block matching the given block hash.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type:
                    - object
                    - 'null'
    servers:
    - url: https://{node_id}.p2pify.com/{api_key}
      description: Chainstack-managed node endpoint
      variables:
        node_id:
          default: nd-000-000-000
          description: Your Chainstack node identifier
        api_key:
          default: <api-key>
          description: Per-node access key
  /eth_getUncleCountByBlockNumber:
    post:
      tags:
      - Blocks Info
      summary: eth_getUncleCountByBlockNumber
      operationId: getUncleCountByBlockNumber
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getUncleCountByBlockNumber
                params:
                  type: array
                  items:
                    anyOf:
                    - type: string
                      title: Block
                      description: Block number or tag (latest, earliest, pending).
                  default:
                  - latest
      responses:
        '200':
          description: Returns the number of uncles in a block from a block matching the given block number.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type:
                    - object
                    - 'null'
    servers:
    - url: https://{node_id}.p2pify.com/{api_key}
      description: Chainstack-managed node endpoint
      variables:
        node_id:
          default: nd-000-000-000
          description: Your Chainstack node identifier
        api_key:
          default: <api-key>
          description: Per-node access key
x-refined-from:
- chainstack-arbitrum-node-api-openapi.yml
- chainstack-avalanche-node-api-openapi.yml
- chainstack-ethereum-node-api-openapi.yml
- chainstack-gnosis-node-api-openapi.yml
- chainstack-monad-node-api-openapi.yml
- chainstack-plasma-node-api-openapi.yml
- chainstack-polygon-node-api-openapi.yml
- chainstack-tempo-node-api-openapi.yml