DustLost

Event v101 → current #1

Emitted when an account's remaining balance is below existential deposit.

View events on chain

From Chain Metadata

An account was removed whose balance was non-zero but below ExistentialDeposit, resulting in an outright loss.

Triggers

Preconditions

  • Account balance fell below existential deposit
  • Balance was non-zero

Effects

Postconditions

  • Remaining balance removed from account
  • Dust amount lost/burned

Side Effects

  • Account may be reaped

Event Data

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

On-Chain Activity

Emission Frequency
●●○○○○ Moderate 10K–100K emissions

Occasional use

#43 most emitted event

As of block 7,429,232

Runtime Info

Pallet Index
5
Event Index
1
First Version
v101
Current Version
v393