@ldgr/cli
v0.4.0
Published
LDGR's self-custody terminal wallet. Version 0.4.0 creates or imports local wallets, lets you select between them, shows addresses and balances, sends native Ledra or a token, and persistently switches the selected wallet between mainnet and testnet.
Readme
@ldgr/cli
LDGR's self-custody terminal wallet. Version 0.4.0 creates or imports local wallets, lets you select between them, shows addresses and balances, sends native Ledra or a token, and persistently switches the selected wallet between mainnet and testnet.
npm install -g @ldgr/cli
ldgr wallet create
ldgr wallet import ~/Downloads/ldgr-recovery-key.txt
ldgr wallet export ~/Desktop/ldgr-recovery-key.txt
ldgr wallet list
ldgr wallet select 2
ldgr address
ldgr balance
ldgr send ldgr1… 2.5
ldgr send-token t1abcdef01234567 ldgr1… 10
ldgr network show
ldgr network set testnetThe default owner-only wallet store lives at ~/.ldgr/wallet.json. Pass --wallet <path> to any command to use a different store. On first use, an existing ~/.config/ldgr/wallet.json store is validated, copied to the new owner-only location, and removed from its former location; an explicit --wallet path is never moved. On Windows, the CLI uses the native USERPROFILE/APPDATA locations and path separators, and relies on the file's native ACLs instead of POSIX mode bits. At creation/import you can choose passphrase protection or an unprotected wallet, which follows the extension model and relies only on the local file's permissions. wallet list shows one-based indexes and marks the active wallet; wallet select <index> changes it without exposing a secret. wallet export <path> writes an owner-only ldgr-recovery-key.txt file containing the raw recovery-key value accepted by the extension; wallet import <path> reads the same file. --testnet is available only when creating or importing a wallet; use network set testnet for an existing wallet. Testnet prints a warning on every wallet command and only uses https://tst.ldgr.ltd.
