Covalent Get Block Heights API

The get-block-heights API from Covalent — 1 operation(s) for get-block-heights.

GitHub OpenAPI
Business capability
On-Chain Data & Indexing AE-240.30

Operations 1

GET /v1/{chainName}/block_v2/{startDate}/{endDate}/ Get block heights #

Documentation

📖
Documentation
https://goldrush.dev/docs/api-reference/foundational-api/
📖
Documentation
https://goldrush.dev/docs/api-reference/foundational-api/balance-service
📖
Documentation
https://goldrush.dev/docs/api-reference/foundational-api/transactions-service
📖
Documentation
https://goldrush.dev/docs/api-reference/foundational-api/nft-service
📖
Documentation
https://goldrush.dev/docs/api-reference/foundational-api/base-service
📖
Documentation
https://goldrush.dev/docs/api-reference/foundational-api/cross-chain-activity
📖
Documentation
https://goldrush.dev/docs/api-reference/foundational-api/security-service
📖
Documentation
https://goldrush.dev/docs/api-reference/foundational-api/pricing-service
📖
Documentation
https://goldrush.dev/docs/api-reference/streaming-api/
📖
Documentation
https://goldrush.dev/docs/api-reference/pipeline-api/
📖
Documentation
https://goldrush.dev/docs/api-reference/pipeline-api/quickstart
📖
Documentation
https://goldrush.dev/docs/api-reference/pipeline-api/architecture
📖
Documentation
https://goldrush.dev/docs/api-reference/pipeline-api/destinations
📖
Documentation
https://goldrush.dev/docs/api-reference/pipeline-api/abi-decoding
📖
Documentation
https://goldrush.dev/docs/api-reference/hyperliquid/info-api/
📖
Documentation
https://goldrush.dev/docs/api-reference/hyperliquid/info-api/migration-guide
📖
Documentation
https://goldrush.dev/docs/api-reference/hyperliquid/info-api/limits
📖
Documentation
https://goldrush.dev/docs/api-reference/foundational-api/x402

Specifications

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/covalent:covalent-get-block-heights-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

covalent-get-block-heights-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GoldRush Multichain Data Get Block Heights API
  version: 1.0.0
  description: Covalent's GoldRush Multichain Data APIs OpenAPI Schema.
servers:
- url: https://api.covalenthq.com
security:
- bearerAuth: []
tags:
- name: get-block-heights
paths:
  /v1/{chainName}/block_v2/{startDate}/{endDate}/:
    get:
      tags:
      - get-block-heights
      description: Returns all the block heights within a particular date range. Useful for rendering a display where you sort blocks by day.
      operationId: getBlockHeights
      parameters:
      - name: chainName
        in: path
        description: 'The chain name eg: `eth-mainnet`.'
        required: true
        schema:
          type: string
      - name: startDate
        in: path
        description: The start date in YYYY-MM-DD format.
        required: true
        schema:
          type: string
      - name: endDate
        in: path
        description: The end date in YYYY-MM-DD format or `latest` for the latest block available.
        required: true
        schema:
          type: string
      - name: page-size
        in: query
        description: Number of items per page. Omitting this parameter defaults to 100.
        required: false
        schema:
          type: integer
      - name: page-number
        in: query
        description: 0-indexed page number to begin pagination.
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  updated_at:
                    type: string
                    format: date-time
                    description: The timestamp when the response was generated. Useful to show data staleness to users.
                  chain_id:
                    type: integer
                    description: 'The requested chain ID eg: `1`.'
                  chain_name:
                    type: string
                    description: 'The requested chain name eg: `eth-mainnet`.'
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        block_hash:
                          type: string
                          description: The hash of the block.
                        signed_at:
                          type: string
                          format: date-time
                          description: The block signed timestamp in UTC.
                        height:
                          type: integer
                          description: The block height.
                        block_parent_hash:
                          type: string
                          description: The parent block hash.
                        extra_data:
                          type: string
                          description: Extra data written to the block.
                        miner_address:
                          type: string
                          description: The address of the miner.
                        mining_cost:
                          type: integer
                          format: int64
                          description: The associated mining cost.
                        gas_used:
                          type: integer
                          format: int64
                          description: The associated gas used.
                        gas_limit:
                          type: integer
                          format: int64
                          description: The associated gas limit.
                        transactions_link:
                          type: string
                          description: The link to the related tx by block endpoint.
                    description: List of response items.
                  pagination:
                    type: object
                    properties:
                      has_more:
                        type: boolean
                        description: True if there is another page.
                      page_number:
                        type: integer
                        description: The requested page number.
                      page_size:
                        type: integer
                        description: The requested number of items on the current page.
                      total_count:
                        type: integer
                        description: The total number of items across all pages for this request.
                    description: Pagination metadata.
      x-codeSamples:
      - lang: TypeScript
        label: GoldRush SDK
        source: "import { GoldRushClient } from \"@covalenthq/client-sdk\";\n\nconst ApiServices = async () => {\n    const client = new GoldRushClient(\"<GOLDRUSH_API_KEY>\");\n    const resp = await client.BaseService.getBlockHeights({chainName: \"chainName\", walletAddress: \"walletAddress\"});\n    console.log(resp.data);\n};\n\nApiServices();"
      summary: Get block heights
      x-summary-source: derived
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Bearer authentication header of the form: `Bearer <token>`, where `<token>` is your GoldRush API Key.'