Class SearchForTransactions


  • public class SearchForTransactions
    extends Query
    Search for transactions. Transactions are returned oldest to newest unless the address parameter is used, in which case results are returned newest to oldest. /v2/transactions
    • Constructor Detail

      • SearchForTransactions

        public SearchForTransactions​(Client client)
    • Method Detail

      • address

        public SearchForTransactions address​(Address address)
        Only include transactions with this address in one of the transaction fields.
      • afterTime

        public SearchForTransactions afterTime​(Date afterTime)
        Include results after the given time. Must be an RFC 3339 formatted string.
      • beforeTime

        public SearchForTransactions beforeTime​(Date beforeTime)
        Include results before the given time. Must be an RFC 3339 formatted string.
      • currencyGreaterThan

        public SearchForTransactions 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 SearchForTransactions 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.
      • excludeCloseTo

        public SearchForTransactions excludeCloseTo​(Boolean excludeCloseTo)
        Combine with address and address-role parameters to define what type of address to search for. The close to fields are normally treated as a receiver, if you would like to exclude them set this parameter to true.
      • limit

        public SearchForTransactions limit​(Long limit)
        Maximum number of results to return. There could be additional pages even if the limit is not reached.
      • next

        public SearchForTransactions next​(String next)
        The next page of results. Use the next token provided by the previous results.
      • notePrefix

        public SearchForTransactions notePrefix​(byte[] notePrefix)
        Specifies a prefix which must be contained in the note field.
      • sigType

        public SearchForTransactions sigType​(Enums.SigType sigType)
        SigType filters just results using the specified type of signature: sig - Standard msig - MultiSig lsig - LogicSig
      • execute

        public Response<TransactionsResponse> 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