GetBlockHash - Algorand

Get the block hash for the block on the given round.

Endpoint

httpGET /v2/blocks/{round}/hash

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/hash"

Response

Returns application/json. Top-level fields:

FieldTypeDescription
blockHashstringBlock header hash.

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