Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

xquad quip

xquad quip manages Quip accounts and reads the job orders they placed on a Quip network. It is a front end over the xqsa.quip Python API that Quip Network and Job Orders describe; it places no orders itself. Submit orders from Python, then follow them from the shell.

CommandDescription
account listThe keystores found, the order that picks the signer, and how to change it.
account showThe account in effect: its source, balance, reserved amount and order slots.
account newCreate a keystore with a fresh seed, and use it.
account importCreate a keystore from a seed you already have, and use it.
account usePrefer an account at a level, or clear the preference.
ordersThe account’s orders not yet closed, one line each.
statusOne order’s receipt.
reclaimRecover the reward of a final order nobody answered.

Installation

The group needs the quip extra, which brings in the chain client and the signing extension:

pip install 'xquad[quip]'

Without it, every xquad quip command, and --help below the group level, prints this on stderr and exits 1, while xquad quip --help, xquad --help and xquad vm keep working:

`xquad quip` needs the Quip extra: `pip install 'xquad[quip]'`

Global options

These go between quip and the command, as in xquad quip --network aglais account show:

FlagMeaning
--network NAMEA named network preset, such as aglais (see Named networks).
--url URLA node’s RPC URL. Defaults to QUIP_RPC_URL.
--keystore PATHSign with this keystore, over every preference.
--jsonPrint one JSON object on stdout instead of text.

--network and --url are exclusive. A command that reads the chain needs one of them, or QUIP_RPC_URL:

Error: name a network with --network or a node with --url, or set QUIP_RPC_URL

account list, account new, account import and account use work on local files only and need no network.

What signs

Only reclaim sends a transaction, and only it spends anything: each reclaim pays its own fee. account show, orders and status read through a read-only client that resolves no signer, so they never create a keystore. Under QUIP_SIGNER_SEED, account show and orders still build a signer, to learn which account the seed is; they sign nothing with it. account new, account import and account use write files under .quip/ or ~/.quip/ and touch no chain.

Output and exit codes

With --json, a command prints exactly one JSON object on stdout. Accounts are SS58 text and amounts are integers in planck; the text output formats amounts in the network’s token instead. --json is an option of the group, so it goes before the command: xquad quip --network aglais --json account show. Errors go to stderr prefixed Error:, in both modes. The no-account error carries the account list guidance under it, and a usage error prints a Usage: line above it; the per-order lines of reclaim --all and the missing-extra hint have no prefix.

Exit codeMeaning
0Success.
1The command failed: a chain or account error, the missing extra, no account set up, or a reclaim --all in which some order was not reclaimed.
2A usage error, such as an unknown flag or --network with --url.