Mist Key Points
This article describes how to install and use Geth and Mist, which allow you to mine or develop Ethereum software and control your own nodes and wallet keys to sign your own transactions instead of relying on third-party software.
In order to communicate with the Ethereum blockchain, we must use the blockchainclient. The client is responsible for broadcasting transactions, mining, signing messages and communicating with smart contracts.
At present, the most popular clients of Ethereum are Geth and Parity. They are all provided as command line tools with terminal consoles for blockchain operations.
As most people are not used to using command line tools, clients such as Mist are created extensions. They encapsulate the client's functionality in a user-friendly interface, allowing those who are not familiar with command line usage to participate in the network.
What is Mist?
Mist is a program that connects Geth in the background and also serves as the interface for the wallet.
Geth runtime, it synchronizes with the public blockchain by downloading all data. Mist is just a humanized interface to interact with Geth. In other words, Geth is both your node and your wallet, but without having to get the account balance through obscure commands such as web3.fromWei(eth.getBalance(eth.coinbase)) , Mist will provide the same in the UI information, and you don't even need to request it.
You can download Mist from this link. Download the version called Mist-installer instead of the Ethereum-Wallet version.
The difference between Mist-installer and Ethereum-wallet is that Mist itself is a web and Ethereum browser, and also a wallet interface. For security reasons, Ethereum-wallet deletes the browser function and only installs one DApp-wallet interface. Therefore, they are the same, but the latter has limited functionality.
The download file you choose depends on your operating system. macOS users will select the .dmg file, Windows users will select the .exe file, and Linux users will usually select the .deb file.
After the download is complete, run the installation process and then run the application. If you are not sure where it is installed, just enter its name in the OS's search bar:
Mist: First run
After the first run, Mist checks if it has the latest Geth installed on the same machine, and then checks for connections to the Ethereum network.
Mist then looks for peer nodes—the nodes it can connect to so that blockchain data can be downloaded from it.
After finding them, Mist starts downloading the large amount of data needed.
This can take several days, depending on the speed of your computer and internet connection. It doesn't have to be done all at once: you can turn it off and come back later, or leave it overnight. You can also start the application directly and wait for synchronization in the background while actually using the application.
After the synchronization is complete, Mist will ask which network to use: mainnet or testnet. Select any of them. It will also ask for your password unless you created an address in Geth before via the personal.newAccount command. This password will also protect your wallet, but don't forget it: it cannot be changed and cannot be restored. Choose wisely. The JSON files generated through this process are encrypted with this password and can then be imported into various wallet tools such as MetaMask, MyEtherWallet, and more. To get the JSON file (for backup purposes), go to the File -> Backup -> Account, Mist opens the folder containing the JSON file that is generated.
Mist: Address
After completing these initial steps, the home screen of the Mist application will be displayed. It will only display the address you just generated. This address is called the coinbase address, and when you mine on this machine, if the mining is successful, the address will get Ether.
To be able to use the features of Ether and Mist safely, if you are not connected to the test network, we need to switch to the test network. In the Development menu, go to Network -> Ropsten.
For instructions on the test network, please read this article. The point is that there are various public test networks for testing Ethereum software, but Ether on these networks is worthless and therefore there is no danger when doing reckless things and developing at will. Ropsten is such a network.
Feel free to use the Add account function to add more addresses. A Geth/Mist can maintain an unlimited number of addresses. The following figure shows the three generated addresses.
If we click on any of them, we will see some details.
The part next to the icon above the balance (the part starting with 0x90) is the address where we send Ether. But how do we get some Ether? If you are connected to the Ropsten network, you can use their faucet website: faucet.ropsten.be:3001/
Enter this address into the first field on the website and request some ether.
If your node is synchronized, the new balance should be displayed immediately. If not, close and reopen the app; sometimes it needs to be reset to resync properly.
Send and receive Ether
Send is very easy. Open the Send interface in Mist, put the receiving address into "Recipient", and select the sender under "Sender" (using the address where you sent Ether from the faucet).
You can select the sending speed at the bottom of the screen. Cheaper is slower. Press the Send button to send Ether and enter the password you selected earlier when inquiring.
In this example, we send 5 Ether from an address with 225 Ether to another address with 0 Ether. Ethereum should arrive immediately.
Contract
Mist allows easy and user-friendly deployment of smart contracts to the Ethereum blockchain. Two components of the Mist suite support this feature:
Remix is a web-based development environment for deploying smart contracts. Remix has syntax highlighting, code snippets, contract compilation and deployment script generation, and many other interesting features.
You can access remix by clicking Develop on the toolbar and then clicking "Open Remix IDE". You should see a window similar to this:
In Remix, you can write, compile and test your smart contracts. Once you are done, you can go back to Mist and open the Contracts tab from the Wallet page. You should see a screen like this
When you click Deploy a new contract, a set of inputs will be opened. You can paste your contract source code or bytecode in it and deploy it to the Ethereum network. Once done, you can interact with your contract.
Conclusion
Geth and Mist are essential tools for every ambitious Ethereum network participant. If you want to try mining or developing Ethereum software (ICO, token, DApp), or you just want to control your own nodes, thus controlling your own wallet keys, and signing your own transactions instead of relying on the 1st With three-party software, then installing and understanding Geth and Mist is definitely worth the effort.
Frequently Asked Questions about Ethereum Mist (FAQ)
Ethereum Mist is the user interface of Ethereum (a blockchain-based platform). It allows users to interact with the Ethereum blockchain, manage their Ethereum accounts, and create and execute smart contracts. It works by connecting to Ethereum nodes (local or remote) and providing a secure environment for transactions and contract execution.
To install Ethereum Mist, you need to download the latest version from the official GitHub repository. After downloading, unzip the file and run the executable file. Follow the on-screen instructions to complete the installation. Make sure your system meets the minimum requirements for running Ethereum Mist.
Yes, Ethereum Mist is safe. It is developed and maintained by the Ethereum Foundation, a nonprofit organization dedicated to supporting Ethereum and related technologies. However, like any software, be sure to stay updated and follow security best practices.
No, Ethereum Mist needs to be synchronized with the Ethereum network to work properly. This is because it requires downloading the entire blockchain to ensure that all transactions and contracts are up to date. However, you can use a light client mode that downloads only a small portion of the blockchain, which saves time and disk space.
To create a smart contract using Ethereum Mist, you need to write the contract using Solidity, a programming language for Ethereum. After writing the contract, you can use Ethereum Mist to deploy it to the Ethereum network. Then, whenever a contract receives a transaction, it executes according to its code.
Ethereum Mist and Geth are both tools for interacting with the Ethereum network, but they have different uses. Geth is the command line interface for running Ethereum nodes, while Ethereum Mist is the graphical user interface for managing accounts and contracts. You can use Geth with Ethereum Mist, which runs in the background, while Ethereum Mist provides a user-friendly interface.
To update Ethereum Mist, you need to download the latest version from the official GitHub repository and install it. The new version will replace the old version and your account and contract will be retained.
Yes, you can use Ethereum Mist on multiple devices. However, you need to sync the blockchain on each device, which can take a lot of time and disk space. Alternatively, you can use remote nodes to avoid synchronizing the blockchain on each device.
To back up your Ethereum Mist wallet, you need to copy the keystore file that contains your private key. This file is located in the Ethereum directory on your computer. Make sure to keep this file properly, as anyone with access to this file has control over your Ethereum account.
If you have an Ethereum Mist problem, you can seek help from the Ethereum community. There are many resources available, including the official Ethereum Forum, Ethereum Stack Exchange and Ethereum subreddit. You can also report issues on the Ethereum Mist GitHub page.
The above is the detailed content of Ethereum: Introducing Mist, a Human-friendly Geth Interface. For more information, please follow other related articles on the PHP Chinese website!