Class LookupAccountAssets
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.Query
-
- com.algorand.algosdk.v2.client.indexer.LookupAccountAssets
-
public class LookupAccountAssets extends Query
Lookup an account's asset holdings, optionally for a specific ID. /v2/accounts/{account-id}/assets
-
-
Constructor Summary
Constructors Constructor Description LookupAccountAssets(Client client, Address accountId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LookupAccountAssetsassetId(Long assetId)Asset IDResponse<AssetHoldingsResponse>execute()Execute the query.Response<AssetHoldingsResponse>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 QueryDatagetRequestString()LookupAccountAssetsincludeAll(Boolean includeAll)Include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.LookupAccountAssetslimit(Long limit)Maximum number of results to return.LookupAccountAssetsnext(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
-
assetId
public LookupAccountAssets assetId(Long assetId)
Asset ID
-
includeAll
public LookupAccountAssets includeAll(Boolean includeAll)
Include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.
-
limit
public LookupAccountAssets limit(Long limit)
Maximum number of results to return. There could be additional pages even if the limit is not reached.
-
next
public LookupAccountAssets next(String next)
The next page of results. Use the next token provided by the previous results.
-
execute
public Response<AssetHoldingsResponse> execute() throws Exception
Execute the query.
-
execute
public Response<AssetHoldingsResponse> 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:
getRequestStringin classQuery
-
-