New answers tagged

1

First of all, you can always specify the account with which you want to interact with the contract, using the from keyword, e.g., instance.someFunction({from: accounts[0]}). Second, you can edit the default address in the truffle-config.js file at networks.advanced.from, which equals to accounts[0] per default.


0

This is a possible method, directly calling the JSON RPC method personal_listWallets: async function listWallets() { try { const result = await sendRPC_personal_listWallets(); console.log(typeof result); return result; } catch (e) { return e; } } function sendRPC_personal_listWallets() { return new Promise((...


Top 50 recent answers are included