Skip to content
LogoLogo

multisig.getOperation

Gets a pending or successful multisig operation from the client's configured store or an explicit store.

Usage

import { client } from './multisig.config'
 
const operation = await client.multisig.getOperation({
  id: '0x23a9cbceb2775b93cd60d3ca7c98435c700aa0d7254850efdce71468d326ddf6',
})
{ status: 'pending', id: '0x23a9...', weight: 1, threshold: 2 }

Read an Explicit Store

Passing store reads that store directly. This form works even when the client was not created with experimental_multisig.

import { createClient, Storage } from 'viem/tempo'
 
const client = createClient()
const store = Storage.memory()
 
const operation = await client.multisig.getOperation({
  id: '0x23a9cbceb2775b93cd60d3ca7c98435c700aa0d7254850efdce71468d326ddf6',
  store,
})

Return Type

type ReturnType = Multisig.Operation.Operation | null

Returns null when the operation ID is unknown.

Parameters

id

  • Type: Hash

The deterministic multisig operation ID returned by an approval action.

store

  • Type: Storage.Storage | undefined

An optional store to read directly. Without this parameter, the action requests multisig_getOperation through the client transport.

See Also