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.
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
The sidebar is recommended
- Android Ethereum wallet creates account, key and keystore locally. How to trade with the account on the private chain node
- How to realize cross-border remittance
- Remix suddenly lost connection
- Are TX fee and gas fee the same thing
- The BNB token transfer method is executed in the contract and reports an error
- The replica uses truffle to construct the notebook on the chain. Calling the function on the web side always returns invalid address
- No problem in JS VM environment. This error will be reported in the test transfer after deployment to the local private chain
- Deal initiated by defi
- Can't the memory type use push
- How to instantiate Web3 in the latest version of metamask
guess what you like
On the visibility of code and data of smart contract
[Beijing / remote] recruitment of rust / solidity engineers for the new layer 2 project of blockchain
Hardhat solidity has different versions and cannot be compiled normally
After the pet store runs the NPM run dev command, the web page cannot be fully displayed
Job opportunities - looking for talents with doctor's degree + overseas experience. Position: blockchain pre-sales Solution Expert (blockchain national team + Tencent Department investment)
How to comprehensively use multiple smart contract formal verification tools to maximize their effect
Echo framework problem
Eth smart contract
How to pull up metamask and authorize a contract to use my wallet
How to view the contents in input data and how to fill in parameters when translating to JS
- Is the difficulty of each block of Ethereum a set in the future? Can I change it?
- About the contractual relationship of succession
- Is there a guidance group for the study course
- About contract acceptance erc721
- Geth upgrade
- How to get the tokenid and index of NFT?
- Web3. JS how to set transaction value in Remix
- Error: Can not send value to non-payable contract method or constructor
- About Ethereum strategy selection and testing
- Truffle deploys multiple contracts
- Contract return array type
- Arbitrum environment construction
- Practice storing names and ages in DAPP on the blockchain and find problems
- Uncaught (in promise) TypeError: Cannot read property 'length' of null
- Of erc721_ What kind of resources does the setbaseuri function set?
- How to build uinswap info page, can you give me some advice?
- In the Ethereum blockchain, can ordinary participating nodes (non consensus accounting nodes) call smart contracts to complete logical operations?
- How to get apy from pairs in uniswap
- Tiny said that there is no apy concept in the uniswap flow pool, so how to calculate and obtain many LP benefits.
- Problems in building arbitrum environment
- Web3 environmental issues
- Websocket connection of geth
- Paid demand is a simple trading tool
- Use Web3 Py failed to call the contract function, but there is no problem using Remix call. What's going on?
- Chainlink Oracle problem
- Why is the price data type returned by the price feed of chainlink int?
- How to use erc20 snapshot plug-in contract to realize trustless dividend? Is there a case for reference
- Is there an interface in web3js to obtain the public key directly from the private key? It's Web3 shh. Getpublickey? I call direct error reporting. There is no such method
- Ethers connects the contract, calls name() and reports sending a transaction requires a signer
- Did you participate in the 2021 Huawei blockchain university competition together? The VIP channel of school recruitment & internship, 150000 bonus pool, the reward looks very good
- If there is a problem with the geth console deployment contract, copy it to the geth console and enter the prompt cannot read property 'deploy' of undefined
- ethers. JS tutorial consultation, ethers JS contains ethereumjs wallet?
- On the issue of using router contract to remove liquidity in BSC
- Wallet development case consultation
- Why is there no @ openzeppelin library?
- There was an error in the demo of practicing storing the name and age on the blockchain
- After the chainlink node is built on the mathchain network, the client smart contract cannot be deployed
- Ask the teacher a related question
- Why can't the pool of liquidity be removed
- Tron always fail - transaction reverse