lookupApplicationLogsByID - Algorand

Lookup application logs.

Endpoint

httpGET /v2/applications/{application-id}/logs

Path Parameters

ParameterTypeRequiredDescription
application-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.
txidstringOptionalLookup the specific transaction by ID.
min-roundintegerOptionalInclude results at or after the specified min-round.
max-roundintegerOptionalInclude results at or before the specified max-round.
sender-addressstringOptionalOnly include transactions with this sender address.

Example

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

curl "${ALGO_INDEXER}v2/applications/REPLACE_APPLICATION-ID/logs"

Response

Returns application/json. Top-level fields:

FieldTypeDescription
application-idinteger[appidx] application index.
current-roundintegerRound at which the results were computed.
log-dataarray—
next-tokenstringUsed for pagination, when making another request provide this token with the next parameter.

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