GetStateProof - Algorand

Get a state proof that covers a given round.

Endpoint

httpGET /v2/stateproofs/{round}

Path Parameters

ParameterTypeRequiredDescription
roundintegerYesA round number.

Example

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

curl "${ALGO_ALGOD}v2/stateproofs/REPLACE_ROUND"

Response

Returns application/json. Top-level fields:

FieldTypeDescription
MessageobjectRepresents the message that the state proofs are attesting to.
StateProofstringThe encoded StateProof for the message.

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