Skip to main content
Current Merkle root + leaf count.
A proof is only valid against the root it was built for. Read the root, build the proof, and submit before the tree advances, or the vault rejects the spend with StaleMerkleRoot (6004).

Query Parameters

tree_id
integer
default:0

Which Merkle shard to read (0..num_trees-1). Default 0.

Response

Tree root snapshot.

tree_id
integer
default:0
required

Which Merkle shard this root is for (echoes the request's ?tree_id, default 0). Present under tree-sharding.

merkle_root
string
required

Current Merkle root of shard tree_id, hex-encoded. It should equal finalized on-chain MerkleTree[tree_id].current_root. Historical roots accepted through the on-chain 64-entry history are not returned by this endpoint.

leaf_count
integer
required

Leaf count of this shard.

on_chain_slot
integer
required

Solana slot at which the TEE last synced this shard's mirror from on-chain MerkleTree[tree_id].