Class SearchForAccounts


  • public class SearchForAccounts
    extends Query
    Search for accounts. /v2/accounts
    • Constructor Detail

      • SearchForAccounts

        public SearchForAccounts​(Client client)
    • Method Detail

      • 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​(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