API Kit Reference
getSafeOperation

getSafeOperation

Returns a Safe operation by its hash.

ℹ️

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


_10
import { apiKit } from './setup.ts'
_10
_10
const safeOperationHash = '0x...'
_10
_10
const safeOperation = await apiKit.getSafeOperation(safeOperationHash)

Returns

Promise<SafeOperationResponse>

The Safe operation.

Parameters

safeOperationHash

  • Type: string

The Safe operation hash.


_10
const safeOperation = await apiKit.getSafeOperation(
_10
'0x...'
_10
)

Was this page helpful?