import { Tabs, Callout } from 'nextra/components'
Returns the list of confirmations for a given a Safe operation.
The SafeOperations methods are currently compatible with Entrypoint v0.6, which corresponds to `safeModuleVersion` v0.2.0. If you need to use v0.7, you should use the `relay-kit` `Safe4337Pack` class with `safeModuleVersion` v0.3.0, and collect the signatures yourself.Examples of how to use the Safe4337Pack
are provided in the following links:
{/* */}
<Tabs items={['example.ts', 'setup.ts']}> <Tabs.Tab> ```typescript import { ListOptions } from '@safe-global/api-kit' import { apiKit } from './setup.ts'
const safeOperationHash = '0x...'
const config: ListOptions = {
limit: '3', // Optional
offset: '2' // Optional
}
const confirmationsResponse = await apiKit.getSafeOperationConfirmations(
safeOperationHash,
config
)
```
</Tabs.Tab> <Tabs.Tab> ```typescript import SafeApiKit from '@safe-global/api-kit'
export const apiKit = new SafeApiKit({
chainId: 1n // Mainnet
})
```
</Tabs.Tab>
{/* */}
Promise<SafeOperationConfirmationListResponse>
The paginated list of confirmations.
- Type:
string
The hash of the Safe operation to get confirmations for.
const confirmationsResponse = await apiKit.getSafeOperationConfirmations(
'0x...'
)
- Type:
number
The number of results to return per page.
const confirmationsResponse = await apiKit.getSafeOperationConfirmations(
'0x...',
{
limit: 10
}
)
- Type:
number
The initial index from which to return the results.
const confirmationsResponse = await apiKit.getSafeOperationConfirmations(
'0x...',
{
offset: 50
}
)