WaitForBlock - Algorand

Waits for a block to appear after round {round} and returns the node's status at the time. There is a 1 minute timeout, when reached the current status is returned regardless of whether or not it is the round after the given round.

Endpoint

httpGET /v2/status/wait-for-block-after/{round}

Path Parameters

ParameterTypeRequiredDescription
roundintegerYesA round number.

Example

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

curl "${ALGO_ALGOD}v2/status/wait-for-block-after/REPLACE_ROUND"

Response

Returns application/json. Top-level fields:

FieldTypeDescription
catchpointstringThe current catchpoint that is being caught up to
catchpoint-acquired-blocksintegerThe number of blocks that have already been obtained by the node as part of the catchup
catchpoint-processed-accountsintegerThe number of accounts from the current catchpoint that have been processed so far as part of the catchup
catchpoint-processed-kvsintegerThe number of key-values (KVs) from the current catchpoint that have been processed so far as part of the catchup
catchpoint-total-accountsintegerThe total number of accounts included in the current catchpoint
catchpoint-total-blocksintegerThe total number of blocks that are required to complete the current catchpoint catchup
catchpoint-total-kvsintegerThe total number of key-values (KVs) included in the current catchpoint
catchpoint-verified-accountsintegerThe number of accounts from the current catchpoint that have been verified so far as part of the catchup
catchpoint-verified-kvsintegerThe number of key-values (KVs) from the current catchpoint that have been verified so far as part of the catchup
catchup-timeintegerCatchupTime in nanoseconds
last-catchpointstringThe last catchpoint seen by the node
last-roundintegerLastRound indicates the last round seen
last-versionstringLastVersion indicates the last consensus version supported
next-versionstringNextVersion of consensus protocol to use
next-version-roundintegerNextVersionRound is the round at which the next consensus version will apply
next-version-supportedbooleanNextVersionSupported indicates whether the next consensus version is supported by this node
stopped-at-unsupported-roundbooleanStoppedAtUnsupportedRound indicates that the node does not support the new rounds and has stopped making progress
time-since-last-roundintegerTimeSinceLastRound in nanoseconds
upgrade-delayintegerUpgrade delay
upgrade-next-protocol-vote-beforeintegerNext protocol round
upgrade-no-votesintegerNo votes cast for consensus upgrade
upgrade-node-votebooleanThis node's upgrade vote
upgrade-vote-roundsintegerTotal voting rounds for current upgrade
upgrade-votesintegerTotal votes cast for consensus upgrade
upgrade-votes-requiredintegerYes votes required for consensus upgrade
upgrade-yes-votesintegerYes votes cast for consensus upgrade

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