Hot answers tagged

2

You cannot get the private key from web3.eth.getAccounts() directly, but there's a few workarounds to do this with ganache: Specify a mnemonic phrase with the -m option, e.g. ganache-cli -m "stereo consider quality wild fat farm symptom bundle laundry side one lemon", this will derive private keys from the mnemonic phrase (with the derivation path ...


1

solved this way: const compile = require('../compile'); const interface = JSON.parse(compile).contracts["Inbox.sol"].Inbox.abi; const bytecode = JSON.parse(compile).contracts["Inbox.sol"].Inbox.evm.bytecode.object;


Only top voted, non community-wiki answers of a minimum length are eligible