Class LookupAssetBalances


  • public class LookupAssetBalances
    extends Query
    Lookup the list of accounts who hold this asset /v2/assets/{asset-id}/balances
    • Constructor Detail

      • LookupAssetBalances

        public LookupAssetBalances​(Client client,
                                   Long assetId)
        Parameters:
        assetId -
    • 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​(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.
        Specified by:
        execute in class Query
        Parameters:
        headers - an array of header keys
        values - an array of header values
        Returns:
        the query response object.
        Throws:
        Exception