All pallets
RandomnessCollectiveFlip docs
Look up any call, event, or storage item with code examples. Runtime v472 · Block #9,197,056
Developer documentation for the RandomnessCollectiveFlip pallet of the Subtensor blockchain, part of the Bittensor decentralized AI network. This page is designed for developers integrating with the chain: look up any call, event, or storage item, copy code examples in TypeScript, Python, or Rust, and filter by your role. For in-depth explanations, version history, and relationships between items, see the Reference section.
RandomnessCollectiveFlip
Index: 1 1 items
Storage 1
Ring buffer of the last 81 block hashes used as random seed material.
Modifier: Default Keys: 0 Returns:
BoundedVec 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 RandomMaterial storage (no keys - plain value)
const result = await api.query.RandomnessCollectiveFlip.RandomMaterial.getValue();
console.log("RandomMaterial:", result);