Created
Event v273 → current #0Emitted when a new crowdloan campaign is created.
View events on chainUseful for: stakersdevelopersanalytics
The Big Picture
A new crowdfunding campaign has launched.
Use Cases
- Track new campaigns
- Monitor ecosystem fundraising
From Chain Metadata
A crowdloan was created.
Triggers
Emitted by
Preconditions
- Creator has sufficient balance
- Parameters are valid
Effects
Storage Modified
Postconditions
- Crowdloan created
- Deposit transferred
Side Effects
- NextCrowdloanId incremented
Event Data
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);
// Subscribe to Created events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.Crowdloan.Created.get(block.hash);
for (const evt of events) {
console.log("Created:", evt.payload);
}
});Runtime Info
- Pallet Index
- 27
- Event Index
- 0
- First Version
- v273
- Current Version
- v411