Skip to main content

predict_multisig_address

Function predict_multisig_address 

Source
pub fn predict_multisig_address(
    signers: Vec<AccountId32>,
    threshold: u32,
    nonce: u64,
) -> String
Expand description

Predict multisig address deterministically

This function calculates what the multisig address will be BEFORE creating it. The address is computed as: hash(pallet_id || sorted_signers || threshold || nonce)

§Arguments

  • signers - List of signer AccountId32 (order doesn’t matter - will be sorted)
  • threshold - Number of approvals required
  • nonce - Nonce for uniqueness (allows multiple multisigs with same signers)

§Returns

Predicted multisig address in SS58 format