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

# Latest Finalized Block

> Returns the block number and hash of the highest finalized block.



## OpenAPI

````yaml /en/api/catalog/hyperliquid/openapi-replica-cmds.yaml get /finalized-head
openapi: 3.1.0
info:
  title: SQD Portal API - Hyperliquid Replica Commands Dataset Endpoints
  description: >-
    API endpoints for interacting with Hyperliquid replica commands datasets
    under the SQD Portal. Captures all L1 blockchain actions (orders, cancels,
    transfers, etc.) with their exchange responses.
  version: 1.0.0
servers:
  - url: https://portal.sqd.dev/datasets/hyperliquid-replica-cmds
    description: SQD Portal's endpoint for Hyperliquid Replica Commands (Mainnet)
security: []
paths:
  /finalized-head:
    get:
      summary: Latest Finalized Block
      description: Returns the block number and hash of the highest finalized block.
      responses:
        '200':
          description: Highest finalized block information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlockHead'
      x-codeSamples:
        - lang: shell
          label: Get Latest Finalized Block for Replica Commands
          source: >
            curl --compressed
            'https://portal.sqd.dev/datasets/hyperliquid-replica-cmds/finalized-head'
        - lang: python
          label: Get Latest Finalized Block for Replica Commands
          source: |
            import requests

            response = requests.get(
                "https://portal.sqd.dev/datasets/hyperliquid-replica-cmds/finalized-head"
            )
            data = response.json()
        - lang: javascript
          label: Get Latest Finalized Block for Replica Commands
          source: >
            const response = await
            fetch("https://portal.sqd.dev/datasets/hyperliquid-replica-cmds/finalized-head");

            const data = await response.json();
components:
  schemas:
    BlockHead:
      type: object
      properties:
        number:
          type: integer
          format: int64
          description: Block number of the highest available block.
        hash:
          type: string
          description: Hash of the highest available block.
      nullable: true

````