Call Workflow
This diagram shows the call execution flow: starting with remove_proxy, passing through validation
(signature, nonce, mortality, fee payment), then pre-dispatch checks, followed by dispatch which emits events: ProxyRemoved 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
Removing proxies revokes their permissions and recovers deposits.
Use Cases
- Revoke compromised proxy
- Clean up unused proxies
- Rotate proxy keys
From Chain Metadata
See [`Pallet::remove_proxy`].
Input Parameters
| # | Name | Type | Description |
|---|---|---|---|
| 0 | delegate | MultiAddress | Proxy account to remove authorization from |
| 1 | proxy_type | ProxyType | Type of proxy permission to remove |
| 2 | delay | u32 | Delay that was configured for this proxy |
Permissions
Origin
Unknown
Required Role
Permission data inferred from metadata. May be incomplete.
Requirements
- Proxy exists
- Caller is the account that added the proxy
Effects
Events Emitted
Storage Modified
Postconditions
- Proxy removed
- Deposit returned
- ProxyRemoved event emitted
Side Effects
- Proxy can no longer act on behalf of the account
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 remove_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("remove_proxy")](
delegate,
proxy_type,
delay
);Runtime Info
- Pallet Index
- 16
- Call Index
- 2
- First Version
- v149
- Current Version
- v393