Pending

Storage Re-added Map v210 → v277, v290 → v323, v326 → current

Pending Ethereum transactions in the current block being built.

Explore chain
Queried by: developers

The Big Picture

Ephemeral storage during block building - cleared after block finalization.

Use Cases

  • Debug block building
  • Monitor pending transactions

From Chain Metadata

Mapping from transaction index to transaction in the current building block.

Purpose & Usage

Purpose

Tracks transactions during block construction before finalization.

Common Query Patterns

  • Query by transaction index
  • Iterate all pending

Query Keys

#NameTypeDescription
1
key1
u32 key1 (u32)

Stored Value

value ((TransactionV3, TransactionStatus, ReceiptV4))

Relationships

Modified By

Related Events

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 Pending storage
const key1 = 0;

const result = await api.query
  [stringCamelCase("Ethereum")]
  [stringCamelCase("Pending")](
  key1
);

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

Version History

v210 block 4,345,556 Added
v290 block 5,947,548 Re-added
v326 block 6,608,228 Re-added Current

Runtime Info

Pallet
Ethereum
Storage Kind
Map
First Version
v210
Current Version
v393