getTransfers
Query your transactions on Akashic
This function takes a set of optional parameters to get a more specific subset of transactions
page&limitFor pagination. Page is zero-indexed. Allowed limit-values are 10, 25, 50, and 100statusLimit results to only "Pending", "Confirmed", or "Failed" transactionsstartDateandendDateLimit results by timehideSmallTransactionsSet to true to exclude transactions below 1 USD in valueidentifierFilter results by identifierreferenceIdFilter results by referenceId
Note: l2Txnhash (the "L2-hash") should always be used as the unique identifier of a transaction. This is a unique transaction-hash for any transaction on AkashicChain. It is present for Confirmed deposits and Pending/Confirmed payouts. This is particularly important for the case of Layer 2 transactions, which will not have a Layer 1 hash (txHash)
Note: internalFee refers to the L2 fees associated with transactions on AkashicChain.
Example
const transactions = await akashicPay.getTransfers({
page: 0,
limit: 10,
layer: TransactionLayer.L1,
status: TransactionStatus.CONFIRMED,
startDate: new Date('2024-01-01'),
endDate: new Date('2025-01-01'),
hideSmallTransactions: true
});$transactions = akashicPay.getTransfers([
"page" => 0,
"limit" => 10,
"layer" => "L1Transaction",
"status" => "Confirmed",
"startDate" => date('2024-01-01),
"endDate" => date('2025-01-01'),
"hideSmallTransactions" => True
]);APTransactionsParam param = APTransactionsParam.builder(0, 10, new Date(2024,1,1), new Date(2025,1,1), APTransactionLayer.L1Transaction, APTransactionStatus.Confirmed, true).build();
APTransfersResult result = akashicPay.getTransfers(l2Address, param);Return Example
Last updated
Was this helpful?