Truffle provides an HD wallet-enabled web3 provider. You can use it to sign transactions for addresses derived from a 12-word mnemonic. In this recipe, you will learn how to use the HD wallet in your Truffle application.
Using HD wallet in Truffle
Getting ready
You need to have Truffle installed on your machine to try this recipe. Sending a transaction requires connection to an Ethereum network. You can use Ganache, geth, Parity, or even INFURA as the network.
How to do it...
- Truffle distributes HD wallet through npm. Use the regular install command to get it:
npm install...