CurrentCrowdloanId
Storage Plain v273 → currentTemporarily set during finalize for dispatched call to access.
Explore chainQueried by: developers
The Big Picture
Ephemeral storage for call dispatch context.
Use Cases
- Access crowdloan ID in dispatched finalization calls
From Chain Metadata
The current crowdloan id that will be set during the finalize call, making it temporarily accessible to the dispatched call.
Purpose & Usage
Purpose
Allows finalize call to pass context to dispatched call.
Common Query Patterns
- Single value query (usually None)
Stored Value
value (u32)
Relationships
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 CurrentCrowdloanId storage (no keys - plain value)
const result = await api.query
[stringCamelCase("Crowdloan")]
[stringCamelCase("CurrentCrowdloanId")]();
console.log("CurrentCrowdloanId:", result.toHuman());Runtime Info
- Pallet
- Crowdloan
- Storage Kind
- Plain
- First Version
- v273
- Current Version
- v393