PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/algosdk/dist/esm/src/client/v2/indexer
Просмотр файла: lookupAccountCreatedApplications.js
import JSONRequest from '../jsonrequest';
export default class LookupAccountCreatedApplications extends JSONRequest {
/**
* Returns application information created by the given account.
*
* #### Example
* ```typescript
* const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
* const accountCreatedApps = await indexerClient.lookupAccountCreatedApplications(address).do();
* ```
*
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/indexer/#get-v2accountsaccount-idcreated-applications)
* @param account - The address of the account to look up.
* @category GET
*/
constructor(c, intDecoding, account) {
super(c, intDecoding);
this.account = account;
this.account = account;
}
/**
* @returns `/v2/accounts/${account}/created-applications`
*/
path() {
return `/v2/accounts/${this.account}/created-applications`;
}
/**
* Add a limit for filter.
*
* #### Example
* ```typescript
* const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
* const maxResults = 20;
* const accountAssets = await indexerClient
* .lookupAccountCreatedApplications(address)
* .limit(maxResults)
* .do();
* ```
*
* @param limit - maximum number of results to return.
* @category query
*/
limit(limit) {
this.query.limit = limit;
return this;
}
/**
* Specify round to filter with.
*
* #### Example
* ```typescript
* const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
* const targetBlock = 18309917;
* const accountAssets = await indexerClient
* .lookupAccountCreatedApplications(address)
* .round(targetBlock)
* .do();
* ```
* @param round
* @category query
*/
round(round) {
this.query.round = round;
return this;
}
/**
* Specify the next page of results.
*
* #### Example
* ```typescript
* const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
* const maxResults = 20;
*
* const accountAssetsPage1 = await indexerClient
* .lookupAccountCreatedApplications(address)
* .limit(maxResults)
* .do();
*
* const accountAssetsPage2 = await indexerClient
* .lookupAccountCreatedApplications(address)
* .limit(maxResults)
* .next(accountAssetsPage1["next-token"])
* .do();
* ```
* @param nextToken - provided by the previous results.
* @category query
*/
nextToken(nextToken) {
this.query.next = nextToken;
return this;
}
/**
* Include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates
*
* #### Example
* ```typescript
* const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
* const accountAssets = await indexerClient
* .lookupAccountCreatedApplications(address)
* .includeAll(false)
* .do();
* ```
* @param value
* @category query
*/
includeAll(value = true) {
this.query['include-all'] = value;
return this;
}
/**
* Specify an applicationID to search for.
*
* #### Example
* ```typescript
* const applicationID = 163650;
* const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
* const accountApplications = await indexerClient
* .lookupAccountAppLocalStates(address)
* .applicationID(applicationID)
* .do();
* ```
* @param index - the applicationID
* @category query
*/
applicationID(index) {
this.query['application-id'] = index;
return this;
}
}
//# sourceMappingURL=lookupAccountCreatedApplications.js.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!