API Kit Reference
getAllTransactions

getAllTransactions

Returns a list of transactions for a given Safe account, with a different structure depending on the transaction type.

Usage


_14
import { AllTransactionsOptions } from '@safe-global/api-kit'
_14
import { apiKit } from './setup.ts'
_14
_14
const safeAddress = '0x...'
_14
_14
const 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
_14
const allTxs = await apiKit.getAllTransactions(
_14
safeAddress,
_14
options // Optional
_14
)

Returns

Promise<AllTransactionsListResponse>

The list of transactions.

Parameters

safeAddress

  • Type: string

The Safe address.


_10
const allTxs = await apiKit.getAllTransactions('0x...')

options.limit (Optional)

  • Type: number

Maximum number of results to return per page.


_10
const allTxs = await apiKit.getAllTransactions(safeAddress, {
_10
limit: 10
_10
})

options.offset (Optional)

  • Type: number

Initial index from which to return the results.


_10
const allTxs = await apiKit.getAllTransactions(safeAddress, {
_10
offset: 20
_10
})

Was this page helpful?