Endowed

Event v101 → current #0

Emitted when an account is created with some free balance.

View events on chain

From Chain Metadata

An account was created with some free balance.

Triggers

Preconditions

  • Account did not exist or had zero balance
  • Balance meets existential deposit

Effects

Postconditions

  • Account has initial free balance

Side Effects

  • Typically accompanies NewAccount event

Event Data

#NameTypeDescription
0
account
AccountId account: Account address (32 bytes, SS58-encoded) (hex -> SS58)
1
free_balance
u64 T::Balancefree_balance: Balance in chain native currency (RAO for TAO; ÷10⁹) (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 Endowed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.Balances.Endowed.get(block.hash);
  for (const evt of events) {
    console.log("Endowed:", evt.payload);
  }
});

On-Chain Activity

Emission Frequency
●●●○○○ Active 100K–1M emissions

Regular feature-level activity

#29 most emitted event

As of block 7,429,232

Runtime Info

Pallet Index
5
Event Index
0
First Version
v101
Current Version
v411