Skip to main content
The terminal app is a full-screen app for your own integrator account, built on the Node client in hevn-inc/dapi-sdk. Run it from the 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

The app needs Node 22.18 or newer and an interactive terminal. It has no build step.

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.
With HEVN_ENV=production the app moves real money. Check the header before you sign.

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

Sandbox tools

In the sandbox the app adds three tools. They call the routes in Sandbox.

Next: Sub accounts