GetLightBlockHeaderProof - Algorand

Gets a proof for a given light block header inside a state proof commitment.

Endpoint

httpGET /v2/blocks/{round}/lightheader/proof

Path Parameters

ParameterTypeRequiredDescription
roundintegerYesA round number.

Example

bashexport ALGO_ALGOD=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${ALGO_ALGOD}v2/blocks/REPLACE_ROUND/lightheader/proof"

Response

Returns application/json. Top-level fields:

FieldTypeDescription
indexintegerThe index of the light block header in the vector commitment tree
proofstringThe encoded proof.
treedepthintegerRepresents the depth of the tree that is being proven, i.e. the number of edges from a leaf to the root.

Error Handling

ErrorMessageDescription
400Bad requestA parameter was missing or malformed
404Not foundThe requested resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect