I'm trying to create a new account using this script:
let account = web3.eth.accounts.create();
It will return me something like this:
{
address: "0xb8CE9ab6943e0eCED004cDe8e3bBed6568B2Fa01",
privateKey: "0x348ce564d427a3311b6536bbcff9390d69395b06ed6c486954e971d960fe8709",
signTransaction: function(tx){...},
sign: function(data){...},
encrypt: function(password){...}
}
So I'm having some questions:
- Will I be able to use this account to send and receive token (via Metamask maybe) ?
- What is the different between
web3.eth.accounts.create()
andweb3.eth.personal.newAccount(password, [callback])
? - Does Web3JS provide a way for us to automatically transfer and receive tokens ?
I'm new and really need some helps. Every answer will be highly appreciated. Thank u so much !!!