Skip to content

Latest commit

 

History

History
89 lines (57 loc) · 1.52 KB

getmultisigtransactions.mdx

File metadata and controls

89 lines (57 loc) · 1.52 KB

import { Tabs } from 'nextra/components'

getMultisigTransactions

Returns the history of multi-signature transactions of a Safe account.

Usage

{/* */}

<Tabs items={['example.ts', 'setup.ts']}> <Tabs.Tab> ```typescript import { apiKit } from './setup.ts'

const safeAddress = '0x...'
const options = {
  executed: true,
  nonce: '0x...',
  ordering: 'created',
  limit: 10,
  offset: 10
}

const multisigTxs = await apiKit.getMultisigTransactions(safeAddress, options)
```

</Tabs.Tab> <Tabs.Tab> ```typescript import SafeApiKit from '@safe-global/api-kit'

export const apiKit = new SafeApiKit({
  chainId: 1n, // Mainnet
})
```

</Tabs.Tab>

{/* */}

Returns

Promise<SafeMultisigTransactionListResponse>

The history of multi-signature transactions.

Parameters

safeAddress

  • Type: string

The Safe address.

const multisigTxs = await apiKit.getMultisigTransactions(
  '0x...'
)

options.executed (Optional)

  • Type: boolean

Filter the executed transactions if true.

options.nonce (Optional)

  • Type: string

The nonce used to return the results.

options.ordering (Optional)

  • Type: string

The field used to sort the results.

options.limit (Optional)

  • Type: number

The number of results to return per page.

options.offset (Optional)

  • Type: number

The initial index from which to return the results.