GET v0/share/get_namespace_data

Get the data of a Celestia namespace

Retrieves all shares that belong to the specified Celestia namespace within the Extended Data Square (EDS) at the given height.

Request

curl \
  -H 'Authorization: Bearer <YOUR API KEY>' \
  'https://t.tech/v0/share/get_namespace_data?height=0&namespace=%22REPLACE%20ME%22'

Query Parameters

height
numberrequired

The block height at which the blob was submitted in the Celestia blockchain.

namespace
stringrequired

The namespace associated with the blob. This should be in base64 format. Be sure to encode the value in your request.

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.

Response

JSON object
resultarray<JSON object>
proofJSON object

Namespaced Merkle Tree (NMT) proof that cryptographically verifies the returned shares belong to the requested namespace. This object is optional.

endinteger

Ending index of the proven leaf range in the NMT. This field is optional.

isMaxNamespaceIgnoredboolean

Indicates if the proof was generated using “ignore max namespace”. This field is optional.

leafHashbase64 encoded string

Leaf hash used for proving namespace absence (when the namespace is in the min/max range but has no data). This field is optional.

nodesarray<base64 encoded string>

Array of sibling hash values needed to recompute the root and verify the proof. This field is optional.

startinteger

Starting index of the proven leaf range in the NMT. This field is optional.

sharesarray<base64 encoded string>

Array of 512-byte fixed-size data chunks (shares) belonging to the requested namespace. Each share contains namespace metadata (version, ID), sequence information, and the raw data payload. Shares are returned in row-by-row order from the Extended Data Square (EDS). This field is optional.

Example Response