multisig.getConfig
Gets the current version, threshold, and owners for an initialized native multisig account.
Usage
import { client } from './viem.config'
const config = await client.multisig.getConfig({
account: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
})import { Account, createClient } from 'viem/tempo'
export const client = createClient({
account: Account.fromSecp256k1('0x...'),
})The action throws NotMultisigAccount when the account has not been initialized. Use
multisig.isInitialized when both states are expected.
Return Type
type ReturnType = {
version: bigint
threshold: number
owners: readonly {
owner: Address
weight: number
}[]
}Parameters
account
- Type:
Address
The initialized multisig account address.
blockNumber (optional)
- Type:
bigint
Block number to read the state from.
blockOverrides (optional)
- Type:
BlockOverrides
Block overrides to apply to the state.
blockTag (optional)
- Type:
BlockTag
Block tag to read the state from.
stateOverride (optional)
- Type:
StateOverride
State override to apply.