Hệ thống đang bảo trì rà soát thông tin

Cách dùng metamask, hướng dẫn cài Đặt và sử dụng ví metamask

If you’re interested in the Ethereum ecosystem, you need an application like MetaMask. Far more than a simple wallet, it allows you to interact with websites that integrate Ethereum. 

MetaMask will let you connect khổng lồ decentralized applications from inside your browser (or through a mobile app). You can make trades without intermediaries và play games with fully-transparent code (so you know you aren’t being cheated).

Bạn đang xem: Cách dùng metamask, hướng dẫn cài Đặt và sử dụng ví metamask

Check out the guide below lớn get started!


Initialize the walletUnloông chồng the decentralized web


With Ethereum came the promise of a distributed Internet – the long-awaited Web 3.0. A level playing field characterized by a lachồng of central points of failure, true ownership of data, & decentralized applications (or DApps).
Such an infrastructure is steadily coming together with an industry-wide focus on Decentralized Finance (DeFi) and interoperability protocols that ayên to lớn bridge the various blockchains. It’s now possible to trustlessly exchange tokens & cryptocurrencies, take out crypto-backed loans, và even use Bitcoin on Ethereum.
For many Ethereum enthusiasts, MetaMask is the go-khổng lồ wallet. Unlike your regular điện thoại thông minh or desktop software, it comes packaged as a browser extension, allowing users to lớn directly interact with supporting webpages. In this article, we’ll explain how MetaMask works and walk you through getting started with it yourself.
MetaMask is an open-source Ethereum wallet that supports all kinds of Ethereum-based tokens (such as those following the ERC-20 standard, or non-fungible tokens). On top of that, you can receive them from others, or purchase/swap them with the built-in Coinbase và ShapeShift integrations.
What makes MetaMask so interesting is that it can interface with websites. With other wallets, you’d need to copy-paste payment addresses or scan a QR code on a separate device. With the MetaMask extension, the trang web simply pings your wallet, & you’re prompted to accept or reject the transaction.
MetaMask can serve as a regular crypkhổng lồ wallet, but its real strength is in seamlessly interfacing with smart contracts và decentralized applications. Let’s now look at how to mix it up.

Install MetaMask

The MetaMask wallet can be installed on Google Chrome, Firefox, or the Brave sầu Browser. It’s also available on iOS & Android, but we won’t cover that in too much depth. We’re going to lớn use Firefox throughout this tutorial, but your steps will be more or less identical, irrespective of the platform you’re using.

Head over to the official download page on metamask.io. Select your browser, which will take you to lớn the Chrome web store or the Firefox add-ons site. Click on the button lớn add the extension lớn your platform. You may need to lớn grant it some permissions before it’s up and running. Make sure you’re happy with the màn chơi of access it has to your browser – if you are, we’re good khổng lồ go.

If you’re anything lượt thích us, you’ll probably spover a good bit of time trying lớn make this guy dizzy with your cursor.

Once you’re done pestering the fox on the welcome page, cliông xã on Get Started. This is where you’ll be prompted to either import a seed phrase or create a new one. Cliông chồng on Create a Wallet. The next page asks whether you want lớn submit anonymized data to lớn help the devs improve the tiện ích. Piông chồng whichever option you prefer.
Now we need khổng lồ create a password. If you’re one of those legendary creatures that actually reads the user agreement for your software, you can view it by clicking on Terms of Use. Otherwise, come up with a svào password, tiông xã the box, và hit Create.
The following point is enough lớn warrant its own subheading. MetaMask is a non-custodial service, meaning that no one else can access your funds – not even the MetaMask developers. Your tokens exist in a sort of encrypted vault within your browser, protected by your password. That means that if your computer is lost, stolen, or destroyed, nobody can help you recover the wallet. Your private keys will be forever lost in the void of cyberspace.
So, it’s crucial that you write down your backup phrase. This is the only way you can restore your trương mục should something unfortunate happen. As suggested, we recommend that you write the words down và store them in two or three different locations. You don’t need lớn bury them in a fireproof safe deep in the forest, but hey, it can’t hurt.

When you get lớn the next page, the program anticipates that you may have been lazy with the previous step, because it asks you to lớn confirm the phrase. If you didn’t the first time, cliông xã Back and write it down!
Confirm the phrase, then proceed lớn the next step. Hit All Done, và you’ll see the wallet interface.
In this tutorial, we’re going khổng lồ be using the Ropsten testnet. It’s a network that functions almost exactly like the real Ethereum network, but its units have sầu no value. These come in handy when you’re developing contracts và want to lớn make sure that they don’t have sầu vulnerabilities that allow attackers to drain $50m in value. Every step we persize on this network today will be replicable on the real thing (except for the part where they gift us miễn phí ether, unfortunately).
To tune into lớn the Ropsten testnet, cliông chồng on Main Ethereum Network in the top right corner & select Ropsten Test Network.

There are lots of different testnets on Ethereum. If you’re wondering about the differences, check out this comparison.

We’re going khổng lồ use a faucet khổng lồ get some fake money lớn play with. Navigate khổng lồ this page on your Metamask-enabled browser khổng lồ get some.

You can cliông xã on the little fox icon at any time khổng lồ get a pop-up with your MetaMask account information (as we’ve sầu done in the GIF above). Hover over Account 1, & clichồng to lớn copy your Ethereum address khổng lồ the clipboard. Paste it inlớn the khung và hit Skết thúc me kiểm tra Ether.

Ethereum transactions are generally confirmed pretty quickly, but it might be a while before the 1 ETH lands in your wallet. Cheông xã khổng lồ see whether you’ve got it by clicking on the fox in your toolbar.

Since we’re on a testnet, we don’t have as big a selection of applications lớn play around with. For a comprehensive menu of mainnet decentralized applications, kiểm tra out State of the DApps or Dappradar. You can play games, buy one-of-a-kind assets, or place bets on prediction markets.

Xem thêm: Uptrend Là Gì - Downtrend Là Gì

We’re going khổng lồ use the DApp we demonstrated earlier. Uniswap is a decentralized exchange, or DEX, meaning that it allows us to lớn place trades without relying on intermediaries. The mechanisms underpinning it are pretty neat – check out What Is Uniswap & How Does It Work? if you’re interested in how it works.
Go ahead and access it here. In the top right-hand corner, you should see a prompt to lớn Connect khổng lồ a wallet. You’ll see this in some size on all MetaMask-compatible sites, as it doesn’t automatically connect for security reasons. Cliông xã on it, and you’ll be asked to select which wallet you’re using. In case you haven’t been following, that wallet will be MetaMask.

When a site first attempts lớn connect, a MetaMask dialog will appear, asking you khổng lồ confirm the action. You’ll be able lớn select an trương mục (we only have sầu one, for now, so leave sầu that as is) before verifying what permissions you’re about khổng lồ grant. In this case, as in many others, the site is requesting information on the wallet address your trương mục controls.

On MetaMask và privacy

It’s important lớn be mindful of what you’re permitting. If a website knows your address, they can see all of the ether và token transactions lớn & from it. What’s more, they can correlate it with your IP.. address.

Some prefer lớn segregate their addresses lớn prsự kiện any overlap, while others aren’t concerned with these risks (after all, the blockchain is public). The màn chơi of privacy you want to achieve ultimately depends on you. As a general rule, don’t grant access to lớn websites you don’t trust.
Time lớn make our first swap. We’ll be doing it for DAI, an ERC-trăng tròn token that serves as a stablecoin. Just lượt thích our ether, though, this DAI has no real-world value. Hit Select a token, add the Uniswap Default List, & then cliông chồng on DAI. Alternatively, you could also piông xã WETH (wrapped ether).
All that’s left khổng lồ bởi vì is to đầu vào the amount of ETH we want lớn swap. As we vì that, we’ll get an estimate of how much DAI we’ll receive. And we’re good lớn go! Hit Swap.

Complete the swap with MetaMask.

You’re once again prompted lớn take action in MetaMask. In this case, you need to lớn okay the transaction before it’s created. Make sure you’re happy with the fees when you’re doing this on the mainnet, as they can be significant.

After that, we just need to wait for the transaction lớn confirm!

Where are my tokens?

So your ether’s gone, but your trương mục doesn’t show your tokens. No need lớn panic – you have to add them manually.

For more popular tokens, you can select Add Token in your wallet & tìm kiếm for the name or ticker. For the less popular ones (or those on the testnet), we need khổng lồ add the contract address – an identifier that tells MetaMask where lớn look for our balance.

xuất hiện your wallet by clicking on the extension.Click on the three dots in the top bar.Select View on Etherscan.Under Overview, clichồng on the Token dropdown & select DAI.Under Protệp tin Summary, you should see a contract address. Hover over it và copy the address.Return to MetaMask và clichồng on Add Token.Cliông xã on the Custom Token tab.Paste what you’ve just copied inlớn the Token Contract Address form.The rest should autofill. Cliông chồng on Next, followed by Add Tokens.Return to the main overview lớn see your full balance.

Congrats! You’ve just interacted with your first DApp by trustlessly swapping ether for DAI. Everything you’ve learned can now be done in the real world. When you’re ready lớn play with mainnet applications, remember lớn switch baông xã from Ropsten khổng lồ the main network.

What else should I know?

MetaMask has some other neat features that we haven’t covered today. You can also connect a hardware wallet (Trezor and Ledger are both supported), create a liên hệ danh sách, &, of course, receive sầu and send funds as you would in a normal wallet. Cheông chồng out the settings to customize the extension to suit your needs.
Other than that, the usual security principles apply: MetaMask is a hot wallet, meaning that it runs on an internet-connected device. This exposes you lớn more risk than a cold wallet, which is kept offline to reduce attaông xã vectors.

Lastly, when using MetaMask, it stands khổng lồ reason that you should be conscious of what websites you’re granting access to.

The MetaMask app

The MetaMask Android/iPhone tiện ích provides a neat solution for interfacing with Web3 apps on the go. Boasting much of the same functionality as the extension, it integrates a DApp browser so you can access various decentralized applications at the touch of a button.


The MetaMask app’s browser.

The workflow of the application is very similar lớn that of the browser extension. You can make direct transfers of ether or tokens from your wallet, or even interact with Uniswap as we saw above sầu. 

Connecting lớn PoolTogether via a prompt within the app.

Closing thoughts

MetaMask is a powerful tool for browsing the decentralized website. If you’ve sầu followed along with the steps in this guide, then you’ve seen the wallet’s potential. Evidently, others have sầu, too: it currently boasts over a million users.

As the Ethereum staông chồng develops, applications lượt thích MetaMask will undoubtedly become integral components in the bridge between existing technologies & nascent cryptocurrency infrastructure.

Questions about MetaMask, Ethereum, or anything else? Head over to lớn Ask tradequangngai.com.vn, where the community will answer them.