as_multi_threshold_1

Call v123 → current #0

Immediately dispatch a call using a single approval from the caller.

View calls on chain

Click items to navigate. Pan and zoom to explore.

Used by: developerswalletsvalidators

The Big Picture

Multisig accounts are deterministically generated from the list of signatories. This call dispatches from that account immediately when only one signature is needed.

Use Cases

  • Execute calls from a deterministic multisig address with single approval
  • Simplified multisig setup where only one signature is required
  • Transitional setup before adding more signatories

From Chain Metadata

Immediately dispatch a multi-signature call using a single approval from the caller. The dispatch origin for this call must be _Signed_. `other_signatories`: The accounts (other than the sender) who are part of the multi-signature, but do not participate in the approval process. `call`: The call to be executed. Result is equivalent to the dispatched result. ## Complexity O(Z + C) where Z is the length of the call and C its execution weight.

Input Parameters

#NameTypeDescription
0
other_signatories
Vec<AccountId> Vec List of other signatory accounts (sorted, excludes caller)
1
call
RuntimeCall Box<<T as Config>::RuntimeCall>The call to execute immediately

Permissions

Origin
Signed
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Caller is one of the signatories
  • Threshold is exactly 1 (single signer)
  • Call can be dispatched from multisig origin

Effects

Events Emitted

Postconditions

  • Call is executed immediately
  • Result reflects the dispatched call's outcome

Side Effects

  • No deposit required (no on-chain state for single-sig)
  • Equivalent to dispatching the call directly from the deterministic multisig account

Code Examples

// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Build as_multi_threshold_1 call (typed, named args)
const other_signatories = [] as [];
const call = undefined as any /* RuntimeCall — replace with real value */;

const tx = api.tx.Multisig.as_multi_threshold_1({
  other_signatories,
  call,
});

Runtime Info

Pallet Index
13
Call Index
0
First Version
v123
Current Version
v411