Announcements

Storage Map v149 → current

Pending announcements made by time-delayed proxies.

Explore chain
Queried by: stakersvalidatorsdeveloperswalletsanalytics

The Big Picture

Time-delayed proxies must announce before acting. This storage holds those pending announcements, enabling the account owner to review and potentially reject them.

Why This Matters

If you use time-delayed proxies, check this to see what actions are queued. You can reject announcements you don't approve before they execute.

Example Scenario

Query Announcements(your_proxy_account) returns announcements with call hashes and the block heights when they were made. After delay blocks, they become executable.

Use Cases

  • Monitor pending proxy actions on your account
  • Display announcements in wallet UI
  • Set up alerts for announced operations

From Chain Metadata

The announcements made by the proxy (key).

Purpose & Usage

Purpose

Track announced calls waiting for their delay period to pass.

Common Query Patterns

  • Query by proxy account to see pending announcements
  • Check if a specific announcement exists

Query Keys

#NameTypeDescription
1
key1
→ account
AccountId Account that made announcements (hex -> SS58)

Stored Value

Tuple of (pending announcements list, reserved deposit amount)

Relationships

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 });

// Query Announcements storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query
  [stringCamelCase("Proxy")]
  [stringCamelCase("Announcements")](
  key1
);

console.log("Announcements:", result.toHuman());

Runtime Info

Pallet
Proxy
Storage Kind
Map
First Version
v149
Current Version
v393