> ## 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 Block

> Returns the block number and hash of the highest block, including real-time data.



## OpenAPI

````yaml /en/api/catalog/evm/openapi.yaml get /head
openapi: 3.1.0
info:
  title: SQD Portal API - EVM Dataset Endpoints
  description: >-
    API endpoints for interacting with EVM datasets under the SQD Portal,
    specifically for the Ethereum Mainnet dataset.
  version: 1.0.0
servers:
  - url: https://portal.sqd.dev/datasets/ethereum-mainnet
    description: SQD Portal's endpoint for Ethereum Mainnet
security: []
paths:
  /head:
    get:
      summary: Latest Block
      description: >-
        Returns the block number and hash of the highest block, including
        real-time data.
      responses:
        '200':
          description: Highest block information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlockHead'
              examples:
                ethereum-head:
                  summary: Latest Ethereum block
                  value:
                    number: 21500000
                    hash: >-
                      0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
      x-codeSamples:
        - lang: shell
          label: Get Latest Ethereum Block
          source: >
            curl --compressed
            'https://portal.sqd.dev/datasets/ethereum-mainnet/head'
        - lang: python
          label: Get Latest Ethereum Block
          source: |
            import requests

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

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

````