lookupAssetTransactions - Algorand

Lookup transactions for an asset. Transactions are returned oldest to newest.

Endpoint

httpGET /v2/assets/{asset-id}/transactions

Path Parameters

ParameterTypeRequiredDescription
asset-idintegerYes—

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:
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.
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.

Example

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

curl "${ALGO_INDEXER}v2/assets/REPLACE_ASSET-ID/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