Skip to content

chainabit chain period set ​

Published (2.2.0) ​

This command is not included in Published (2.2.0). It is available in Development (2.2.0).

Development (2.2.0) ​

Set a future period by its start date

Synopsis ​

text
chainabit chain period set <chainId> <start> --schedule <id> --end <date> [options]

Arguments ​

ArgumentDescriptionDefault
<chainId>Chain ID. Required.—
<start>Start date or timestamp with timezone. Required.—

Options ​

OptionDescriptionDefault
--yesConfirm this change—
--schedule <id>Active schedule ID. Required.—
--end <date>Period end. Required.—

Options shared by every command are described in Global options and shared behavior.

Behavior ​

Sets the future period of the chain that begins at the given start date and ends at --end. --schedule is required and must be a schedule of the same chain; a schedule that belongs to another chain is refused as not found. The start date is a date or a timestamp with a time zone, and an invalid start or end is refused before anything is sent. If a period already begins at that start date, the command updates it and keeps its ID instead of adding a second one.

This command changes data, so it asks for confirmation. In a terminal it shows the action and asks you to confirm; if you decline, nothing changes. Pass --yes to skip the question. With --json, or when there is no terminal, the command changes nothing and exits with code 2 unless you pass --yes.

Output ​

The output shows the period ID, the chain ID, the period start and end, the schedule ID, the target and the status. With --json it contains id, chainId, periodStart, periodEnd, scheduleId, requiredCount and status.

Authentication and permissions ​

You must be signed in. The server decides whether your account may make this change and refuses it otherwise.

Examples ​

bash
chainabit chain period set 00000000-0000-4000-8000-000000000001 2032-10-01 --schedule 00000000-0000-4000-8000-000000000003 --end 2032-10-08
chainabit chain period set 00000000-0000-4000-8000-000000000001 2032-10-01T00:00:00Z --schedule 00000000-0000-4000-8000-000000000003 --end 2032-10-08 --yes

Built with purpose. chainabit.com