Transactions
set-crowdloan-max-contribution
Set or clear the per-contributor max for a non-finalized crowdloan (creator only).
Caps how much any single contributor can put in, useful to keep a raise broadly distributed. Omitting the amount clears the limit. Only the creator may change it, and only while the loan has not been finalized.
| Signer | Pallet | Wraps |
|---|---|---|
coldkey | Crowdloan | Crowdloan.set_max_contribution |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
crowdloan_id | integer | yes | Identifier of the crowdloan, assigned when it was created. |
new_max_contribution_tao | number | "all" | no | Largest total any single contributor may put in. Omit to clear the limit. |
Address parameters (--hotkey, --coldkey, --dest, ...) accept a raw ss58
address, an address-book or proxy-book name, or a local wallet/hotkey name.
CLI
Preview with --dry-run (shows fee, effects, and policy result without
submitting), then submit:
btcli tx set-crowdloan-max-contribution \
--crowdloan-id <int> --dry-run
btcli tx set-crowdloan-max-contribution \
--crowdloan-id <int> -w my_coldkeyPython
import bittensor as sub
from bittensor.wallet import Wallet
wallet = Wallet(name="my_coldkey", hotkey="my_hotkey")
intent = sub.SetCrowdloanMaxContribution(crowdloan_id=0)
async with sub.Client("finney") as client:
plan = await client.plan(intent, wallet) # fee, effects, policy — no submission
result = await client.execute(intent, wallet)
if not result.success:
print(result.error.code, result.error.remediation)Or build it by op name, as an agent would:
await client.execute_tool("set_crowdloan_max_contribution", {...}, wallet)