current position:Home>Metamask and Web3 Relationship between account and wallet in JS

Metamask and Web3 Relationship between account and wallet in JS

2022-02-04 00:24:16 Q & A of Denglian community

1、 I installed. MetaMask after , You can create a lot of Account2、web3.eth.accounts.create() You can also create Account3、web3.eth.accounts.wallet.create() Can also be created Account

in addition , I call web3.eth.getAccounts() Only returned MetaMask Selected Account.

that , Excuse me, , these Account What is the relationship between ? What's the difference? ?

Thank you very much ~




Take the answer 1:

No difference , All valid accounts .

web3.eth.getAccounts() It's based on provider To get an account , You should call it on the front-end web page , It's connected here MetaMask Of provider.




copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202040024149617.html

Random recommended