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 AccountIdLookupOf<T>Account executing the announced call
1
real
MultiAddress AccountIdLookupOf<T>Account on whose behalf call is executed
2
force_proxy_type
Option Option<T::ProxyType>Specific proxy type to use (None for any)
3
call
RuntimeCall Box<<T as Config>::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

// ----------------------------------------------------------------------
// HEADS UP: 3 args below have a complex type with no usable default.
// Look for `undefined as any` and replace them with real values
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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);

// Build proxy_announced call (typed, named args)
const delegate = undefined as any /* MultiAddress — replace with real value */;
const real = undefined as any /* MultiAddress — replace with real value */;
const force_proxy_type = undefined;
const call = undefined as any /* RuntimeCall — replace with real value */;

const tx = api.tx.Proxy.proxy_announced({
  delegate,
  real,
  force_proxy_type,
  call,
});

Runtime Info

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