Class LookupAssetTransactions
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.Query
-
- com.algorand.algosdk.v2.client.indexer.LookupAssetTransactions
-
public class LookupAssetTransactions extends Query
Lookup transactions for an asset. Transactions are returned oldest to newest. /v2/assets/{asset-id}/transactions
-
-
Constructor Summary
Constructors Constructor Description LookupAssetTransactions(Client client, Long assetId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LookupAssetTransactionsaddress(Address address)Only include transactions with this address in one of the transaction fields.LookupAssetTransactionsaddressRole(Enums.AddressRole addressRole)Combine with the address parameter to define what type of address to search for.LookupAssetTransactionsafterTime(Date afterTime)Include results after the given time.LookupAssetTransactionsbeforeTime(Date beforeTime)Include results before the given time.LookupAssetTransactionscurrencyGreaterThan(Long currencyGreaterThan)Results should have an amount greater than this value.LookupAssetTransactionscurrencyLessThan(Long currencyLessThan)Results should have an amount less than this value.LookupAssetTransactionsexcludeCloseTo(Boolean excludeCloseTo)Combine with address and address-role parameters to define what type of address to search for.Response<TransactionsResponse>execute()Execute the query.Response<TransactionsResponse>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()LookupAssetTransactionslimit(Long limit)Maximum number of results to return.LookupAssetTransactionsmaxRound(Long maxRound)Include results at or before the specified max-round.LookupAssetTransactionsminRound(Long minRound)Include results at or after the specified min-round.LookupAssetTransactionsnext(String next)The next page of results.LookupAssetTransactionsnotePrefix(byte[] notePrefix)Specifies a prefix which must be contained in the note field.LookupAssetTransactionsrekeyTo(Boolean rekeyTo)Include results which include the rekey-to field.LookupAssetTransactionsround(Long round)Include results for the specified round.LookupAssetTransactionssigType(Enums.SigType sigType)SigType filters just results using the specified type of signature: sig - Standard msig - MultiSig lsig - LogicSigLookupAssetTransactionstxid(String txid)Lookup the specific transaction by ID.LookupAssetTransactionstxType(Enums.TxType txType)-
Methods inherited from class com.algorand.algosdk.v2.client.common.Query
addPathSegment, addQuery, addToBody, addToBody, baseExecute, baseExecute, getRequestMethod, getRequestUrl, getRequestUrl, resetPathSegment
-
-
-
-
Method Detail
-
address
public LookupAssetTransactions address(Address address)
Only include transactions with this address in one of the transaction fields.
-
addressRole
public LookupAssetTransactions addressRole(Enums.AddressRole addressRole)
Combine with the address parameter to define what type of address to search for.
-
afterTime
public LookupAssetTransactions afterTime(Date afterTime)
Include results after the given time. Must be an RFC 3339 formatted string.
-
beforeTime
public LookupAssetTransactions beforeTime(Date beforeTime)
Include results before the given time. Must be an RFC 3339 formatted string.
-
currencyGreaterThan
public LookupAssetTransactions 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 LookupAssetTransactions 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 LookupAssetTransactions 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 LookupAssetTransactions limit(Long limit)
Maximum number of results to return. There could be additional pages even if the limit is not reached.
-
maxRound
public LookupAssetTransactions maxRound(Long maxRound)
Include results at or before the specified max-round.
-
minRound
public LookupAssetTransactions minRound(Long minRound)
Include results at or after the specified min-round.
-
next
public LookupAssetTransactions next(String next)
The next page of results. Use the next token provided by the previous results.
-
notePrefix
public LookupAssetTransactions notePrefix(byte[] notePrefix)
Specifies a prefix which must be contained in the note field.
-
rekeyTo
public LookupAssetTransactions rekeyTo(Boolean rekeyTo)
Include results which include the rekey-to field.
-
round
public LookupAssetTransactions round(Long round)
Include results for the specified round.
-
sigType
public LookupAssetTransactions sigType(Enums.SigType sigType)
SigType filters just results using the specified type of signature: sig - Standard msig - MultiSig lsig - LogicSig
-
txType
public LookupAssetTransactions txType(Enums.TxType txType)
-
txid
public LookupAssetTransactions txid(String txid)
Lookup the specific transaction by ID.
-
execute
public Response<TransactionsResponse> execute() throws Exception
Execute the query.
-
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.
-
getRequestString
protected QueryData getRequestString()
- Specified by:
getRequestStringin classQuery
-
-