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

// Query CounterForPending storage (no keys - plain value)
const result = await api.query.Ethereum.CounterForPending.getValue();
console.log("CounterForPending:", result);

Runtime Info

Pallet
Ethereum
Storage Kind
Plain
First Version
v290
Current Version
v411