PureKilled

Event Re-added v292 → v323, v326 → current #2

Emitted when a pure proxy account is destroyed.

View events on chain
Useful for: validatorsdeveloperswalletsanalytics

The Big Picture

Pure accounts can be destroyed, returning deposits but losing remaining funds.

Use Cases

  • Track pure account destruction

From Chain Metadata

A pure proxy was killed by its spawner.

Triggers

Emitted by

Preconditions

  • Pure account called kill_pure via proxy

Effects

Storage Modified

Postconditions

  • Pure account removed
  • Deposit returned

Side Effects

  • Remaining funds become inaccessible

Event Data

#NameTypeDescription
0
pure
AccountId The pure proxy account address that was killed (hex -> SS58)
1
spawner
AccountId spawner (AccountId) (hex -> SS58)
2
proxy_type
ProxyType proxy_type (ProxyType)
3
disambiguation_index
u16 disambiguation_index (u16)

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

Version History

v292 block 5,968,712 4 args
v326 block 6,608,228 4 args Current

Runtime Info

Pallet Index
16
Event Index
2
First Version
v292
Current Version
v393