Pending

Storage Map v210 → v411 · 2 shape changes Changed in v411

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

Migration Notes

v277 v290 Breaking

modifier changed from Default to Optional; storage kind changed from Plain to Map; key type changed from <none> to u32; value type changed from Vec<(TransactionV2, TransactionStatus, ReceiptV3)> to (TransactionV2, TransactionStatus, ReceiptV3)

Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.

v323 v326 Breaking

value type changed from (TransactionV2, TransactionStatus, ReceiptV3) to (TransactionV3, TransactionStatus, ReceiptV4)

Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.

Query Keys

#NameTypeDescription
1
index
raw: key1
u32 Index of the EVM transaction within the current building block (u32).

Stored Value

  • .0
    evm_transaction — EVM transaction (TransactionV3 — EIP-1559 / typed-transaction era). The raw transaction payload as parsed by the Ethereum pallet.
  • .1
    transaction_status — TransactionStatus — execution metadata: from address, contract address (if any), logs bloom, logs vector. Populated when the EVM executes the transaction.
  • .2
    transaction_receipt — ReceiptV4 — execution receipt: status, cumulative gas used, logs. Produced by the EVM after dispatching the transaction.

Relationships

Modified By

Related Events

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

const result = await api.query.Ethereum.Pending.getValue(key1);
console.log("Pending:", result);

Version History

v210 block 4,345,556 Added
v213–v215 · runtime versions skipped on chain (never deployed)
v216 block 4,510,996 Internal re-bind
v220–v232 · runtime versions skipped on chain (never deployed)
v233 block 4,920,350 Internal re-bind
v235–v237 · runtime versions skipped on chain (never deployed)
v238 block 4,936,550 Internal re-bind
v253–v256 · runtime versions skipped on chain (never deployed)
v257 block 5,228,683 Internal re-bind
v259–v260 · runtime versions skipped on chain (never deployed)
v261 block 5,328,895 Internal re-bind
v266–v272 · runtime versions skipped on chain (never deployed)
v273 block 5,659,032 Internal re-bind
v275–v275 · runtime versions skipped on chain (never deployed)
v276 block 5,781,672 Internal re-bind
v278–v289 · runtime versions skipped on chain (never deployed)
v290 block 5,947,548 Shape changed
  • modifier : DefaultOptional
  • kind : PlainMap
  • key : Key type changed: <none> -> u32
  • value : Vec<(TransactionV2, TransactionStatus, ReceiptV3)>(TransactionV2, TransactionStatus, ReceiptV3)
  • hashers : Hashers changed: [] -> [Identity]
v293–v296 · runtime versions skipped on chain (never deployed)
v297 block 6,067,943 Internal re-bind
v299–v300 · runtime versions skipped on chain (never deployed)
v301 block 6,205,194 Internal re-bind
v316–v319 · runtime versions skipped on chain (never deployed)
v320 block 6,523,566 Internal re-bind
v324–v325 · runtime versions skipped on chain (never deployed)
v326 block 6,608,228 Shape changed
  • value : (TransactionV2, TransactionStatus, ReceiptV3)(TransactionV3, TransactionStatus, ReceiptV4)
v327–v333 · runtime versions skipped on chain (never deployed)
v334 block 6,811,690 Internal re-bind
v353–v360 · runtime versions skipped on chain (never deployed)
v361 block 7,063,679 Internal re-bind
v363–v364 · runtime versions skipped on chain (never deployed)
v365 block 7,135,419 Internal re-bind
v378–v384 · runtime versions skipped on chain (never deployed)
v385 block 7,782,670 Internal re-bind
v386–v390 · runtime versions skipped on chain (never deployed)
v391 block 7,782,857 Internal re-bind
v394–v400 · runtime versions skipped on chain (never deployed)
v401 block 8,036,576 Internal re-bind
v403–v410 · runtime versions skipped on chain (never deployed)
v411 block 8,283,784 Internal re-bind Current

Runtime Info

Pallet
Ethereum
Storage Kind
Map
First Version
v210
Current Version
v411