searchForBlockHeaders
GET /v2/block-headers
Search for block headers. Block headers are returned in ascending round order. Transactions are not included in the output.
Parameters
Query Parameters
Maximum number of results to return. There could be additional pages even if the limit is not reached.
The next page of results. Use the next token provided by the previous results.
Include results at or after the specified min-round.
Include results at or before the specified max-round.
Include results before the given time. Must be an RFC 3339 formatted string.
Include results after the given time. Must be an RFC 3339 formatted string.
Accounts marked as proposer in the block header’s participation updates. This parameter accepts a comma separated list of addresses.
Accounts marked as expired in the block header’s participation updates. This parameter accepts a comma separated list of addresses.
Accounts marked as absent in the block header’s participation updates. This parameter accepts a comma separated list of addresses.
Responses
200
(empty)
object
Block information.
Definition: data/bookkeeping/block.go : Block
object
The potential bonus payout for this block.
The sum of all fees paid by transactions in this block.
[gh] hash to which this block belongs.
[gen] ID to which this block belongs.
Participation account data that needs to be checked/acted on by the network.
object
[partupabs] a list of online accounts that need to be suspended.
[partupdrmv] a list of online accounts that needs to be converted to offline since their participation key expired.
[prev] Previous block hash.
The proposer of this block.
The actual amount transferred to the proposer from the fee sink.
Fields relating to rewards,
object
[fees] accepts transaction fees, it can only spend to the incentive pool.
[rwcalr] number of leftover MicroAlgos after the distribution of rewards-rate MicroAlgos for every reward unit in the next round.
[earn] How many rewards, in MicroAlgos, have been distributed to each RewardUnit of MicroAlgos since genesis.
[rwd] accepts periodic injections from the fee-sink and continually redistributes them as rewards.
[rate] Number of new MicroAlgos added to the participation stake from rewards at the next round.
[frac] Number of leftover MicroAlgos after the distribution of RewardsRate/rewardUnits MicroAlgos for every reward unit in the next round.
[rnd] Current round on which this block was appended to the chain.
[seed] Sortition seed.
Tracks the status of state proofs.
object
[n] Next round for which we will accept a state proof transaction.
[t] The total number of microalgos held by the online accounts during the StateProof round.
State Proof Type. Note the raw object uses map with this as key.
[v] Root of a vector commitment containing online accounts that will help sign the proof.
[ts] Block creation timestamp in seconds since eposh
[txns] list of transactions corresponding to a given round.
Contains all fields common to all transactions and serves as an envelope to all transactions type. Represents both regular and inner transactions.
Definition: data/transactions/signedtxn.go : SignedTxn data/transactions/transaction.go : Transaction
object
Fields for application transactions.
Definition: data/transactions/application.go : ApplicationCallTxnFields
object
[apat] List of accounts in addition to the sender that may be accessed from the application’s approval-program and clear-state-program.
[apaa] transaction specific arguments accessed from the application’s approval-program and clear-state-program.
[apid] ID of the application being configured or empty if creating.
[apap] Logic executed for every application transaction, except when on-completion is set to “clear”. It can read and write global state for the application, as well as account-specific local state. Approval programs may reject the transaction.
[apsu] Logic executed for application transactions with on-completion set to “clear”. It can read and write global state for the application, as well as account-specific local state. Clear state programs cannot reject the transaction.
[epp] specifies the additional app program len requested in pages.
[apfa] Lists the applications in addition to the application-id whose global states may be accessed by this application’s approval-program and clear-state-program. The access is read-only.
[apas] lists the assets whose parameters may be accessed by this application’s ApprovalProgram and ClearStateProgram. The access is read-only.
Represents a [apls] local-state or [apgs] global-state schema. These schemas determine how much storage may be used in a local-state or global-state for an application. The more space used, the larger minimum balance must be maintained in the account holding the data.
object
Maximum number of TEAL byte slices that may be stored in the key/value store.
Maximum number of TEAL uints that may be stored in the key/value store.
Represents a [apls] local-state or [apgs] global-state schema. These schemas determine how much storage may be used in a local-state or global-state for an application. The more space used, the larger minimum balance must be maintained in the account holding the data.
object
Maximum number of TEAL byte slices that may be stored in the key/value store.
Maximum number of TEAL uints that may be stored in the key/value store.
[apan] defines the what additional actions occur with the transaction.
Valid types:
- noop
- optin
- closeout
- clear
- update
- update
- delete
Fields for asset allocation, re-configuration, and destruction.
A zero value for asset-id indicates asset creation. A zero value for the params indicates asset destruction.
Definition: data/transactions/asset.go : AssetConfigTxnFields
object
[xaid] ID of the asset being configured or empty if creating.
AssetParams specifies the parameters for an asset.
[apar] when part of an AssetConfig transaction.
Definition: data/transactions/asset.go : AssetParams
object
Address of account used to clawback holdings of this asset. If empty, clawback is not permitted.
The address that created this asset. This is the address where the parameters for this asset can be found, and also the address where unwanted asset units can be sent in the worst case.
The number of digits to use after the decimal point when displaying this asset. If 0, the asset is not divisible. If 1, the base unit of the asset is in tenths. If 2, the base unit of the asset is in hundredths, and so on. This value must be between 0 and 19 (inclusive).
Whether holdings of this asset are frozen by default.
Address of account used to freeze holdings of this asset. If empty, freezing is not permitted.
Address of account used to manage the keys of this asset and to destroy it.
A commitment to some unspecified asset metadata. The format of this metadata is up to the application.
Name of this asset, as supplied by the creator. Included only when the asset name is composed of printable utf-8 characters.
Base64 encoded name of this asset, as supplied by the creator.
Address of account holding reserve (non-minted) units of this asset.
The total number of units of this asset.
Name of a unit of this asset, as supplied by the creator. Included only when the name of a unit of this asset is composed of printable utf-8 characters.
Base64 encoded name of a unit of this asset, as supplied by the creator.
URL where more information about the asset can be retrieved. Included only when the URL is composed of printable utf-8 characters.
Base64 encoded URL where more information about the asset can be retrieved.
Fields for an asset freeze transaction.
Definition: data/transactions/asset.go : AssetFreezeTxnFields
object
[fadd] Address of the account whose asset is being frozen or thawed.
[faid] ID of the asset being frozen or thawed.
[afrz] The new freeze status.
Fields for an asset transfer transaction.
Definition: data/transactions/asset.go : AssetTransferTxnFields
object
[aamt] Amount of asset to transfer. A zero amount transferred to self allocates that asset in the account’s Assets map.
[xaid] ID of the asset being transferred.
Number of assets transferred to the close-to account as part of the transaction.
[aclose] Indicates that the asset should be removed from the account’s Assets map, and specifies where the remaining asset holdings should be transferred. It’s always valid to transfer remaining asset holdings to the creator account.
[arcv] Recipient address of the transfer.
[asnd] The effective sender during a clawback transactions. If this is not a zero value, the real transaction sender must be the Clawback address from the AssetParams.
[sgnr] this is included with signed transactions when the signing address does not equal the sender. The backend can use this to ensure that auth addr is equal to the accounts auth addr.
[rc] rewards applied to close-remainder-to account.
[ca] closing amount for transaction.
Round when the transaction was confirmed.
Specifies an application index (ID) if an application was created with this transaction.
Specifies an asset index (ID) if an asset was created with this transaction.
[fee] Transaction fee.
[fv] First valid round for this transaction.
[gh] Hash of genesis block.
[gen] genesis block ID.
Application state delta.
Key-value pairs for StateDelta.
object
Represents a TEAL value delta.
object
[at] delta action.
[bs] bytes value.
[ui] uint value.
[grp] Base64 encoded byte array of a sha512/256 digest. When present indicates that this transaction is part of a transaction group and the value is the sha512/256 hash of the transactions in that group.
Fields for a heartbeat transaction.
Definition: data/transactions/heartbeat.go : HeartbeatTxnFields
object
[hbad] HbAddress is the account this txn is proving onlineness for.
[hbkd] HbKeyDilution must match HbAddress account’s current KeyDilution.
[hbprf] HbProof is a signature using HeartbeatAddress’s partkey, thereby showing it is online.
object
[p] Public key of the heartbeat message.
[p1s] Signature of OneTimeSignatureSubkeyOffsetID(PK, Batch, Offset) under the key PK2.
[p2] Key for new-style two-level ephemeral signature.
[p2s] Signature of OneTimeSignatureSubkeyBatchID(PK2, Batch) under the master key (OneTimeSignatureVerifier).
[s] Signature of the heartbeat message.
[hbsd] HbSeed must be the block seed for the this transaction’s firstValid block.
[hbvid] HbVoteID must match the HbAddress account’s current VoteID.
Transaction ID
Offset into the round where this transaction was confirmed.
Fields for a keyreg transaction.
Definition: data/transactions/keyreg.go : KeyregTxnFields
object
[nonpart] Mark the account as participating or non-participating.
[selkey] Public key used with the Verified Random Function (VRF) result during committee selection.
[sprfkey] State proof key used in key registration transactions.
[votefst] First round this participation key is valid.
[votekd] Number of subkeys in each batch of participation keys.
[votelst] Last round this participation key is valid.
[votekey] Participation public key used in key registration transactions.
[lv] Last valid round for this transaction.
[lx] Base64 encoded 32-byte array. Lease enforces mutual exclusion of transactions. If this field is nonzero, then once the transaction is confirmed, it acquires the lease identified by the (Sender, Lease) pair of the transaction until the LastValid round passes. While this transaction possesses the lease, no other transaction specifying this lease can be confirmed.
[ld] Local state key/value changes for the application being executed by this transaction.
Application state delta.
object
Application state delta.
Key-value pairs for StateDelta.
object
Represents a TEAL value delta.
object
[at] delta action.
[bs] bytes value.
[ui] uint value.
[lg] Logs for the application being executed by this transaction.
[note] Free form data.
Fields for a payment transaction.
Definition: data/transactions/payment.go : PaymentTxnFields
object
[amt] number of MicroAlgos intended to be transferred.
Number of MicroAlgos that were sent to the close-remainder-to address when closing the sender account.
[close] when set, indicates that the sending account should be closed and all remaining funds be transferred to this address.
[rcv] receiver’s address.
[rr] rewards applied to receiver account.
[rekey] when included in a valid transaction, the accounts auth addr will be updated with this value and future signatures must be signed with the key represented by this address.
Time when the block this transaction is in was confirmed.
[snd] Sender’s address.
[rs] rewards applied to sender account.
Validation signature associated with some data. Only one of the signatures should be provided.
object
[lsig] Programatic transaction signature.
Definition: data/transactions/logicsig.go
object
[arg] Logic arguments, base64 encoded.
[l] Program signed by a signature or multi signature, or hashed to be the address of ana ccount. Base64 encoded TEAL program.
[msig] structure holding multiple subsignatures.
Definition: crypto/multisig.go : MultisigSig
object
[subsig] holds pairs of public key and signatures.
object
[pk]
[s]
[thr]
[v]
[sig] ed25519 signature.
[msig] structure holding multiple subsignatures.
Definition: crypto/multisig.go : MultisigSig
object
[subsig] holds pairs of public key and signatures.
object
[pk]
[s]
[thr]
[v]
[sig] Standard ed25519 signature.
Fields for a state proof transaction.
Definition: data/transactions/stateproof.go : StateProofTxnFields
object
object
[b]
[f]
[l]
[P]
[v]
[sp] represents a state proof.
Definition: crypto/stateproof/structs.go : StateProof
object
object
object
[t]
[pth]
[td]
[pr] Sequence of reveal positions.
[r] Note that this is actually stored as a map[uint64] - Reveal in the actual msgp
object
object
object
[cmt] Represents the root of the vector commitment tree.
[lf] Key lifetime.
[w]
The position in the signature and participants arrays corresponding to this entry.
object
[l] The total weight of signatures in the lower-numbered slots.
object
object
object
[t]
[pth]
[td]
[vkey]
[v] Salt version of the merkle signature.
[c]
object
object
[t]
[pth]
[td]
[w]
[sptype] Type of the state proof. Integer representing an entry defined in protocol/stateproof.go
[type] Indicates what type of transaction this is. Different types have different fields.
Valid types, and where their fields are stored:
- [pay] payment-transaction
- [keyreg] keyreg-transaction
- [acfg] asset-config-transaction
- [axfer] asset-transfer-transaction
- [afrz] asset-freeze-transaction
- [appl] application-transaction
- [stpf] state-proof-transaction
- [hb] heartbeat-transaction
[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 block’s Txids, in lexicographic order. For the empty block, it’s 0. Note that the TxnRoot does not authenticate the signatures on the transactions, only the transactions themselves. Two blocks with the same transactions but in a different order and with different signatures will have the same TxnRoot.
[txn256] TransactionsRootSHA256 is an auxiliary TransactionRoot, built using a vector commitment instead of a merkle tree, and SHA256 hash function instead of the default SHA512_256. This commitment can be used on environments where only the SHA256 function exists.
[tc] TxnCounter counts the number of transactions committed in the ledger, from the time at which support for this feature was introduced.
Specifically, TxnCounter is the number of the next transaction that will be committed after this block. It is 0 when no transactions have ever been committed (since TxnCounter started being supported).
Fields relating to a protocol upgrade.
object
[proto] The current protocol version.
[nextproto] The next proposed protocol version.
[nextyes] Number of blocks which approved the protocol upgrade.
[nextswitch] Round on which the protocol upgrade will take effect.
[nextbefore] Deadline round for this protocol upgrade (No votes will be consider after this round).
Fields relating to voting for a protocol upgrade.
object
[upgradeyes] Indicates a yes vote for the current proposal.
[upgradedelay] Indicates the time between acceptance and execution.
[upgradeprop] Indicates a proposed upgrade.
Round at which the results were computed.
Used for pagination, when making another request provide this token with the next parameter.
404
Response for errors
object
object
500
Response for errors