CounterForPending

Storage Plain v290 → current

Counter tracking number of pending transactions.

Explore chain
Queried by: developers

The Big Picture

Utility counter for the Pending storage map.

Use Cases

  • Check pending transaction count

From Chain Metadata

Counter for the related counted storage map

Purpose & Usage

Purpose

Counted storage map counter for Pending.

Common Query Patterns

  • Single value query

Stored Value

value (u32)

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 CounterForPending storage (no keys - plain value)
const result = await api.query
  [stringCamelCase("Ethereum")]
  [stringCamelCase("CounterForPending")]();
console.log("CounterForPending:", result.toHuman());

Runtime Info

Pallet
Ethereum
Storage Kind
Plain
First Version
v290
Current Version
v393