Returns log messages generated by the passed in application.
const appId = 60553466;
const appLogs = await indexerClient.lookupApplicationLogs(appId).do();
The ID of the application which generated the logs.
Execute the request, but do not process the response data in any way.
A promise which resolves to the raw response data, exactly as returned by the server.
Additional headers to send in the request. Optional.
Prepare a JSON response before returning it.
Use this method to change and restructure response
data as needed after receiving it from the do()
method.
Response body received
Configure how integers in this request's JSON response will be decoded.
The options are:
The method to use when parsing the response for this request. Must be one of "default", "safe", "mixed", or "bigint".
Limit results for pagination.
const maxResults = 20;
const appLogs = await indexerClient
.lookupApplicationLogs(appId)
.limit(maxResults)
.do();
maximum number of results to return.
Include results at or before the specified max-round.
const maxRound = 18309917;
const appLogs = await indexerClient
.lookupApplicationLogs(appId)
.maxRound(maxRound)
.do();
Include results at or after the specified min-round.
const minRound = 18309917;
const appLogs = await indexerClient
.lookupApplicationLogs(appId)
.minRound(minRound)
.do();
The next page of results.
const maxResults = 25;
const appLogsPage1 = await indexerClient
.lookupApplicationLogs(appId)
.limit(maxResults)
.do();
const appLogsPage2 = await indexerClient
.lookupApplicationLogs(appId)
.limit(maxResults)
.nextToken(appLogsPage1["next-token"])
.do();
provided by the previous results.
Only include transactions with this sender address.
const sender = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const appLogs = await indexerClient
.lookupApplicationLogs(appId)
.sender(sender)
.do();
Lookup the specific transaction by ID.
const txId = "MEUOC4RQJB23CQZRFRKYEI6WBO73VTTPST5A7B3S5OKBUY6LFUDA";
const appLogs = await indexerClient
.lookupApplicationLogs(appId)
.txid(txId)
.do();
Generated using TypeDoc
Base abstract class for JSON requests.
Data: The type returned from the
do()
methodBody: The structure of the response's body