Proxies
Storage Map v149 → v411 Changed in v411The 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 | delegator account raw: key1 | [u8; 32] [32] | Account that has delegated proxy authority (AccountId32 as 32-byte array). |
Stored Value
- .0 proxy_definitions — Bounded list of ProxyDefinition entries: each is (delegate AccountId, proxy_type, delay). The delegate accounts the delegator has authorized and on what call subset.
- .1 deposit — Native-currency deposit (u64 in RAO units on subtensor) held against this proxy configuration. Returned to the delegator when proxies are removed.
Relationships
Code Examples
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);
// Query Proxies storage
const key1 = "0x0000000000000000000000000000000000000000000000000000000000000000";
const result = await api.query.Proxy.Proxies.getValue(key1);
console.log("Proxies:", result);On-Chain Activity
<10K estimated writes
#53 most written storage item
Modified via user-submitted extrinsics
As of block 7,429,232
Version History
Runtime Info
- Pallet
- Proxy
- Storage Kind
- Map
- First Version
- v149
- Current Version
- v411