Queried by: developersanalytics
The Big Picture
Auto-incrementing counter for crowdloan IDs.
Use Cases
- Predict next crowdloan ID
- Count total crowdloans created
From Chain Metadata
The next incrementing crowdloan id.
Purpose & Usage
Purpose
Ensures unique IDs for new crowdloans.
Common Query Patterns
- Single value query
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 NextCrowdloanId storage (no keys - plain value)
const result = await api.query
[stringCamelCase("Crowdloan")]
[stringCamelCase("NextCrowdloanId")]();
console.log("NextCrowdloanId:", result.toHuman());Runtime Info
- Pallet
- Crowdloan
- Storage Kind
- Plain
- First Version
- v273
- Current Version
- v393