@0xfps/voidcli
v0.0.1
Published
A command line interface for the Void protocol.
Readme
Void CLI
A very simple CLI interface to interact with the Void protocol.
void <command> <options>
Commands and Options
start
--rpc-url: Set RPC URL.
--private-key: Set private key for transaction signing.
balance
--token: Asset to get balance of, if not passed, defaults to $VOID on the chain.
--address: Address to get balance.
generate-keys
--secret-key: Set user defined secret key.
--auto-gen: Auto generate secret key, overrides --secret-key.
--amount: Amount to generate key for.
--output-folder: Folder to write keys to.
swap
--token: Asset to swap to $VOID.
--amount: Amount to swap to $VOID.
--receiver: Address to receive defaults to user.
redeem
--token: Asset to swap $VOID to.
--amount: Amount of $VOID to swap.
--receiver: Address to receive defaults to user.
key-data
--key: Key
--from: JSON file, crated by generate-keys to read deposit keys from, overrides --keys.
deposit
--deposit-keys: A space separated list of deposit keys.
--from: JSON file, crated by generate-keys to read deposit keys from, overrides --deposit-keys.
withdraw
--withdrawal-key: Withdrawal Key.
--secret-key: Secret key linked with withdrawal key.
--recipient: Address to receive $VOID.
--amount: Amount to withdraw.
--all: Amount to withdraw overrides --amount.
How to Use
Step 1: Install void-cli.
npm install -g voidStep 2: Start the tool.
voidAll options are optionally passed. When one option is missing or all are missing, Void will prompt you to fill out the skipped options individually.
