Class SearchForAccounts
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.Query
-
- com.algorand.algosdk.v2.client.indexer.SearchForAccounts
-
public class SearchForAccounts extends Query
Search for accounts. /v2/accounts
-
-
Constructor Summary
Constructors Constructor Description SearchForAccounts(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchForAccounts
applicationId(Long applicationId)
Application IDSearchForAccounts
assetId(Long assetId)
Asset IDSearchForAccounts
authAddr(Address authAddr)
Include accounts configured to use this spending key.SearchForAccounts
currencyGreaterThan(Long currencyGreaterThan)
Results should have an amount greater than this value.SearchForAccounts
currencyLessThan(Long currencyLessThan)
Results should have an amount less than this value.SearchForAccounts
exclude(List<Enums.Exclude> exclude)
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.Response<AccountsResponse>
execute()
Execute the query.Response<AccountsResponse>
execute(String[] headers, String[] values)
Execute the query with custom headers, there must be an equal number of keys and values or else an error will be generated.protected QueryData
getRequestString()
SearchForAccounts
includeAll(Boolean includeAll)
Include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.SearchForAccounts
limit(Long limit)
Maximum number of results to return.SearchForAccounts
next(String next)
The next page of results.SearchForAccounts
round(Long round)
Include results for the specified round.-
Methods inherited from class com.algorand.algosdk.v2.client.common.Query
addPathSegment, addQuery, addToBody, addToBody, baseExecute, baseExecute, getRequestMethod, getRequestUrl, getRequestUrl, resetPathSegment
-
-
-
-
Constructor Detail
-
SearchForAccounts
public SearchForAccounts(Client client)
-
-
Method Detail
-
applicationId
public SearchForAccounts applicationId(Long applicationId)
Application ID
-
assetId
public SearchForAccounts assetId(Long assetId)
Asset ID
-
authAddr
public SearchForAccounts authAddr(Address authAddr)
Include accounts configured to use this spending key.
-
currencyGreaterThan
public SearchForAccounts currencyGreaterThan(Long currencyGreaterThan)
Results should have an amount greater than this value. MicroAlgos are the default currency unless an asset-id is provided, in which case the asset will be used.
-
currencyLessThan
public SearchForAccounts currencyLessThan(Long currencyLessThan)
Results should have an amount less than this value. MicroAlgos are the default currency unless an asset-id is provided, in which case the asset will be used.
-
exclude
public SearchForAccounts exclude(List<Enums.Exclude> exclude)
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.
-
includeAll
public SearchForAccounts includeAll(Boolean includeAll)
Include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.
-
limit
public SearchForAccounts limit(Long limit)
Maximum number of results to return. There could be additional pages even if the limit is not reached.
-
next
public SearchForAccounts next(String next)
The next page of results. Use the next token provided by the previous results.
-
round
public SearchForAccounts round(Long round)
Include results for the specified round. For performance reasons, this parameter may be disabled on some configurations. Using application-id or asset-id filters will return both creator and opt-in accounts. Filtering by include-all will return creator and opt-in accounts for deleted assets and accounts. Non-opt-in managers are not included in the results when asset-id is used.
-
execute
public Response<AccountsResponse> execute() throws Exception
Execute the query.
-
execute
public Response<AccountsResponse> execute(String[] headers, String[] values) throws Exception
Execute the query with custom headers, there must be an equal number of keys and values or else an error will be generated.
-
getRequestString
protected QueryData getRequestString()
- Specified by:
getRequestString
in classQuery
-
-