> ## 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 slot number and hash of the highest finalized block.



## OpenAPI

````yaml /en/api/catalog/solana/openapi.yaml get /finalized-head
openapi: 3.1.0
info:
  title: SQD Portal API - Solana Dataset Endpoints
  description: >-
    API endpoints for interacting with Solana datasets under the SQD Portal,
    specifically for the solana-mainnet dataset.
  version: 1.0.0
servers:
  - url: https://portal.sqd.dev/datasets/solana-mainnet
security: []
paths:
  /finalized-head:
    get:
      summary: Latest Finalized Block
      description: Returns the slot number and hash of the highest finalized block.
      responses:
        '200':
          description: Highest finalized block information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlockHead'
              examples:
                solana-finalized:
                  summary: Latest finalized Solana block
                  value:
                    number: 299999968
                    hash: 8zKqF3jNPBRoCZy4vJ9FhJKWqZxKqDqJxEqVQYqJxQYq
      x-codeSamples:
        - lang: shell
          label: Get Latest Finalized Solana Block
          source: >
            curl --compressed
            'https://portal.sqd.dev/datasets/solana-mainnet/finalized-head'
        - lang: python
          label: Get Latest Finalized Solana Block
          source: |
            import requests

            response = requests.get(
                "https://portal.sqd.dev/datasets/solana-mainnet/finalized-head"
            )
            data = response.json()
        - lang: javascript
          label: Get Latest Finalized Solana Block
          source: >
            const response = await
            fetch("https://portal.sqd.dev/datasets/solana-mainnet/finalized-head");

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

````