The address of the account to look up.
Execute the request.
Additional headers to send in the request. Optional.
A promise which resolves to the response data.
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
.lookupAccountCreatedAssets(address)
.limit(maxResults)
.do();
const accountAssetsPage2 = await indexerClient .lookupAccountCreatedAssets(address) .limit(maxResults) .next(accountAssetsPage1["next-token"]) .do();
@param nextToken - provided by the previous results.
@category query
/v2/accounts/${account}/created-assets
Specify an assetID to search for.
const assetID = 163650;
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const assetAssets = await indexerClient
.lookupAccountCreatedAssets(address)
.assetID(assetID)
.do();
the assetID
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
.lookupAccountCreatedAssets(address)
.includeAll(false)
.do();
Add a limit for filter.
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const maxResults = 20;
const accountAssets = await indexerClient
.lookupAccountCreatedAssets(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
.lookupAccountCreatedAssets(address)
.round(targetBlock)
.do();
Generated using TypeDoc
Returns asset information created by the given account.
Example
Response data schema details
GET