Thawed

Event v149 → current #20

Emitted when frozen balance is thawed.

View events on chain

From Chain Metadata

Some balance was thawed.

Triggers

Preconditions

  • Account has frozen balance
  • Thaw operation authorized

Effects

Postconditions

  • Balance available again

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

Runtime Info

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