Dissolved

Event v273 → current #6

Emitted when a crowdloan is dissolved.

View events on chain
Useful for: stakersdevelopersanalytics

The Big Picture

Failed campaign cleaned up.

Use Cases

  • Track campaign cleanup

From Chain Metadata

A crowdloan was dissolved.

Triggers

Emitted by

Preconditions

  • All contributors refunded
  • Creator dissolved

Effects

Storage Modified

Postconditions

  • Deposit returned
  • Crowdloan removed

Event Data

#NameTypeDescription
0
crowdloan_id
u32 CrowdloanIdCrowdloan identifier

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 Dissolved events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.Crowdloan.Dissolved.get(block.hash);
  for (const evt of events) {
    console.log("Dissolved:", evt.payload);
  }
});

Runtime Info

Pallet Index
27
Event Index
6
First Version
v273
Current Version
v411