Returns information about indexed application boxes.
const maxResults = 20;
const appID = 1234;
const responsePage1 = await indexerClient
.searchForApplicationBoxes(appID)
.limit(maxResults)
.do();
const boxNamesPage1 = responsePage1.boxes.map(box => box.name);
const responsePage2 = await indexerClient
.searchForApplicationBoxes(appID)
.limit(maxResults)
.nextToken(responsePage1.nextToken)
.do();
const boxNamesPage2 = responsePage2.boxes.map(box => box.name);
index - application index.
Execute the request.
A promise which resolves to the parsed response data.
Additional headers to send in the request. Optional.
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.
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".
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
Limit results for pagination.
const maxResults = 20;
const boxesResponse = await indexerClient
.searchForApplicationBoxes(1234)
.limit(maxResults)
.do();
maximum number of results to return.
Specify the next page of results.
const maxResults = 20;
const appID = 1234;
const responsePage1 = await indexerClient
.searchForApplicationBoxes(appID)
.limit(maxResults)
.do();
const boxNamesPage1 = responsePage1.boxes.map(box => box.name);
const responsePage2 = await indexerClient
.searchForApplicationBoxes(appID)
.limit(maxResults)
.nextToken(responsePage1.nextToken)
.do();
const boxNamesPage2 = responsePage2.boxes.map(box => box.name);
Generated using TypeDoc
Base abstract class for JSON requests.
Data: The type returned from the
do()
methodBody: The structure of the response's body