HTTPClient object.
The method to use for decoding integers from this request's response. See the setIntDecoding method for more details.
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".
Include accounts that use this spending key.
const authAddr = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accounts = await indexerClient
.searchAccounts()
.authAddr(authAddr)
.do();
/v2/accounts
Filter for this application.
const appId = 60553466;
const accounts = await indexerClient
.searchAccounts()
.applicationID(appId)
.do();
Asset ID to filter with.
const assetID = 163650;
const accounts = await indexerClient
.searchAccounts()
.assetID(assetID)
.do();
Filtered results should have an amount greater than this value, as int, representing microAlgos, unless an asset-id is provided, in which case units are in the asset's units.
const minBalance = 300000;
const accounts = await indexerClient
.searchAccounts()
.currencyGreaterThan(minBalance - 1)
.do();
const assetID = 163650;
const minBalance = 300000;
const accounts = await indexerClient
.searchAccounts()
.assetID(assetID)
.currencyGreaterThan(minBalance - 1)
.do();
Filtered results should have an amount less than this value, as int, representing microAlgos, unless an asset-id is provided, in which case units are in the asset's units.
const maxBalance = 500000;
const accounts = await indexerClient
.searchAccounts()
.currencyLessThan(maxBalance + 1)
.do();
const assetID = 163650;
const maxBalance = 500000;
const accounts = await indexerClient
.searchAccounts()
.assetID(assetID)
.currencyLessThan(maxBalance + 1)
.do();
Exclude additional items such as asset holdings, application local data stored for this account, asset parameters created by this account, and application parameters created by this account.
Array of all
, assets
, created-assets
, apps-local-state
, created-apps
, none
Includes all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates
default true when called without passing a value
Maximum number of results to return.
const maxResults = 25;
const accounts = await indexerClient
.searchAccounts()
.limit(maxResults)
.do();
The next page of results.
const maxResults = 25;
const accountsPage1 = await indexerClient
.searchAccounts()
.limit(maxResults)
.do();
const accountsPage2 = await indexerClient
.searchAccounts()
.limit(maxResults)
.nextToken(accountsPage1["next-token"])
.do();
provided by the previous results
Include results for the specified round.
const targetBlock = 18309917;
const accounts = await indexerClient
.searchAccounts()
.round(targetBlock)
.do();
Generated using TypeDoc
Returns information about indexed accounts.
Example
Response data schema details