GET v0/data_root_inclusion_proof

Gets the data root inclusion proof from the Celestia blockchain

The proof is a cryptographic proof that shows a specific data root (e.g., for a blob namespace) was included in a given block in the Celestia blockchain.

Request

curl \
  -H 'Authorization: Bearer <YOUR API KEY>' \
  'https://t.tech/v0/data_root_inclusion_proof?height=0&start=0&end=0'

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
numberrequired

The block height for which the data root inclusion proof is requested. This is the block height at which the data root was included.

start
numberrequired

The starting index (inclusive) of the leaf or leaves you want a proof for. If you’re proving a single leaf, this is the index of that leaf.

end
numberrequired

The end of the proof range in block height for the api call. It is end exclusive and the max difference between start and end is 1000 blocks. If you’re proving a single leaf, then end = start + 1.

Response

JSON object
proofJSON object

Top level object containing the inclusion proof.

auntsarray<string>

An array of the sibling hashes in the Merkle tree needed to verify a leaf node.

indexinteger

The position of the data root (leaf) in the list of all leaves used to build the Merkle tree. Zero-based index.

leafHashstring

The hash of the leaf in the proof.

totalinteger

The total number of leaves in the Merkle tree (i.e., how many data roots are in the row).

Example Response