Class LookupAssetBalances
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.Query
-
- com.algorand.algosdk.v2.client.indexer.LookupAssetBalances
-
public class LookupAssetBalances extends Query
Lookup the list of accounts who hold this asset /v2/assets/{asset-id}/balances
-
-
Constructor Summary
Constructors Constructor Description LookupAssetBalances(Client client, Long assetId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LookupAssetBalances
currencyGreaterThan(Long currencyGreaterThan)
Results should have an amount greater than this value.LookupAssetBalances
currencyLessThan(Long currencyLessThan)
Results should have an amount less than this value.Response<AssetBalancesResponse>
execute()
Execute the query.Response<AssetBalancesResponse>
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()
LookupAssetBalances
includeAll(Boolean includeAll)
Include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.LookupAssetBalances
limit(Long limit)
Maximum number of results to return.LookupAssetBalances
next(String next)
The next page of results.-
Methods inherited from class com.algorand.algosdk.v2.client.common.Query
addPathSegment, addQuery, addToBody, addToBody, baseExecute, baseExecute, getRequestMethod, getRequestUrl, getRequestUrl, resetPathSegment
-
-
-
-
Method Detail
-
currencyGreaterThan
public LookupAssetBalances 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 LookupAssetBalances 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.
-
includeAll
public LookupAssetBalances includeAll(Boolean includeAll)
Include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.
-
limit
public LookupAssetBalances limit(Long limit)
Maximum number of results to return. There could be additional pages even if the limit is not reached.
-
next
public LookupAssetBalances next(String next)
The next page of results. Use the next token provided by the previous results.
-
execute
public Response<AssetBalancesResponse> execute() throws Exception
Execute the query.
-
execute
public Response<AssetBalancesResponse> 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
-
-