dissolve

Call v273 → current #5

Dissolves a crowdloan after all contributors are refunded.

View calls on chain

Click items to navigate. Pan and zoom to explore.

Used by: developerssubnet owners

The Big Picture

Final step for failed crowdloans.

Use Cases

  • Clean up failed campaigns
  • Recover deposit

From Chain Metadata

Dissolve a crowdloan. The crowdloan will be removed from the storage. All contributions must have been refunded before the crowdloan can be dissolved (except the creator's one). The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan. Parameters: `crowdloan_id`: The id of the crowdloan to dissolve.

Input Parameters

#NameTypeDescription
0
crowdloan_id
Compact<u32> Cptcrowdloan_id (Compact<u32>) (SCALE compact -> integer)

Permissions

Origin
Signed
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • All contributions refunded
  • Signer is creator

Effects

Events Emitted

Storage Modified

Postconditions

  • Deposit returned
  • Crowdloan removed
  • Dissolved event emitted

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 });

// Build dissolve call
const crowdloan_id = 0;

const call = api.tx[stringCamelCase("Crowdloan")][stringCamelCase("dissolve")](
  crowdloan_id
);

Runtime Info

Pallet Index
27
Call Index
5
First Version
v273
Current Version
v393