Proxies
Storage Map v149 → currentThe set of account proxies. Maps accounts to their proxy delegates and deposit amounts.
Explore chainThe Big Picture
Every proxy relationship is stored here. When you add_proxy, an entry is created. When you remove_proxy, it's deleted. Query this to see all proxies for any account.
Why This Matters
Want to know who can act on behalf of an account? This storage tells you every proxy delegate, their type, and any delay requirements.
Example Scenario
Query Proxies(your_account) returns ([{delegate: 5Abc..., proxy_type: Staking, delay: 0}], 1000000000). You have one staking proxy with no delay, and 1 TAO deposit locked.
Use Cases
- Display proxies in wallet UI
- Verify proxy relationships before execution
- Build proxy relationship graphs
- Audit account security setup
From Chain Metadata
The set of account proxies. Maps the account which has delegated to the accounts which are being delegated to, together with the amount held on deposit.
Purpose & Usage
Purpose
Track all proxy relationships for an account - who can act on your behalf.
Common Query Patterns
- Query by account to see all proxies
- Check if an account has a specific proxy registered
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 → account | AccountId | Account that has proxies configured (hex -> SS58) |
Stored Value
Tuple of (proxy definitions list, reserved deposit amount)
Relationships
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 });
// Query Proxies storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query
[stringCamelCase("Proxy")]
[stringCamelCase("Proxies")](
key1
);
console.log("Proxies:", result.toHuman());On-Chain Activity
<10K estimated writes
#53 most written storage item
Modified via user-submitted extrinsics
As of block 7,429,232
Runtime Info
- Pallet
- Proxy
- Storage Kind
- Map
- First Version
- v149
- Current Version
- v393