proxy_announced

Call v149 → current #9

Execute a previously announced proxy call after delay.

View calls on chain

Click items to navigate. Pan and zoom to explore.

Used by: validatorsdeveloperswallets

The Big Picture

Execute announced action after delay period.

Use Cases

  • Complete time-delayed proxy operations

From Chain Metadata

See [`Pallet::proxy_announced`].

Input Parameters

#NameTypeDescription
0
delegate
MultiAddress Account executing the announced call
1
real
MultiAddress Account on whose behalf call is executed
2
force_proxy_type
Option Specific proxy type to use (None for any)
3
call
RuntimeCall The call to execute

Permissions

Origin
Unknown
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Announcement exists and delay passed
  • Call matches announcement

Effects

Events Emitted

Storage Modified

Postconditions

  • Call executed
  • Announcement consumed
  • ProxyExecuted event emitted

Side Effects

  • Side effects of the proxied call

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 proxy_announced call
const delegate = 0 as any /* MultiAddress */;
const real = 0 as any /* MultiAddress */;
const force_proxy_type = 0 as any /* Option */;
const call = 0 as any /* RuntimeCall */;

const call = api.tx[stringCamelCase("Proxy")][stringCamelCase("proxy_announced")](
  delegate,
  real,
  force_proxy_type,
  call
);

Runtime Info

Pallet Index
16
Call Index
9
First Version
v149
Current Version
v393