DepositPoked
Event v320 → current #6Emitted when proxy or announcement deposits are recalculated.
View events on chainUseful for: stakersvalidatorsdevelopersanalytics
The Big Picture
Deposit recalculation after chain parameter changes.
Use Cases
- Track deposit adjustments
From Chain Metadata
A deposit stored for proxies or announcements was poked / updated.
Triggers
Emitted by
Preconditions
- Account has proxy or announcement deposits
Effects
Storage Modified
Postconditions
- Deposits adjusted to current values
Side Effects
- Balance may change
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | who | AccountId | Account whose proxy deposit was adjusted (hex -> SS58) |
| 1 | kind | DepositKind | Kind of deposit being poked (announcement / proxy) |
| 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.Proxy.DepositPoked.get(block.hash);
for (const evt of events) {
console.log("DepositPoked:", evt.payload);
}
});Runtime Info
- Pallet Index
- 16
- Event Index
- 6
- First Version
- v320
- Current Version
- v411