poke_deposit

Call v301 → current #4

Update the deposit for an existing multisig operation.

View calls on chain

Click items to navigate. Pan and zoom to explore.

Used by: developerswallets

The Big Picture

If deposit parameters change via governance, poke_deposit recalculates and adjusts your reservation for pending multisig operations.

Use Cases

  • Adjust deposit after network parameter changes
  • Reclaim excess deposit if rates decreased

From Chain Metadata

Poke the deposit reserved for an existing multisig operation. The dispatch origin for this call must be _Signed_ and must be the original depositor of the multisig operation. The transaction fee is waived if the deposit amount has changed. `threshold`: The total number of approvals needed for this multisig. `other_signatories`: The accounts (other than the sender) who are part of the multisig. `call_hash`: The hash of the call this deposit is reserved for. Emits `DepositPoked` if successful.

Input Parameters

#NameTypeDescription
0
threshold
u16 threshold (u16)
1
other_signatories
Vec<AccountId> Vecother_signatories (Vec<AccountId>)
2
call_hash
[u8; 32] [32]call_hash ([u8; 32])

Permissions

Origin
Signed
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Caller is the original depositor
  • Multisig operation exists

Effects

Events Emitted

Storage Modified

Postconditions

  • Deposit adjusted to current network parameters
  • Difference paid or returned

Side Effects

  • Emits DepositPoked event showing old and new deposit amounts
  • Transaction fee waived if deposit actually changed

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Build poke_deposit call
const threshold = 0;
const other_signatories = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const call_hash = 0;

const call = api.tx[stringCamelCase("Multisig")][stringCamelCase("poke_deposit")](
  threshold,
  other_signatories,
  call_hash
);

Runtime Info

Pallet Index
13
Call Index
4
First Version
v301
Current Version
v393