官术网_书友最值得收藏!

Installing Ganache

For developing a smart contract, people usually use Ganache. Ganache is a private, developmental Ethereum network that you can only use in the Ethereum development phase. The Truffle framework already includes the Ethereum blockchain network, which has the same purpose as Ganache. The difference between the two is that Ganache has a frontend GUI and a more user-friendly interface.

When you launch Ganache, you are equipped with 10 accounts, each filled with 100 ethers, which is the currency in Ethereum blockchain. As you will see later in this chapter, the concept of money (such as holding, sending, and receiving money, and tracking the balance) in Ethereum programming is important. You need to spend money in order to launch a smart contract in Ethereum blockchain. You can send money from an account to a smart contract, and a smart contract can, in turn, send money to other smart contracts or other accounts.

To download the software, go to the Ganache website: https://www.truffleframework.com/ganache. For the Linux platform, the software is called ganache-1.2.3-x86_64.AppImage. After downloading this, you must set the correct permission before executing it:

$ chmod a+x ganache-1.2.3-x86_64.AppImage
$ ./ganache-1.2.3-x86_64.AppImage

主站蜘蛛池模板: 二连浩特市| 岫岩| 遵化市| 临颍县| 阳江市| 永州市| 泸溪县| 来安县| 五莲县| 界首市| 和田县| 庆城县| 定边县| 池州市| 娱乐| 思茅市| 泗洪县| 荔波县| 皋兰县| 巢湖市| 红河县| 阳谷县| 平乡县| 栖霞市| 寿阳县| 塔河县| 雅安市| 锡林浩特市| 蒙山县| 宽城| 阳谷县| 红安县| 平塘县| 海城市| 随州市| 雷州市| 乐至县| 鹤庆县| 双桥区| 屯昌县| 北海市|