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

# Get block by number

> Block header plus `batch_number`: the HyperEVM batch containing it (null until posted).



## OpenAPI

````yaml /elysium/openapi-rest.json get /elysium/mainnet/blocks/{block_number}
openapi: 3.0.3
info:
  title: 'Hypedexer API: Elysium'
  version: 1.0.0
  description: >-
    Elysium mainnet (chain 99901) and testnet (chain 99801), Kinetiq's L2 on
    HyperEVM: blocks, transactions, logs, batches, bridge HyperEVM ↔ Elysium,
    tokens and accounts.
servers:
  - url: https://api.hypedexer.com
    description: EU production
security:
  - ApiKeyAuth: []
tags:
  - name: Elysium Mainnet
    description: Elysium mainnet chain, settlement batches, bridge, tokens and accounts.
  - name: Elysium Testnet
    description: Elysium testnet chain, settlement batches, bridge, tokens and accounts.
paths:
  /elysium/mainnet/blocks/{block_number}:
    get:
      tags:
        - Elysium Mainnet
      summary: Get block by number
      description: >-
        Block header plus `batch_number`: the HyperEVM batch containing it (null
        until posted).
      parameters:
        - name: block_number
          in: path
          schema:
            type: integer
            minimum: 0
            description: Block number
          required: true
          description: Block number
        - name: X-API-Key
          in: header
          schema:
            type: string
            nullable: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    default: true
                  message:
                    type: string
                  data:
                    $ref: '#/components/schemas/ElysiumBlockDetail'
                  execution_time_ms:
                    type: number
                  has_more:
                    type: boolean
        '404':
          description: Not found
        '422':
          description: Invalid parameter
components:
  schemas:
    ElysiumBlockDetail:
      properties:
        block_time:
          format: date-time
          title: Block Time
          type: string
        block_number:
          title: Block Number
          type: integer
        block_hash:
          title: Block Hash
          type: string
        parent_hash:
          title: Parent Hash
          type: string
        gas_limit:
          title: Gas Limit
          type: integer
        gas_used:
          title: Gas Used
          type: integer
        base_fee_per_gas:
          title: Base Fee Per Gas
          type: integer
        l1_block_number:
          title: L1 Block Number
          type: integer
        tx_count:
          title: Tx Count
          type: integer
        user_tx_count:
          title: User Tx Count
          type: integer
        batch_number:
          default: null
          title: Batch Number
          type: integer
          nullable: true
      required:
        - block_time
        - block_number
        - block_hash
        - parent_hash
        - gas_limit
        - gas_used
        - base_fee_per_gas
        - l1_block_number
        - tx_count
        - user_tx_count
      title: ElysiumBlockDetail
      type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Your Hypedexer API key. Create one in the console at
        https://app.hypedexer.com. `Authorization: Bearer <key>` and the
        `api_key` query parameter are accepted as well.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.