Skip to Content

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

TypeScriptfetchUserTransactions

fetchUserTransactions

Fetching transactions for a specific sender, with support for pagination.

As compared to fetchAccountTransactions, this function will only return results where the sender of a transaction is the specified address.

Usage

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

Parameters

NameTypeDefault
orderByUser_Transactions_Order_By | User_Transactions_Order_By[]
whereInputMaybe<User_Transactions_Bool_Exp> | undefined
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
networkNetworkInfo

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

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.

transactionsUserTransaction[]
Last updated on