Returns transactions relating to the given account.
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient.lookupAccountTransactions(address).do();
The address of the account.
Execute the request, but do not process the response data in any way.
A promise which resolves to the raw response data, exactly as returned by the server.
Additional headers to send in the request. Optional.
Prepare a JSON response before returning it.
Use this method to change and restructure response
data as needed after receiving it from the do()
method.
Response body received
Configure how integers in this request's JSON response will be decoded.
The options are:
The method to use when parsing the response for this request. Must be one of "default", "safe", "mixed", or "bigint".
Include results after the given time.
const afterTime = "2022-10-21T00:00:11.55Z";
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.afterTime(afterTime)
.do();
rfc3339 string
Asset ID to filter with.
const assetID = 163650;
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.assetID(assetID)
.do();
Include results before the given time.
const beforeTime = "2022-02-02T20:20:22.02Z";
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.beforeTime(beforeTime)
.do();
rfc3339 string
Filtered results should have an amount greater than this value, as int, representing microAlgos, unless an asset-id is provided, in which case units are in the asset's units.
const minBalance = 300000;
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.currencyGreaterThan(minBalance - 1)
.do();
const assetID = 163650;
const minBalance = 300000;
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.assetID(assetID)
.currencyGreaterThan(minBalance - 1)
.do();
Filtered results should have an amount less than this value, as int, representing microAlgos, unless an asset-id is provided, in which case units are in the asset's units.
const maxBalance = 500000;
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.currencyLessThan(maxBalance + 1)
.do();
const assetID = 163650;
const maxBalance = 500000;
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.assetID(assetID)
.currencyLessThan(maxBalance + 1)
.do();
Maximum number of results to return.
const maxResults = 25;
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.limit(maxResults)
.do();
Include results at or before the specified max-round.
const maxRound = 18309917;
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.maxRound(maxRound)
.do();
Include results at or after the specified min-round.
const minRound = 18309917;
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.minRound(minRound)
.do();
The next page of results. Use the next token provided by the previous results.
const maxResults = 25;
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxnsPage1 = await indexerClient
.lookupAccountTransactions(address)
.limit(maxResults)
.do();
const accountTxnsPage2 = await indexerClient
.lookupAccountTransactions(address)
.limit(maxResults)
.nextToken(accountTxnsPage1["next-token"])
.do();
provided by the previous results.
Specifies a prefix which must be contained in the note field.
const notePrefixBase64Encoded = "Y3JlYXRl";
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.notePrefix(notePrefixBase64Encoded)
.do();
base64 string or uint8array
Whether or not to include rekeying transactions.
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.rekeyTo(false)
.do();
Include results for the specified round.
const targetBlock = 18309917;
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.round(targetBlock)
.do();
Type of signature to filter with.
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.sigType("msig")
.do();
one of sig
, msig
, lsig
Type of transaction to filter with.
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.txType("appl")
.do();
one of pay
, keyreg
, acfg
, axfer
, afrz
, appl
, stpf
Lookup the specific transaction by ID.
const txId = "MEUOC4RQJB23CQZRFRKYEI6WBO73VTTPST5A7B3S5OKBUY6LFUDA";
const address = "XBYLS2E6YI6XXL5BWCAMOA4GTWHXWENZMX5UHXMRNWWUQ7BXCY5WC5TEPA";
const accountTxns = await indexerClient
.lookupAccountTransactions(address)
.txid(txId)
.do();
Alternatively, use indexerClient.lookupTransactionByID(txnId).do()
Generated using TypeDoc
Base abstract class for JSON requests.
Data: The type returned from the
do()
methodBody: The structure of the response's body