chainabit chain period remove
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)
Remove an unused future period by its start date
Synopsis
chainabit chain period remove <chainId> <start> [options]Arguments
| Argument | Description | Default |
|---|---|---|
<chainId> | Chain ID. Required. | — |
<start> | Start date or timestamp with timezone. Required. | — |
Options
| Option | Description | Default |
|---|---|---|
--yes | Confirm this change | — |
Options shared by every command are described in Global options and shared behavior.
Behavior
Removes the future period of the chain that begins at the given start date. The start date is a date or a timestamp with a time zone; an invalid value is refused before anything is sent. Running the command again for a start date that no longer has a period changes nothing and reports removed as false.
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 chain ID, the period start and whether the period was removed. With --json it contains chainId, periodStart and removed.
Authentication and permissions
You must be signed in. The server decides whether your account may make this change and refuses it otherwise.
Examples
chainabit chain period remove 00000000-0000-4000-8000-000000000001 2032-10-01
chainabit chain period remove 00000000-0000-4000-8000-000000000001 2032-10-01 --yes