当前位置:网站首页>Establishment of solid development environment
Establishment of solid development environment
2022-07-07 17:24:00 【Hua Weiyun】
Catalog
How to write smart contracts on Ethereum
Set up the development environment
How to write smart contracts on Ethereum
It is one of the most popular languages for developing Ethereum smart contracts , therefore , As a person who wants to become a blockchain developer , Need to learn how to use Solidity Develop smart contracts .
Set up the development environment
We're going to use IDE yes , Type in the browser . After completion , You should see an interface similar to the following :
On the left side , I chose two main components . The first icon is the file browser , Here you can see all your Solidity file , The second icon is the plug-in manager , From which you can add new plug-ins . We will need to add two plug-ins , So click the plug-in manager Icon , Then input “ Solidity compiler( compiler )”. Then by clicking “Activate” Activate it , And do the same to add “Deploy and run transactions( Deploy and run transactions )” plug-in unit .
“ Solidity compiler( compiler )” Tab will allow you to configure compiler parameters and compile smart contracts , and “Deploy and run transactions( Deploy and run transactions )” The tab will allow you to deploy and interact with smart contracts in the blockchain . The list of icons should now look like this :
The first thing to do is to check “ compiler ” Tab “ Automatic compilation ” Options . Next , We will configure Remix To use files in local storage .
Use the following command to install remixd:
After installation , You can create a folder , Saved in it Solidity file , Then run the following command to tell Remix Use the files in the folder :
Now turn to Remix The home page of , single click “Connect to localhost( Connect to local host )”, Then select... In the pop-up window “(connet) Connect ”.
And then in “File explorer( File explorer )” Under the tab, you can see a file named localhost Region . Expand it , You will see all the files contained in the shared folder from the local storage :
Have the tool to start writing the first smart contract
Remix It will provide you with a virtual blockchain environment running in the browser , First use it to deploy the contract and interact with it . Just make sure it's in “Deploy and run( Deploy and run )” Tab Javascript VM As an environment
Write a contract
Deploy
single click “Deploy and run transactions( Deploy and run transactions )” tab , Then make sure you choose JavaScript VM, And select the contract name in the contract area . After completion , single click “Deploy( Deploy )”
Now? , You can “Deployed Contracts( Deployed contract )” See your contract under the area .
Expand it , You will see helloWorld function .
Click it to send the transaction that calls this function , You will see the print out hello world character string .
边栏推荐
- [Huang ah code] Why do I suggest you choose go instead of PHP?
- Pisa-Proxy SQL 解析之 Lex & Yacc
- LeetCode 1031. 两个非重叠子数组的最大和 每日一题
- LeetCode 1981. 最小化目标值与所选元素的差 每日一题
- LeetCode 312. Poke balloon daily
- Skimage learning (3) -- adapt the gray filter to RGB images, separate colors by immunohistochemical staining, and filter the maximum value of the region
- Skimage learning (2) -- RGB to grayscale, RGB to HSV, histogram matching
- skimage学习(1)
- QML初学
- LeetCode 1477. Find two subarrays with sum as the target value and no overlap
猜你喜欢

浅浅理解.net core的路由

如何选择合适的自动化测试工具?

Skimage learning (2) -- RGB to grayscale, RGB to HSV, histogram matching

Master this promotion path and share interview materials

QML beginner

QML初学

QT中自定义控件的创建到封装到工具栏过程(一):自定义控件的创建

A tour of grpc:03 - proto serialization / deserialization

Lowcode: four ways to help transportation companies enhance supply chain management

Seaborn data visualization
随机推荐
Arduino 控制的双足机器人
【饭谈】如何设计好一款测试平台?
Sator a lancé le jeu web 3 "satorspace" et a lancé huobi
LeetCode 1031. Maximum sum of two non overlapping subarrays
QT中自定义控件的创建到封装到工具栏过程(一):自定义控件的创建
管理VDI的几个最佳实践
最新高频Android面试题目分享,带你一起探究Android事件分发机制
Read PG in data warehouse in one article_ stat
Matplotlib绘制三维图形
LeetCode 300. 最长递增子序列 每日一题
LeetCode 120. 三角形最小路径和 每日一题
How to add aplayer music player in blog
【黄啊码】为什么我建议您选择go,而不选择php?
测试用例管理工具推荐
How to implement safety practice in software development stage
Solidity 开发环境搭建
直接上干货,100%好评
防火墙系统崩溃、文件丢失的修复方法,材料成本0元
PLC: automatically correct the data set noise, wash the data set | ICLR 2021 spotlight
麒麟信安操作系统衍生产品解决方案 | 存储多路径管理系统,有效提高数据传输可靠性








