cli/ directory of that repository with npm start.
It reads balances, sub accounts, contacts, virtual accounts and the ledger, and it books payouts, moves and swaps that your developer key signs. Like the Node client, it is unsupported (HTTP client).
Scope
The app operates the account the developer key belongs to: its main wallet and its sub accounts.Run
Environment
A value set in the process environment wins over the file named by
--env-file. No file is loaded from the working directory unless you name it.
The header shows the API host and the environment: a sandbox mark, or a red production banner. The production API host counts as production whatever HEVN_ENV is.
Signing
Each payout, move and swap opens a prompt with the source account and its address, the destination, the amount and token, the fee ceiling and the minimum received.Esc cancels. Enter signs in the sandbox. In production you press y, or type the amount when the debit is not exact.
A payout to a bank contact is sent through a virtual account of the paying account, and the app sends its
bankId (Virtual account of a payout). With no such virtual account, the app stops before the review and offers to request one.
Each action has one Idempotency-Key, kept for its retries. Once a signature is posted, the app offers a retry with the same key or the ledger, until the payment has a final status (Retrying a confirm).