I want to execute signed Ethereum transactions from a NodeJS program. I am creating a web3_provider like this
var contract = require("truffle-contract"); var provider = new HDWalletProvider("nemonic", "https://rinkeby.infura.io/xxxxx"); // if I change the above line to: var provider = new Web3.providers.HttpProvider("https://rinkeby.infura.io/xxxxx"); // Everything works fine var web3 = new Web3(provider); var myContract = contract(myABI); myContract.setProvider(web3.currentProvider);
When I try to execute transactions w/ HDWalletProvider, I get the error: "Account not found". Has anyone been able to use HDWalletProvider to successfully execute signed transactions? Or am I using it incorrectly?