update_min_contribution

Call v273 → current #6

Updates the minimum contribution amount.

View calls on chain

Click items to navigate. Pan and zoom to explore.

Used by: developerssubnet owners

The Big Picture

Creators can adjust minimum while active.

Use Cases

  • Adjust campaign parameters

From Chain Metadata

Update the minimum contribution of a non-finalized crowdloan. 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 update the minimum contribution of. `new_min_contribution`: The new minimum contribution.

Input Parameters

#NameTypeDescription
0
crowdloan_id
Compact<u32> Cpt CrowdloanIdcrowdloan_id: Crowdloan identifier (SCALE compact -> integer)
1
new_min_contribution
Compact<u64> Cpt BalanceOf<T>new_min_contribution: Balance in chain native currency (RAO for TAO; ÷10⁹) (SCALE compact -> integer)

Permissions

Origin
Signed
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Crowdloan not finalized
  • Signer is creator

Effects

Events Emitted

Storage Modified

Postconditions

  • Minimum updated
  • MinContributionUpdated event emitted

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

// Build update_min_contribution call (typed, named args)
const crowdloan_id = 0;
const new_min_contribution = 0n;

const tx = api.tx.Crowdloan.update_min_contribution({
  crowdloan_id,
  new_min_contribution,
});

Runtime Info

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