getAllTransactions
Returns a list of transactions for a given Safe account, with a different structure depending on the transaction type.
Usage
_15import { AllTransactionsOptions } from '@safe-global/api-kit'_15import { apiKit } from './setup.ts'_15_15const safeAddress = '0x...'_15_15const config: AllTransactionsOptions = {_15 executed: true, // Optional_15 queued: true, // Optional_15 trusted: true // Optional_15}_15_15const allTxs = await apiKit.getAllTransactions(_15 safeAddress,_15 config // Optional_15)
Returns
Promise<AllTransactionsListResponse>
The list of transactions.
Parameters
safeAddress
- Type:
string
The Safe address.
_10const allTxs = await apiKit.getAllTransactions(_10 safeAddress_10)
config.executed
(Optional)
- Type:
boolean
If true, only executed transactions are returned.
_10const 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.
_10const 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).
_10const allTxs = await apiKit.getAllTransactions(_10 safeAddress,_10 {_10 trusted: true_10 }_10)