@ledgerhq/walletd-manager

1.11.4 • Public • Published

walletd-manager

A various utility tool to call WD endpoints

Usage

$ walletd-manager --help
$ walletd-manager <command>
$ walletd-manager <command> --help

Commands

summary

Get informations on the target WD

Option Required Default value Description
--workspace ✔️ ledger1 Target workspace
--wdPgHost ✔️ localhost WD Postgres host
--wdPgPort 15432 WD Postgres port
--wdPgUser ✔️ vault WD Postgres user
--wdPgPw vault Gate Postgres password
--libcoreDBPrefix ✔️ libcore_ libcore database prefix

get-seed-accounts

Collect accounts to seed from the Gate

Option Required Default value Description
--workspace ✔️ ledger1 Target workspace
--gatePgHost ✔️ localhost Gate Postgres host
--gatePgPort 15432 Gate Postgres port
--gatePgDB ✔️ gate Gate Postgres database
--gatePgUser ✔️ vault Gate Postgres user
--gatePgPw vault Gate Postgres password

seed

Create WD DB, create accounts & sync them

Option Required Default value Description
--concurrency 5 Accounts sync concurrency
--fromFile undefined Use the given JSON file describing accounts to seed
--workspace ✔️ ledger1 Target workspace
--libcoreDBPrefix ✔️ libcore_ libcore database prefix
--libcoreDBOwner ✔️ vault libcore database owner
--gatePgHost localhost Gate Postgres host
--gatePgPort 15432 Gate Postgres port
--gatePgDB gate Gate Postgres database
--gatePgUser vault Gate Postgres user
--gatePgPw vault Gate Postgres password
--wdURL ✔️ http://localhost:9200 wallet-daemon URL
--wdLegacyAuthToken ✔️ ledger1 wallet-daemon authentication token
--wdPgHost ✔️ localhost WD Postgres host
--wdPgPort 15432 WD Postgres port
--wdPgUser ✔️ vault WD Postgres user
--wdPgPw vault Gate Postgres password

lama-seed

Create accounts in LAMA Scheduler through Coin Gateway from those of a gate

Option Required Default value Description
--workspace ✔️ ledger1 Target workspace
--gatePgHost ✔️ localhost Gate Postgres host
--gatePgPort 15432 Gate Postgres port
--gatePgDB ✔️ gate Gate Postgres database
--gatePgUser ✔️ vault Gate Postgres user
--gatePgPw vault Gate Postgres password
--cgURL ✔️ http://localhost:9090 coin-gateway URL
--coin ✔️ bitcoin Account coin

reseed-account

Wipe & Sync a WD account from the given timestamp

Option Required Default value Description
--accountID ✔️ NaN Gate account ID
--sinceTimestamp undefined Reseed from timestamp
--sinceDays undefined Reseed since the given number of days
--workspace ✔️ ledger1 Target workspace
--wdURL ✔️ http://localhost:9200 wallet-daemon URL
--wdLegacyAuthToken ✔️ ledger1 wallet-daemon authentication token
--gatePgHost ✔️ localhost Gate Postgres host
--gatePgPort 15432 Gate Postgres port
--gatePgDB ✔️ gate Gate Postgres database
--gatePgUser ✔️ vault Gate Postgres user
--gatePgPw vault Gate Postgres password

wipe

Wipe or drop libcore DB & remove references of it in WD db

Option Required Default value Description
--workspace ✔️ ledger1 Target workspace
--wdDBName wallet_daemon WD DB name
--wdPgHost ✔️ localhost WD Postgres host
--wdPgPort 15432 WD Postgres port
--wdPgUser ✔️ vault WD Postgres user
--wdPgPw vault Gate Postgres password
--libcoreDBPrefix ✔️ libcore_ libcore database prefix
--redisDBName undefined Redis DB name
--redisHost undefined Redis host
--redisPort 16379 Redis port
--wipeMode TRUNCATE Wipe mode (either [32mTRUNCATE[39m, [33mDROP[39m or [31mNUKE[39m)
  - [32mTRUNCATE[39m: Truncates libcore DB, leaving schema intact and clearing values
  - [33mDROP[39m: Drops libcore DB including schemas and values
  - [31mNUKE[39m: Drops both libcore and walletd DBs, only when scrapping environment

corrupt

(for testing purposes) Corrupt UTXOs data in libcore database

Option Required Default value Description
--workspace ✔️ ledger1 Target workspace
--wdPgHost ✔️ localhost WD Postgres host
--wdPgPort 15432 WD Postgres port
--wdPgUser ✔️ vault WD Postgres user
--wdPgPw vault Gate Postgres password
--libcoreDBPrefix ✔️ libcore_ libcore database prefix

Readme

Keywords

none

Package Sidebar

Install

npm i @ledgerhq/walletd-manager

Weekly Downloads

15

Version

1.11.4

License

BSD-2-Clause

Unpacked Size

15.9 kB

Total Files

18

Last publish

Collaborators

  • ledger-releaser
  • thomas.coudray
  • ldg-github-ci
  • aboissiere
  • vbouzon
  • gbrahm-ledger
  • sergii-shkolin
  • phenry-ledger