AbsoluteMinimumContribution

Constant v273 → current u64

Prevents dust contributions that waste storage .

Current Value

100000000
Relevant for: developersstakers

The Big Picture

Floor for all contributions regardless of campaign settings.

From Chain Metadata

The absolute minimum contribution required to contribute to a crowdloan.

Use Cases

  • Set minimum contribution above this
  • Validate user contributions

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

// Query AbsoluteMinimumContribution constant
const value = api.consts[stringCamelCase("Crowdloan")][stringCamelCase("AbsoluteMinimumContribution")];
console.log("AbsoluteMinimumContribution:", value.toHuman());

// Convert RAO to TAO if this is a balance value
const taoValue = value.toBigInt() / BigInt(1e9);
console.log("TAO:", taoValue.toString());

Type Information

Type
u64
Byte Size
8 bytes
Encoding
fixed
Raw Hex
0x00e1f50500000000

Runtime Info

Pallet
Crowdloan
First Version
v273
Latest Version
v273
Current Runtime
v393