Queried by: validatorsdevelopers
The Big Picture
Contains authority signatures, consensus messages, pre-runtime digests.
Use Cases
- Verify consensus data
From Chain Metadata
Digest of the current block, also part of the block header.
Purpose & Usage
Purpose
Store consensus-related data in block header.
Common Query Patterns
- Query from block header
Stored Value
value (Digest)
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 Digest storage (no keys - plain value)
const result = await api.query.System.Digest.getValue();
console.log("Digest:", result);Version History
v101 block 1 Added
v149 block 3,014,339 Internal re-bind
v151 block 3,157,274 Internal re-bind Current
Runtime Info
- Pallet
- System
- Storage Kind
- Plain
- First Version
- v101
- Current Version
- v411