MultisigConfig.getSignPayload
Computes the digest a native multisig owner approves (signs).
keccak256("tempo:multisig:signature" || inner_digest || account || uint64be(version)), where inner_digest is the transaction sign payload (TxEnvelopeTempo.getSignPayload).
The digest is keyed on the permanent account and the supplied config version. Initial approvals use version 0n; each config update increments it.
For a nested multisig owner approval, the parent digest becomes the nested approval's payload, with the nested multisig account.
Imports
import { MultisigConfig } from 'ox/tempo'Examples
import { MultisigConfig, TxEnvelopeTempo } from 'ox/tempo'
const config = MultisigConfig.from({
owners: [
{ owner: '0x1111111111111111111111111111111111111111', weight: 1 },
],
threshold: 1,
})
const envelope = TxEnvelopeTempo.from({
chainId: 1,
calls: [],
})
const digest = MultisigConfig.getSignPayload({
account: MultisigConfig.getAddress(config),
config,
payload: TxEnvelopeTempo.getSignPayload(envelope),
})Definition
function getSignPayload(
value: getSignPayload.Value,
): Hex.HexSource: src/tempo/MultisigConfig.ts
Parameters
value
- Type:
getSignPayload.Value
The digest derivation parameters.
value.account
- Type:
abitype_Address
The native multisig account address.
value.config
- Type:
Pick
Configuration whose version applies to the approval.
value.payload
- Type:
0x${string} | Uint8Array
The inner transaction sign payload (tx.signature_hash()).
Return Type
The owner approval digest.
Hex.Hex

