This repo contains a collection of tools for interacting with Askar wallets.
- Wallet(s) must be of type Askar.
To install the dependencies for this project using pnpm
, run:
pnpm install
Perform various operations on wallets using the askar-tools-javascript command.
Export a tenant wallet to a JSON file:
pnpm cli --strategy export \
--wallet-id <wallet-id> \
--wallet-key <wallet-key> \
--storage-type <sqlite|postgres> \
[--postgres-host <host>] \
[--postgres-username <username>] \
[--postgres-password <password>] \
--tenant-id <tenant-id>
Convert profiles in a sub-wallet to individual wallets:
pnpm cli --strategy mt-convert-to-mw \
--wallet-id <wallet-id> \
--wallet-key <wallet-key> \
--storage-type <sqlite|postgres> \
[--postgres-host <host>] \
[--postgres-username <username>] \
[--postgres-password <password>] \
--tenant-id <tenant-id>
--strategy <strategy>
: Choose frommt-convert-to-mw
, orexport
.--storage-type <type>
: Choose fromsqlite
orpostgres
.--wallet-id <walletName>
: Specify the wallet ID.--wallet-key <walletKey>
: Specify the wallet key.--postgres-host <host>
: Specify the PostgreSQL host (optional).--postgres-username <username>
: Specify the PostgreSQL username (optional).--postgres-password <password>
: Specify the PostgreSQL password (optional).--tenant-id <id>
: Specify the tenant ID.