Skip to content

MultisigOperation.getHash

Derives the deterministic hash for a multisig operation.

Imports

Named
import { MultisigOperation } from 'ox/tempo'

Examples

import { MultisigOperation } from 'ox/tempo'
 
const hash = MultisigOperation.getHash({
  account,
  config,
  transaction,
  type: 'transaction',
})

Definition

function getHash(
  options: getHash.Options,
): Hex.Hex

Source: src/tempo/MultisigOperation.ts

Parameters

options

  • Type: getHash.Options

Operation payload and multisig identity.

options.account

  • Type: abitype_Address

Root multisig account.

options.config

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

Complete root multisig configuration witness.

options.keyAuthorization

  • Type: 0x${string}

Canonical serialized key authorization.

options.transaction

  • Type: 0x${string}

Canonical serialized Tempo envelope without its outer sender signature.

options.type

  • Type: "transaction"

Operation kind.

Return Type

The operation hash signed by each owner.

Hex.Hex