Transactions
update-crowdloan-end
Update the end block of a non-finalized crowdloan (creator only).
Extends or shortens the contribution window. The new end is re-validated against the current block: it must be in the future and fall within the chain's minimum/maximum crowdloan duration (roughly 7 to 60 days) measured from now. Only the creator may change it, and only while the loan has not been finalized.
| Signer | Pallet | Wraps |
|---|---|---|
coldkey | Crowdloan | Crowdloan.update_end |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
crowdloan_id | integer | yes | Identifier of the crowdloan, assigned when it was created. |
new_end | integer | yes | New block number at which the crowdloan stops accepting contributions. Must be in the future and roughly 7-60 days from the current block. |
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 update-crowdloan-end \
--crowdloan-id <int> \
--new-end <int> --dry-run
btcli tx update-crowdloan-end \
--crowdloan-id <int> \
--new-end <int> -w my_coldkeyPython
import bittensor as sub
from bittensor.wallet import Wallet
wallet = Wallet(name="my_coldkey", hotkey="my_hotkey")
intent = sub.UpdateCrowdloanEnd(crowdloan_id=0, new_end=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("update_crowdloan_end", {...}, wallet)