1.11.4 • Published 2 years ago
@ledgerhq/walletd-manager v1.11.4
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 | :heavy_check_mark: | ledger1 | Target workspace |
--wdPgHost | :heavy_check_mark: | localhost | WD Postgres host |
--wdPgPort | 15432 | WD Postgres port | |
--wdPgUser | :heavy_check_mark: | vault | WD Postgres user |
--wdPgPw | vault | Gate Postgres password | |
--libcoreDBPrefix | :heavy_check_mark: | libcore_ | libcore database prefix |
get-seed-accounts
Collect accounts to seed from the Gate
Option | Required | Default value | Description |
---|---|---|---|
--workspace | :heavy_check_mark: | ledger1 | Target workspace |
--gatePgHost | :heavy_check_mark: | localhost | Gate Postgres host |
--gatePgPort | 15432 | Gate Postgres port | |
--gatePgDB | :heavy_check_mark: | gate | Gate Postgres database |
--gatePgUser | :heavy_check_mark: | 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 | :heavy_check_mark: | ledger1 | Target workspace |
--libcoreDBPrefix | :heavy_check_mark: | libcore_ | libcore database prefix |
--libcoreDBOwner | :heavy_check_mark: | 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 | :heavy_check_mark: | http://localhost:9200 | wallet-daemon URL |
--wdLegacyAuthToken | :heavy_check_mark: | ledger1 | wallet-daemon authentication token |
--wdPgHost | :heavy_check_mark: | localhost | WD Postgres host |
--wdPgPort | 15432 | WD Postgres port | |
--wdPgUser | :heavy_check_mark: | 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 | :heavy_check_mark: | ledger1 | Target workspace |
--gatePgHost | :heavy_check_mark: | localhost | Gate Postgres host |
--gatePgPort | 15432 | Gate Postgres port | |
--gatePgDB | :heavy_check_mark: | gate | Gate Postgres database |
--gatePgUser | :heavy_check_mark: | vault | Gate Postgres user |
--gatePgPw | vault | Gate Postgres password | |
--cgURL | :heavy_check_mark: | http://localhost:9090 | coin-gateway URL |
--coin | :heavy_check_mark: | bitcoin | Account coin |
reseed-account
Wipe & Sync a WD account from the given timestamp
Option | Required | Default value | Description |
---|---|---|---|
--accountID | :heavy_check_mark: | NaN | Gate account ID |
--sinceTimestamp | undefined | Reseed from timestamp | |
--sinceDays | undefined | Reseed since the given number of days | |
--workspace | :heavy_check_mark: | ledger1 | Target workspace |
--wdURL | :heavy_check_mark: | http://localhost:9200 | wallet-daemon URL |
--wdLegacyAuthToken | :heavy_check_mark: | ledger1 | wallet-daemon authentication token |
--gatePgHost | :heavy_check_mark: | localhost | Gate Postgres host |
--gatePgPort | 15432 | Gate Postgres port | |
--gatePgDB | :heavy_check_mark: | gate | Gate Postgres database |
--gatePgUser | :heavy_check_mark: | 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 | :heavy_check_mark: | ledger1 | Target workspace |
--wdDBName | wallet_daemon | WD DB name | |
--wdPgHost | :heavy_check_mark: | localhost | WD Postgres host |
--wdPgPort | 15432 | WD Postgres port | |
--wdPgUser | :heavy_check_mark: | vault | WD Postgres user |
--wdPgPw | vault | Gate Postgres password | |
--libcoreDBPrefix | :heavy_check_mark: | 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 | :heavy_check_mark: | ledger1 | Target workspace |
--wdPgHost | :heavy_check_mark: | localhost | WD Postgres host |
--wdPgPort | 15432 | WD Postgres port | |
--wdPgUser | :heavy_check_mark: | vault | WD Postgres user |
--wdPgPw | vault | Gate Postgres password | |
--libcoreDBPrefix | :heavy_check_mark: | libcore_ | libcore database prefix |