Skip to content

chainabit chain run approve ​

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) ​

Approve the action (may spend wallet credits)

Synopsis ​

text
chainabit chain run approve <id> [options]

Arguments ​

ArgumentDescriptionDefault
<id>Required.—

Options ​

OptionDescriptionDefault
--yesConfirm this change—
--workspace <id>Workspace ID—

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

Behavior ​

Approves the pending approval with the given ID so the action waiting on it can go ahead. Approving may spend wallet credits, and the confirmation question says so. The approval is looked up in a workspace: pass --workspace, or the command uses your default workspace; if neither is set, the command asks you to select 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 whether the approval was resolved, its status, the write outcome and the ID of the resumed run. With --json it contains resolved, status, writeOutcome and resumeRunId.

Authentication and permissions ​

You must be signed in. The server decides whether your account may decide this approval in that workspace.

Examples ​

bash
chainabit chain run approve 00000000-0000-4000-8000-000000000004
chainabit chain run approve 00000000-0000-4000-8000-000000000004 --workspace 00000000-0000-4000-8000-000000000005 --yes

Built with purpose. chainabit.com