create_pure

Call v149 → current #4

Create a new account with no private key, only accessible via proxy .

View calls on chain

Click items to navigate. Pan and zoom to explore.

Used by: validatorsdeveloperswallets

The Big Picture

Pure proxies create accounts with no private key - only accessible via proxy.

Use Cases

  • Create keyless cold storage
  • Multi-sig controlled accounts

From Chain Metadata

See [`Pallet::create_pure`].

Input Parameters

#NameTypeDescription
0
proxy_type
ProxyType Type of proxy the creator will have over the pure account
1
delay
u32 Announcement delay in blocks
2
index
u16 Disambiguation index for multiple pure accounts

Permissions

Origin
Unknown
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Sufficient balance for deposit
  • No duplicate pure proxy exists

Effects

Events Emitted

Storage Modified

Postconditions

  • Keyless account created
  • Caller registered as proxy
  • PureCreated event emitted

Side Effects

  • Deposit reserved for the proxy relationship

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 });

// Build create_pure call
const proxy_type = 0 as any /* ProxyType */;
const delay = 0;
const index = 0;

const call = api.tx[stringCamelCase("Proxy")][stringCamelCase("create_pure")](
  proxy_type,
  delay,
  index
);

Runtime Info

Pallet Index
16
Call Index
4
First Version
v149
Current Version
v393