Not sure I understand the question. I deployed my contract on the local truffle develop, and I want to send some of the native test ether to my metamask account, so that I can interact with the smart contracts on the front end. Is this helpful?
You’re getting this error because truffle doesn’t recognize accuonts[0] as a valid signer for the transaction. It is common to assign accounts with the output of web3.eth.getAccounts(), and I suspect you skipped that step. Hence my question: where do you define accounts?
Or do I need to define the accounts variable to store the output of web3.eth.getAccounts() in the terminal first before trying to send that transaction?
That’s right, truffle console’s execution context is isolated from your webapp, they’re two different programs. You have to define accounts in truffle console in order to reference it from there.