Skip to content

MultisigConfig.getAddress

Derives the stable native multisig account address.

keccak256("tempo:multisig:account" || config_id)[12:32].

Imports

Named
import { MultisigConfig } from 'ox/tempo'

Examples

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

Definition

function getAddress(
  value: getAddress.Value,
): Address.Address

Source: src/tempo/MultisigConfig.ts

Parameters

value

  • Type: getAddress.Value

The config or config ID to derive the address from.

value.config

  • Type: { salt?: 0x${string}; threshold: number; owners: readonly Owner[]; }

value.configId

  • Type: 0x${string}

Return Type

The multisig account address.

Address.Address