Call Workflow
This diagram shows the call execution flow: starting with add_proxy, passing through validation
(signature, nonce, mortality, fee payment), then pre-dispatch checks, followed by dispatch which emits events: ProxyAdded and modifies storage: Proxies, and finally post-dispatch where ExtrinsicSuccess is emitted and fees are settled.
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
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
| # | Name | Type | Description |
|---|---|---|---|
| 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