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


_15
import { AllTransactionsOptions } from '@safe-global/api-kit'
_15
import { apiKit } from './setup.ts'
_15
_15
const safeAddress = '0x...'
_15
_15
const config: AllTransactionsOptions = {
_15
executed: true, // Optional
_15
queued: true, // Optional
_15
trusted: true // Optional
_15
}
_15
_15
const allTxs = await apiKit.getAllTransactions(
_15
safeAddress,
_15
config // Optional
_15
)

Returns

Promise<AllTransactionsListResponse>

The list of transactions.

Parameters

safeAddress

  • Type: string

The Safe address.


_10
const allTxs = await apiKit.getAllTransactions(
_10
safeAddress
_10
)

config.executed (Optional)

  • Type: boolean

If true, only executed transactions are returned.


_10
const allTxs = await apiKit.getAllTransactions(
_10
safeAddress,
_10
{
_10
executed: true
_10
}
_10
)

config.queued (Optional)

  • Type: boolean

If true, transactions with nonce higher or equal than the current nonce are returned.


_10
const allTxs = await apiKit.getAllTransactions(
_10
safeAddress,
_10
{
_10
queued: true
_10
}
_10
)

config.trusted (Optional)

  • Type: boolean

If true, just trusted transactions are returned (indexed, added by a delegate or with at least one confirmation).


_10
const allTxs = await apiKit.getAllTransactions(
_10
safeAddress,
_10
{
_10
trusted: true
_10
}
_10
)

Was this page helpful?