forc-wallet
A forc plugin for managing Fuel wallets.
Quickstart
To install forc-wallet
you can use cargo install
:
Initialize
Before creating accounts and signing transactions with them you need to initialize a new HD wallet. To do so:
This will require a password for encyrpting the wallet. After the initialization is done you will be given the mnemonic phrase of the wallet.
Create an account
To create an account for the initialized wallet, you can run:
This will require your wallet password (the one that you choosed in the initialization step). This will always derive the next account.
Sign a transaction
To sign a transaction, you need to have the transaction ID. You can generate a transaction and get its ID using forc-client
. Signing the transaction once you have the ID is simple:
Other useful commands
List accounts
To list all accounts derived so far:
Get address of an account
To retrieve the address of a specific account, you can use: