Skip to Content

🚧 These packages are still in development and may change rapidly as they are developed.

TypeScriptfetchAccountTransactions

fetchAccountTransactions

Fetching transactions related to a specific account specific account, with support for pagination.

As compared to fetchUserTransactions, this function may return results where the sender of a transaction is not the specified address.

Usage

import { AptosJSProClient } from "@aptos-labs/js-pro"; const client = new AptosJSProClient({ /* ... */ }); const { nextCursor, prevCursor, transactions } = await client.fetchAccountTransactions({ address: "0x926ff619e85bdb5b02680f27bea5ea3302c71f86be4b16fa0d63df213add927a", });

Parameters

NameTypeDefault
addressAccountAddressInput

The address of the account to fetch the transactions for.

orderByAccount_Transactions_Order_By | Account_Transactions_Order_By[]

Conditions for ordering the transaction results.

whereAccount_Transactions_Bool_Exp | Account_Transactions_Bool_Exp[]

Filters for the transaction results.

fungibleAssetActivitiesWhereFungible_Asset_Activities_Bool_Exp | Fungible_Asset_Activities_Bool_Exp[]

Filters for the fungible asset activities results.

tokenActivitiesWhereToken_Activities_V2_Bool_Exp | Token_Activities_V2_Bool_Exp[]

Filters for the token activities results.

fungibleAssetActivitiesOrderByFungible_Asset_Activities_Order_By | Fungible_Asset_Activities_Order_By[]

Conditions for ordering the fungible asset activities results.

tokenActivitiesOrderByToken_Activities_V2_Order_By | Token_Activities_V2_Order_By[]

Conditions for ordering the token activities results.

networkNetworkInfo

The network to use for the request. If not set, the network of the AptosJSProClient instance will be used.

limitnumber

The number of results to return per page. This value is capped at 100 results.

100
offsetnumber

The offset to start the query from.

0

Return Type

NameTypeDefault
nextCursornumber

The next cursor for pagination. If there is no next page, this will be undefined.

prevCursornumber

The previous cursor for pagination. If there is no previous page, this will be undefined.

transactionsAccountTransaction[]
Last updated on