Suspended

Event v149 → current #12

Emitted when balance is suspended from an account (can be restored later).

View events on chain
Useful for: developersanalyticswallets

The Big Picture

Suspension temporarily removes balance from an account without destroying it. Unlike burning or slashing, suspended balance can be restored later. This is useful for operations that may need to be reversed, like pending transactions or dispute resolution. The Restored event indicates when suspended funds are returned.

Use Cases

  • Track temporary balance holds
  • Monitor pending operations that may be reversed
  • Build balance state tracking tools

From Chain Metadata

Some amount was suspended from an account (it can be restored later).

Triggers

Preconditions

  • Account has sufficient balance
  • Suspension operation authorized

Effects

Postconditions

  • Account balance decreased by suspended amount

Side Effects

  • Balance is held but not destroyed - can be restored

Event Data

#NameTypeDescription
0
who
AccountId Who account address (hex -> SS58)
1
amount
u64 Amount in RAO (÷10⁹ for TAO) (RAO -> TAO (/ 10^9))

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 });

// Subscribe to Suspended events
api.query.system.events((events) => {
  events
    .filter(({ event }) =>
      event.section === stringCamelCase("Balances") &&
      event.method === "Suspended"
    )
    .forEach(({ event }) => {
      console.log("Suspended:", event.data.toHuman());
    });
});

Runtime Info

Pallet Index
5
Event Index
12
First Version
v149
Current Version
v393