lookupBlock - Algorand

Lookup block.

Endpoint

httpGET /v2/blocks/{round-number}

Path Parameters

ParameterTypeRequiredDescription
round-numberintegerYesRound number

Query Parameters

ParameterTypeRequiredDescription
header-onlybooleanOptionalHeader only flag. When this is set to true, returned block does not contain the transactions

Example

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

curl "${ALGO_INDEXER}v2/blocks/REPLACE_ROUND-NUMBER"

Response

Returns application/json. Top-level fields:

FieldTypeDescription
bonusintegerthe potential bonus payout for this block.
congestion-taxintegerthe fee required, beyond the minimum fee, for "normal" transactions in this block.
fees-collectedintegerthe sum of all fees paid by transactions in this block.
genesis-hashstring[gh] hash to which this block belongs.
genesis-idstring[gen] ID to which this block belongs.
loadintegerthe degree to which this block is full, based on the number of bytes in the final block compared to the maximum allowed. Expressed as a fixed-point integer with
participation-updatesobjectParticipation account data that needs to be checked/acted on by the network.
previous-block-hashstring[prev] Previous block hash.
previous-block-hash-512string[prev512] Previous block hash, using SHA-512.
proposerstringthe proposer of this block.
proposer-payoutintegerthe actual amount transferred to the proposer from the fee sink.
rewardsobjectFields relating to rewards,
roundinteger[rnd] Current round on which this block was appended to the chain.
seedstring[seed] Sortition seed.
state-proof-trackingarrayTracks the status of state proofs.
timestampinteger[ts] Block creation timestamp in seconds since eposh
transactionsarray[txns] list of transactions corresponding to a given round.
transactions-rootstring[txn] TransactionsRoot authenticates the set of transactions appearing in the block. More specifically, it's the root of a merkle tree whose leaves are the bl
transactions-root-sha256string[txn256] TransactionsRootSHA256 is an auxiliary TransactionRoot, built using a vector commitment instead of a merkle tree, and SHA256 hash function instead of
transactions-root-sha512string[txn512] TransactionsRootSHA512 is an auxiliary TransactionRoot, built using a vector commitment instead of a merkle tree, and SHA512 hash function instead of
txn-counterinteger[tc] TxnCounter counts the number of transactions committed in the ledger, from the time at which support for this feature was introduced.
upgrade-stateobjectFields relating to a protocol upgrade.
upgrade-voteobjectFields relating to voting for a protocol 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