PureKilled
Event v292 → v323, v326 → current #2Emitted when a pure proxy account is destroyed.
View events on chainUseful 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
| # | Name | Type | Description |
|---|---|---|---|
| 0 | pure | AccountId | The pure proxy account address that was killed (hex -> SS58) |
| 1 | spawner | AccountId | Account that originally created the pure proxy (hex -> SS58) |
| 2 | proxy_type | ProxyType | Type of proxy permission held by the pure proxy |
| 3 | disambiguation_index | u16 | Index used to disambiguate multiple pure proxies for the same spawner |
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 PureKilled events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.Proxy.PureKilled.get(block.hash);
for (const evt of events) {
console.log("PureKilled:", evt.payload);
}
});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
- v411