getAllTransactions
Returns a list of transactions for a given Safe account, with a different structure depending on the transaction type.
Usage
_14import { AllTransactionsOptions } from '@safe-global/api-kit'_14import { apiKit } from './setup.ts'_14_14const safeAddress = '0x...'_14_14const options: AllTransactionsOptions = {_14 limit: 10, // Optional: Maximum number of results to return per page_14 offset: 0 // Optional: Initial index from which to return the results_14}_14_14const allTxs = await apiKit.getAllTransactions(_14 safeAddress,_14 options // Optional_14)
Returns
Promise<AllTransactionsListResponse>
The list of transactions.
Parameters
safeAddress
- Type:
string
The Safe address.
_10const allTxs = await apiKit.getAllTransactions('0x...')
options.limit
(Optional)
- Type:
number
Maximum number of results to return per page.
_10const allTxs = await apiKit.getAllTransactions(safeAddress, {_10 limit: 10_10})
options.offset
(Optional)
- Type:
number
Initial index from which to return the results.
_10const allTxs = await apiKit.getAllTransactions(safeAddress, {_10 offset: 20_10})