Skip to main content

Get block inclusion proof

GET 

/api/proof/block/:height

Proof that the main-chain block at height is committed in the chain's MMR. By default the proof is built against the MMR at the rooted tip; at_height picks an earlier rooted commitment. From the claim fork on, the MMR leaf is the SHA-256 of the block's claim; below it, the block hash.

Errors (HTTP 200, with context fields such as height, rooted_height, at_height): height_not_in_main_chain, target_not_rooted, commitment_not_rooted, at_height_not_in_main_chain, out_of_range, proof_too_costly (the target's MMR peak is too large to read, typical for very old heights), snapshot_unavailable, pruned_history (the node prunes history).

Request​

Responses​

Block proof, or an error object