add_proxy

Call v149 → current #1

Register a new proxy for the sender's account.

View calls on chain

Click items to navigate. Pan and zoom to explore.

Used by: stakersvalidatorsdeveloperswallets

The Big Picture

Adding a proxy authorizes another account to act on your behalf.

Use Cases

  • Set up cold/hot wallet architecture
  • Authorize staking services

From Chain Metadata

See [`Pallet::add_proxy`].

Input Parameters

#NameTypeDescription
0
delegate
MultiAddress Account to authorize as proxy
1
proxy_type
ProxyType Type of proxy permission (Any, NonTransfer, Staking, etc.)
2
delay
u32 Announcement delay in blocks (0 = immediate)

Permissions

Origin
Unknown
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Sufficient balance for deposit
  • MaxProxies limit not exceeded

Effects

Events Emitted

Storage Modified

Postconditions

  • Proxy relationship created
  • Deposit reserved
  • ProxyAdded event emitted

Side Effects

  • Balance reserved for proxy deposit

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 add_proxy call
const delegate = 0 as any /* MultiAddress */;
const proxy_type = 0 as any /* ProxyType */;
const delay = 0;

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

On-Chain Activity

Usage Frequency
●●○○○○ Low 1K–10K extrinsics

Infrequent

#50 most used call

Success Rate Moderate

50–80% of submissions succeed

As of block 7,429,232

Runtime Info

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