searchForTransactions - Algorand

Search for transactions. Transactions are returned oldest to newest unless the address parameter is used, in which case results are returned newest to oldest.

Endpoint

httpGET /v2/transactions

Query Parameters

ParameterTypeRequiredDescription
limitintegerOptionalMaximum number of results to return. There could be additional pages even if the limit is not reached.
nextstringOptionalThe next page of results. Use the next token provided by the previous results.
note-prefixstringOptionalSpecifies a prefix which must be contained in the note field.
tx-typestringOptional—
sig-typestringOptionalSigType filters just results using the specified type of signature:
group-idstringOptionalLookup transactions by group ID. This field must be base64-encoded, and afterwards, base64 characters that are URL-unsafe (i.e. =, /, +) must be URL-encoded
txidstringOptionalLookup the specific transaction by ID.
roundintegerOptionalInclude results for the specified round.
min-roundintegerOptionalInclude results at or after the specified min-round.
max-roundintegerOptionalInclude results at or before the specified max-round.
asset-idintegerOptionalAsset ID
before-timestringOptionalInclude results before the given time. Must be an RFC 3339 formatted string.
after-timestringOptionalInclude results after the given time. Must be an RFC 3339 formatted string.
currency-greater-thanintegerOptionalResults should have an amount greater than this value. MicroAlgos are the default currency unless an asset-id is provided, in which case the asset will be used.
currency-less-thanintegerOptionalResults should have an amount less than this value. MicroAlgos are the default currency unless an asset-id is provided, in which case the asset will be used.
addressstringOptionalOnly include transactions with this address in one of the transaction fields.
address-rolestringOptionalCombine with the address parameter to define what type of address to search for.
exclude-close-tobooleanOptionalCombine with address and address-role parameters to define what type of address to search for. The close to fields are normally treated as a receiver, if you wo
rekey-tobooleanOptionalInclude results which include the rekey-to field.
application-idintegerOptionalApplication ID

Example

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

curl "${ALGO_INDEXER}v2/transactions"

Response

Returns application/json. Top-level fields:

FieldTypeDescription
current-roundintegerRound at which the results were computed.
next-tokenstringUsed for pagination, when making another request provide this token with the next parameter.
transactionsarray—

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