DepositPoked
Event v301 → current #4Emitted when a multisig deposit is updated after parameter changes.
View events on chainUseful for: developerswallets
The Big Picture
Network parameters changed and this pending operation's deposit was recalculated.
Use Cases
- Track deposit adjustments
- Monitor parameter change impacts
From Chain Metadata
The deposit for a multisig operation has been updated/poked.
Triggers
Emitted by
Preconditions
- Multisig operation exists
- Caller is the original depositor
Effects
Storage Modified
Postconditions
- Deposit amount adjusted to current parameters
Side Effects
- Balance change for depositor if parameters changed
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | who | AccountId | Account whose multisig deposit was adjusted (hex -> SS58) |
| 1 | call_hash | [u8; 32] [32] CallHash | Blake2-256 hash of the call held by the multisig |
| 2 | old_deposit | u64 BalanceOf<T> | Previous deposit amount (BalanceOf<T>, RAO) (RAO -> TAO (/ 10^9)) |
| 3 | new_deposit | u64 BalanceOf<T> | New deposit amount after adjustment (BalanceOf<T>, RAO) (RAO -> TAO (/ 10^9)) |
Code Examples
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);
// Subscribe to DepositPoked events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.Multisig.DepositPoked.get(block.hash);
for (const evt of events) {
console.log("DepositPoked:", evt.payload);
}
});Runtime Info
- Pallet Index
- 13
- Event Index
- 4
- First Version
- v301
- Current Version
- v411