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 BlockNumberFor<T>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

// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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);

// Build create_pure call (typed, named args)
const proxy_type = undefined as any /* ProxyType — replace with real value */;
const delay = 0;
const index = 0;

const tx = api.tx.Proxy.create_pure({
  proxy_type,
  delay,
  index,
});

Runtime Info

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