CurrentBlock

Storage Plain v210 → current

The current Ethereum block being built.

Explore chain
Queried by: developersanalytics

The Big Picture

The Ethereum-compatible block representation of the current Substrate block.

Use Cases

  • Access current block data
  • Build block explorers

From Chain Metadata

The current Ethereum block.

Purpose & Usage

Purpose

Stores the Ethereum block structure during construction.

Common Query Patterns

  • Single value query

Stored Value

value (Block)

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

Runtime Info

Pallet
Ethereum
Storage Kind
Plain
First Version
v210
Current Version
v393