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 { 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 PureCreated events
api.query.system.events((events) => {
events
.filter(({ event }) =>
event.section === stringCamelCase("Proxy") &&
event.method === "PureCreated"
)
.forEach(({ event }) => {
console.log("PureCreated:", event.data.toHuman());
});
});Runtime Info
- Pallet Index
- 16
- Event Index
- 1
- First Version
- v149
- Current Version
- v393