DepositPlaced

Event v154 → current #3

Emitted when an account reserves funds for entering or extending safe-mode.

View events on chain
Useful for: validatorsdevelopersanalytics

The Big Picture

Someone put skin in the game to protect the network. This event records who and how much, creating an audit trail for later review and potential slashing or release decisions.

Use Cases

  • Track who is activating/extending safe-mode
  • Monitor deposit amounts over time
  • Build governance dashboards for deposit tracking

From Chain Metadata

An account reserved funds for either entering or extending the safe-mode.

Triggers

Emitted by

Preconditions

  • Account has sufficient free balance
  • Permissionless entry/extend is configured

Effects

Storage Modified

Postconditions

  • Deposit amount reserved from account
  • Deposit tracked in Deposits storage

Event Data

#NameTypeDescription
0
account
AccountId Account that placed the deposit (hex -> SS58)
1
amount
u64 BalanceOf<T>Deposit amount (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 DepositPlaced events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SafeMode.DepositPlaced.get(block.hash);
  for (const evt of events) {
    console.log("DepositPlaced:", evt.payload);
  }
});

Runtime Info

Pallet Index
20
Event Index
3
First Version
v154
Current Version
v411