remove_proxy

Call v149 → current #2

Remove a previously registered proxy .

View calls on chain

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

#NameTypeDescription
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