Returns application local state about the given account.
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountAppLocalStates = await indexerClient.lookupAccountAppLocalStates(address).do();
The address of the account to look up.
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".
Specify the next page of results.
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const maxResults = 20;
const accountAssetsPage1 = await indexerClient
.lookupAccountAppLocalStates(address)
.limit(maxResults)
.do();
const accountAssetsPage2 = await indexerClient
.lookupAccountAppLocalStates(address)
.limit(maxResults)
.next(accountAssetsPage1["next-token"])
.do();
provided by the previous results.
Specify an applicationID to search for.
const applicationID = 163650;
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountApplications = await indexerClient
.lookupAccountAppLocalStates(address)
.applicationID(applicationID)
.do();
the applicationID
Include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountAssets = await indexerClient
.lookupAccountAppLocalStates(address)
.includeAll(false)
.do();
Add a limit for filter.
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const maxResults = 20;
const accountAssets = await indexerClient
.lookupAccountAppLocalStates(address)
.limit(maxResults)
.do();
maximum number of results to return.
Specify round to filter with.
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const targetBlock = 18309917;
const accountAssets = await indexerClient
.lookupAccountAppLocalStates(address)
.round(targetBlock)
.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