HTTPClient object.
Optional
intDecoding: IntDecodingThe method to use for decoding integers from this request's response. See the setIntDecoding method for more details.
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".
Filter just assets with the given creator address.
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const assets = await indexerClient
.searchForAssets()
.creator(address)
.do();
Includes all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates
const assets = await indexerClient
.searchForAssets()
.includeAll(false)
.do();
const assets = await indexerClient
.searchForAssets()
.includeAll()
.do();
default true when called without passing a value
Asset ID for filter, as int.
const assetId = 163650;
const assets = await indexerClient
.searchForAssets()
.index(assetId)
.do();
Alternatively, use indexerClient.lookupAssetByID(assetId).do();
Limit results for pagination.
const maxResults = 20;
const assets = await indexerClient
.searchForAssets()
.limit(maxResults)
.do();
maximum number of results to return.
Filter just assets with the given name.
const name = "Test Token";
const assets = await indexerClient
.searchForAssets()
.name(name)
.do();
Specify the next page of results.
const maxResults = 20;
const assetsPage1 = await indexerClient
.searchForAssets()
.limit(maxResults)
.do();
const assetsPage2 = await indexerClient
.searchForAssets()
.limit(maxResults)
.nextToken(assetsPage1["next-token"])
.do();
provided by the previous results.
Filter just assets with the given unit.
const unit = "test";
const assets = await indexerClient
.searchForAssets()
.unit(unit)
.do();
Generated using TypeDoc
Returns information about indexed assets.
Example
Response data schema details