Restored

Event v149 → current #13

Emitted when suspended balance is restored to an account.

View events on chain
Useful for: developersanalyticswallets

The Big Picture

When balance is suspended (temporarily removed from an account), it can later be restored. This event confirms the restoration, making the funds available again. This is the counterpart to the Suspended event - together they track temporary balance holds and their resolution.

Use Cases

  • Track balance restoration after suspension
  • Monitor account recovery processes
  • Build suspension/restoration tracking tools

From Chain Metadata

Some amount was restored into an account.

Triggers

Preconditions

  • Account has suspended balance
  • Restore operation authorized

Effects

Postconditions

  • Suspended amount returned to account balance

Side Effects

  • Account balance increased by restored amount

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 Restored events
api.query.system.events((events) => {
  events
    .filter(({ event }) =>
      event.section === stringCamelCase("Balances") &&
      event.method === "Restored"
    )
    .forEach(({ event }) => {
      console.log("Restored:", event.data.toHuman());
    });
});

Runtime Info

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