PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/algosdk/dist/esm/src/client/v2/indexer
Просмотр файла: lookupApplicationLogs.js
import JSONRequest from '../jsonrequest';
export default class LookupApplicationLogs extends JSONRequest {
/**
* Returns log messages generated by the passed in application.
*
* #### Example
* ```typescript
* const appId = 60553466;
* const appLogs = await indexerClient.lookupApplicationLogs(appId).do();
* ```
*
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/indexer/#get-v2applicationsapplication-idlogs)
* @param appID - The ID of the application which generated the logs.
* @category GET
*/
constructor(c, intDecoding, appID) {
super(c, intDecoding);
this.appID = appID;
this.appID = appID;
}
/**
* @returns `/v2/applications/${appID}/logs`
*/
path() {
return `/v2/applications/${this.appID}/logs`;
}
/**
* Limit results for pagination.
*
* #### Example
* ```typescript
* const maxResults = 20;
* const appLogs = await indexerClient
* .lookupApplicationLogs(appId)
* .limit(maxResults)
* .do();
* ```
*
* @param limit - maximum number of results to return.
*/
limit(limit) {
this.query.limit = limit;
return this;
}
/**
* Include results at or after the specified min-round.
*
* #### Example
* ```typescript
* const minRound = 18309917;
* const appLogs = await indexerClient
* .lookupApplicationLogs(appId)
* .minRound(minRound)
* .do();
* ```
*
* @param round
* @category query
*/
minRound(round) {
this.query['min-round'] = round;
return this;
}
/**
* Include results at or before the specified max-round.
*
* #### Example
* ```typescript
* const maxRound = 18309917;
* const appLogs = await indexerClient
* .lookupApplicationLogs(appId)
* .maxRound(maxRound)
* .do();
* ```
*
* @param round
* @category query
*/
maxRound(round) {
this.query['max-round'] = round;
return this;
}
/**
* The next page of results.
*
* #### Example
* ```typescript
* 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();
* ```
*
* @param nextToken - provided by the previous results.
* @category query
*/
nextToken(nextToken) {
this.query.next = nextToken;
return this;
}
/**
* Only include transactions with this sender address.
*
* #### Example
* ```typescript
* const sender = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
* const appLogs = await indexerClient
* .lookupApplicationLogs(appId)
* .sender(sender)
* .do();
* ```
*
* @param senderAddress
* @category query
*/
sender(senderAddress) {
this.query['sender-address'] = senderAddress;
return this;
}
/**
* Lookup the specific transaction by ID.
*
* #### Example
* ```typescript
* const txId = "MEUOC4RQJB23CQZRFRKYEI6WBO73VTTPST5A7B3S5OKBUY6LFUDA";
* const appLogs = await indexerClient
* .lookupApplicationLogs(appId)
* .txid(txId)
* .do();
* ```
*
* @param txid
* @category query
*/
txid(txid) {
this.query.txid = txid;
return this;
}
}
//# sourceMappingURL=lookupApplicationLogs.js.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!