forc-wallet
A forc plugin for managing Fuel wallets.
forc-wallet: creating and signing with Fuel accounts
How do you hold a Fuel wallet on the command line? This forc plugin ships with the default fuelup toolchain and handles creation, deterministic account derivation, and signing.
Ships with fuelup
Forc plugins extend the Fuel toolchain, and this one covers wallet management. Installed through fuelup it lands alongside the default distributed toolchains, so anyone on a recent toolchain already has it and there is no separate install step. For most users the plugin is simply present from the start.
First step is creating a wallet
Accounts and signed transactions both need a wallet to exist first. Creating one asks for a password, which encrypts the wallet, and on completion the mnemonic phrase is shown for later recovery. That creation step is the prerequisite every account and transaction operation builds on.
Two credentials, two jobs
The password and the mnemonic are not interchangeable. The password handles signing and account derivation, while the mnemonic is the recovery path if the wallet is lost or moved. Losing either one breaks a different operation, which is worth knowing before you rely on the wallet for anything real.
Where accounts come from
Account derivation follows the Web3 Secret Storage Definition, and the plugin accepts wallet file paths that conform to that standard. Creating an account reveals the next account not yet derived locally, because every account is derived deterministically from the mnemonic and the derivation path. Derived public addresses are cached in the fuel accounts directory.
Signing a transaction
Signing takes a transaction ID and applies the wallet password chosen at creation. That closes the loop: create a wallet, derive accounts from the mnemonic, and sign with the password, all through one plugin.
Editorial conclusion
One plugin walks through wallet creation, deterministic account derivation, and transaction signing. A password does the signing work, a mnemonic holds the recovery path, and both come out of the initial creation step.
Community notes