Skip to content

AccountOperation.getHash

Derives the deterministic hash for an account operation.

Imports

Named
import { AccountOperation } from 'ox/tempo'

Examples

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

Definition

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

Source: src/tempo/AccountOperation.ts

Parameters

options

  • Type: getHash.Options

Operation payload and account identity.

options.account

  • Type: abitype_Address

Root configurable account.

options.config

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

Complete root account 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