Skip to content

MultisigConfig.getAddress

Derives the stable native multisig account address.

The initial config is hashed into a CREATE2 salt using fixed-width big-endian fields, not RLP. The account uses the canonical recovery factory and wallet init-code hash.

The address is derived once from the initial version-0 config. Config updates do not change it.

Imports

Named
import { MultisigConfig } from 'ox/tempo'

Examples

import { MultisigConfig } from 'ox/tempo'
 
const initialConfig = MultisigConfig.from({
  owners: [
    { owner: '0x1111111111111111111111111111111111111111', weight: 1 },
  ],
  threshold: 1,
})
 
const address = MultisigConfig.getAddress(initialConfig)

Definition

function getAddress(
  config: Input,
): Address.Address

Source: src/tempo/MultisigConfig.ts

Parameters

config

The initial multisig config.

config.owners

  • Type: readonly Owner[]

Weighted owner list (strictly ascending by owner address).

config.salt

  • Type: 0x${string}
  • Optional

Caller-chosen 32-byte salt mixed into the derived account address. Defaults to the zero salt (MultisigConfig.zeroSalt) when omitted.

config.threshold

  • Type: numberType

Minimum total owner weight required to authorize a transaction.

config.version

  • Type: versionType
  • Optional

Configuration version as a safe integer or bigint. Defaults to 0n.

Return Type

The multisig account address.

Address.Address