GET v0/header

Gets the header of a block

This endpoint will return the block header from the designated Celestia network. A valid API key is required to access this endpoint. The header contains information about the block, such as its version, time, and hashes of various components.

Request

curl \
  -H 'Authorization: Bearer <YOUR API KEY>' \
  'https://t.tech/v0/header'

Query Parameters

network
stringoptional

The Celestia network to which the data blob should be posted. Can be either mainnet or mocha-4. Defaults to mainnet if no value is specified. Read more about networks on the Celestia Docs here.

height
numberoptional

The height of the block for which to retrieve the header. If not specified, the latest block header will be returned.

Response

JSON object
dahJSON object

Data Availability Header

columnRootsarray<base64 encoded string>

Commitments to all erasure-coded data

rowRootsarray<base64 encoded string>

Commitments to all erasure-coded data

headerJSON object

Top level object containing the block header information.

appHashhexadecimal string

The hash of the application in the block.

chainIdstring

The ID of the Celestia chain.

consensusHashhexadecimal string

The hash of the consensus in the block.

dataHashhexadecimal string

The hash of the data in the block.

evidenceHashhexadecimal string

The hash of the evidence in the block.

heightstring

The height of the block.

lastBlockIdJSON object

The ID of the last block.

hashhexadecimal string

The hash of the last block.

partsJSON object

The parts of the last block.

hashhexadecimal string

The hash of the parts in the last block.

totalinteger

The total number of parts in the last block.

lastCommitHashhexadecimal string

The hash of the last commit.

lastResultsHashhexadecimal string

The hash of the last results in the block.

nextValidatorsHashhexadecimal string

The hash of the next validators in the block.

proposerAddresshexadecimal string

The address of the proposer of the block.

timestring

The timestamp of the block in ISO 8601 format.

validatorsHashhexadecimal string

The hash of the validators in the block.

versionJSON object

The version of the block and app.

appstring

The version of the application.

blockstring

The version of the block.

Example Response