Issued

Event v149 → current #15

Emitted when total issuance is increased.

View events on chain

From Chain Metadata

Total issuance was increased by `amount`, creating a credit to be balanced.

Triggers

Preconditions

  • Issuance increase authorized

Effects

Postconditions

  • Total issuance increased by amount

Side Effects

  • Creates credit to be balanced

Event Data

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

Runtime Info

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