API Kit Reference
getSafeOperationConfirmations

getSafeOperationConfirmations

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:

Usage


_14
import { ListOptions } from '@safe-global/api-kit'
_14
import { apiKit } from './setup.ts'
_14
_14
const safeOperationHash = '0x...'
_14
_14
const config: ListOptions = {
_14
limit: '3', // Optional
_14
offset: '2' // Optional
_14
}
_14
_14
const confirmationsResponse = await apiKit.getSafeOperationConfirmations(
_14
safeOperationHash,
_14
config
_14
)

Returns

Promise<SafeOperationConfirmationListResponse>

The paginated list of confirmations.

Parameters

safeOperationHash

  • Type: string

The hash of the Safe operation to get confirmations for.


_10
const confirmationsResponse = await apiKit.getSafeOperationConfirmations(
_10
'0x...'
_10
)

config.limit (Optional)

  • Type: number

The number of results to return per page.


_10
const confirmationsResponse = await apiKit.getSafeOperationConfirmations(
_10
'0x...',
_10
{
_10
limit: 10
_10
}
_10
)

config.offset (Optional)

  • Type: number

The initial index from which to return the results.


_10
const confirmationsResponse = await apiKit.getSafeOperationConfirmations(
_10
'0x...',
_10
{
_10
offset: 50
_10
}
_10
)

Was this page helpful?