ExtrinsicData
Storage Map v101 → currentRaw extrinsic data for current block by index.
Explore chainQueried by: developers
The Big Picture
Available during block execution. Contains raw SCALE-encoded extrinsics.
Use Cases
- Debug extrinsic encoding
From Chain Metadata
Extrinsics data for the current block (maps an extrinsic's index to its data).
Purpose & Usage
Purpose
Access extrinsic bytes during block execution.
Common Query Patterns
- Query by extrinsic index
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 | u32 | key1 (u32) |
Stored Value
Vec<u8> Vec
value (Vec<u8>)
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 ExtrinsicData storage
const key1 = 0;
const result = await api.query
[stringCamelCase("System")]
[stringCamelCase("ExtrinsicData")](
key1
);
console.log("ExtrinsicData:", result.toHuman());Runtime Info
- Pallet
- System
- Storage Kind
- Map
- First Version
- v101
- Current Version
- v393