API Kit Reference
confirmSafeOperation

confirmSafeOperation

Adds a confirmation for a Safe operation. Once enough confirmations are collected, the Safe operation needs to be executed via the executeTransaction method from the Safe4337Pack.

Usage


_10
import { apiKit } from './setup.ts'
_10
_10
const safeOperationHash = '0x...'
_10
_10
const signature = '0x...'
_10
_10
await apiKit.confirmSafeOperation(safeOperationHash, signature)

Parameters

safeOperationHash

  • Type: string

The hash of the Safe operation that will be confirmed.


_10
await apiKit.confirmSafeOperation(
_10
'0x...',
_10
'0x...'
_10
)

signature

  • Type: string

The signature of the Safe operation.

It can be obtained by calling the getSignature method from the SafeOperation object.


_10
await apiKit.confirmSafeOperation(
_10
'0x...',
_10
'0x...'
_10
)

Was this page helpful?