PureCreated
Event v149 → current #1Emitted when a new keyless (pure) proxy account is created.
View events on chainUseful for: validatorsdeveloperswalletsanalytics
The Big Picture
Pure proxy accounts have no private key - only accessible via proxy.
Use Cases
- Track keyless account creation
From Chain Metadata
A pure account has been created by new proxy with given disambiguation index and proxy type.
Triggers
Emitted by
Preconditions
- Sufficient deposit
- No duplicate pure proxy
Effects
Storage Modified
Postconditions
- Keyless account created
- Creator registered as proxy
Side Effects
- Deposit reserved
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | pure | AccountId | The newly created pure proxy account address (hex -> SS58) |
| 1 | who | AccountId | Account that created the pure proxy (hex -> SS58) |
| 2 | proxy_type | ProxyType | Type of proxy (Any, NonTransfer, Staking, etc.) |
| 3 | disambiguation_index | u16 | Index to distinguish multiple pure proxies with same parameters |
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 PureCreated events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.Proxy.PureCreated.get(block.hash);
for (const evt of events) {
console.log("PureCreated:", evt.payload);
}
});Runtime Info
- Pallet Index
- 16
- Event Index
- 1
- First Version
- v149
- Current Version
- v411