> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockscout.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get countdown information for a target block number

> Calculates the estimated time remaining until a specified block number is reached based on current block and average block time.



## OpenAPI

````yaml /openapi-specs/pro-api-v11.yaml get /v2/blocks/{block_number_param}/countdown
openapi: 3.0.0
info:
  contact:
    email: info@blockscout.com
  title: Blockscout
  version: 11.0.3
servers:
  - url: http://localhost/api
    variables: {}
security: []
tags:
  - name: blocks
  - name: transactions
  - name: addresses
  - name: internal-transactions
  - name: tokens
  - name: token-transfers
  - name: smart-contracts
  - name: config
  - name: main-page
  - name: search
  - name: stats
  - name: csv-export
  - name: account-abstraction
  - name: withdrawals
  - name: advanced-filters
  - name: arbitrum
  - name: legacy
  - name: optimism
  - name: mud
  - name: celo
  - name: scroll
  - name: zilliqa
paths:
  /v2/blocks/{block_number_param}/countdown:
    get:
      tags:
        - blocks
      summary: Get countdown information for a target block number
      description: >-
        Calculates the estimated time remaining until a specified block number
        is reached based on current block and average block time.
      operationId: BlockScoutWeb.API.V2.BlockController.block_countdown
      parameters:
        - description: Block number in the path
          in: path
          name: block_number_param
          required: true
          schema:
            minimum: 0
            type: integer
            x-struct: null
            x-validate: null
        - description: API key for rate limiting or for sensitive endpoints
          in: query
          name: apikey
          required: false
          schema:
            type: string
            x-struct: null
            x-validate: null
        - description: Secret key for getting access to restricted resources
          in: query
          name: key
          required: false
          schema:
            type: string
            x-struct: null
            x-validate: null
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlockCountdown'
          description: Block countdown information.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundResponse'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonErrorResponse'
          description: Unprocessable Entity
      callbacks: {}
components:
  schemas:
    BlockCountdown:
      description: >-
        Block countdown information showing estimated time until a target block
        is reached
      example:
        countdown_block: 22600000
        current_block: 22566361
        estimated_time_in_sec: 404868
        remaining_blocks: 33639
      properties:
        countdown_block:
          description: The target block number for the countdown
          example: 22600000
          minimum: 0
          type: integer
          x-struct: null
          x-validate: null
        current_block:
          description: The current highest block number in the blockchain
          example: 22566361
          minimum: 0
          type: integer
          x-struct: null
          x-validate: null
        estimated_time_in_sec:
          description: Estimated time in seconds until the target block is reached
          example: 404868
          format: float
          minimum: 0
          type: number
          x-struct: null
          x-validate: null
        remaining_blocks:
          description: Number of blocks remaining until the target block is reached
          example: 33639
          minimum: 0
          type: integer
          x-struct: null
          x-validate: null
      required:
        - current_block
        - countdown_block
        - remaining_blocks
        - estimated_time_in_sec
      title: BlockCountdown
      type: object
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Block.Countdown
      x-validate: null
    NotFoundResponse:
      description: Response returned when the requested resource is not found
      properties:
        message:
          description: Error message indicating the requested resource was not found
          example: Resource not found
          type: string
          x-struct: null
          x-validate: null
      title: NotFoundResponse
      type: object
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.ErrorResponses.NotFoundResponse
      x-validate: null
    JsonErrorResponse:
      properties:
        errors:
          items:
            properties:
              detail:
                example: null value where string expected
                type: string
                x-struct: null
                x-validate: null
              source:
                properties:
                  pointer:
                    example: /data/attributes/petName
                    type: string
                    x-struct: null
                    x-validate: null
                required:
                  - pointer
                type: object
                x-struct: null
                x-validate: null
              title:
                example: Invalid value
                type: string
                x-struct: null
                x-validate: null
            required:
              - title
              - source
              - detail
            type: object
            x-struct: null
            x-validate: null
          type: array
          x-struct: null
          x-validate: null
      required:
        - errors
      title: JsonErrorResponse
      type: object
      x-struct: Elixir.OpenApiSpex.JsonErrorResponse
      x-validate: null

````