update_min_contribution
Call v273 → current #6Updates the minimum contribution amount.
View calls on chainCall Workflow
This diagram shows the call execution flow: starting with update_min_contribution, passing through validation
(signature, nonce, mortality, fee payment), then pre-dispatch checks, followed by dispatch which emits events: MinContributionUpdated and modifies storage: Crowdloans, and finally post-dispatch where ExtrinsicSuccess is emitted and fees are settled.
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
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
| # | Name | Type | Description |
|---|---|---|---|
| 0 | crowdloan_id | Compact<u32> Cpt | crowdloan_id (Compact<u32>) (SCALE compact -> integer) |
| 1 | new_min_contribution | Compact<u64> Cpt | new_min_contribution (Compact<u64>) (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 { 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 update_min_contribution call
const crowdloan_id = 0;
const new_min_contribution = 0;
const call = api.tx[stringCamelCase("Crowdloan")][stringCamelCase("update_min_contribution")](
crowdloan_id,
new_min_contribution
);Runtime Info
- Pallet Index
- 27
- Call Index
- 6
- First Version
- v273
- Current Version
- v393