v0/headerGET
v0/data_root_inclusion_proofGET
v0/blobPOST
v0/blobGET
v0/blob/get_allPOST
v0/blob/statusGET
v0/blob/get_commitmentPOST
v0/gas_priceGET

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.
Query Parameters
networkstringOPTIONAL
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.
heightnumberOPTIONAL
The height of the block for which to retrieve the header. If not specified, the latest block header will be returned.
Response
headerJSON object
Top level object containing the block header information.
header.versionJSON object
The version of the block and app.
header.version.blockstring
The version of the block.
header.version.appstring
The version of the application.
header.chainIdstring
The ID of the Celestia chain.
header.heightnumber
The height of the block.
header.timestring
The timestamp of the block in ISO 8601 format.
header.lastBlockIdJSON object
The ID of the last block.
header.lastBlockId.hashhexadecimal string
The hash of the last block.
header.lastBlockId.partsJSON object
The parts of the last block.
header.lastBlockId.parts.totalnumber
The total number of parts in the last block.
header.lastBlockId.parts.hashhexadecimal string
The hash of the parts in the last block.
header.lastCommitHashhexadecimal string
The hash of the last commit.
header.dataHashhexadecimal string
The hash of the data in the block.
header.validatorsHashhexadecimal string
The hash of the validators in the block.
header.nextValidatorsHashhexadecimal string
The hash of the next validators in the block.
header.consensusHashhexadecimal string
The hash of the consensus in the block.
header.appHashhexadecimal string
The hash of the application in the block.
header.lastResultsHashhexadecimal string
The hash of the last results in the block.
header.evidenceHashhexadecimal string
The hash of the evidence in the block.
header.proposerAddresshexadecimal string
The address of the proposer of the block.
Example Response
Request

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