Prevents indefinite campaigns and locks.
Current Value
432000Relevant for: developersstakers
The Big Picture
Campaigns cannot run longer than this.
From Chain Metadata
The maximum block duration for a crowdloan.
Use Cases
- Calculate valid end blocks
- Plan campaign timeline
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 MaximumBlockDuration constant
const value = await api.constants.Crowdloan.MaximumBlockDuration();
console.log("MaximumBlockDuration:", value);Type Information
- Type
- u32
- Byte Size
- 4 bytes
- Encoding
- fixed
- Raw Hex
- 0x80970600
Runtime Info
- Pallet
- Crowdloan
- First Version
- v273
- Latest Version
- v273
- Current Runtime
- v411