当前位置:网站首页>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 .
边栏推荐
- Biped robot controlled by Arduino
- Test case management tool recommendation
- centos7安装mysql笔记
- Solidity函数学习
- Seaborn data visualization
- LeetCode 312. Poke balloon daily
- dapp丨defi丨nft丨lp单双币流动性挖矿系统开发详细说明及源码
- [fan Tan] after the arrival of Web3.0, where should testers go? (ten predictions and suggestions)
- 鲲鹏开发者峰会2022 | 麒麟信安携手鲲鹏共筑计算产业新生态
- 【饭谈】如何设计好一款测试平台?
猜你喜欢

User defined view essential knowledge, Android R & D post must ask 30+ advanced interview questions

Module VI
最新高频Android面试题目分享,带你一起探究Android事件分发机制

Matplotlib绘制三维图形

QML beginner

【图像传感器】相关双采样CDS

A tour of grpc:03 - proto serialization / deserialization

管理VDI的几个最佳实践

科普达人丨一文弄懂什么是云计算?

自定义View必备知识,Android研发岗必问30+道高级面试题
随机推荐
99% 用户在 Power BI 云端报表常犯错误
Module VI
99% of users often make mistakes in power Bi cloud reports
skimage学习(3)——使灰度滤镜适应 RGB 图像、免疫组化染色分离颜色、过滤区域最大值
QT中自定义控件的创建到封装到工具栏过程(一):自定义控件的创建
一文读懂数仓中的pg_stat
Solidity 开发环境搭建
Is AI more fair than people in the distribution of wealth? Research on multiplayer game from deepmind
【饭谈】如何设计好一款测试平台?
The process of creating custom controls in QT to encapsulating them into toolbars (II): encapsulating custom controls into toolbars
LeetCode 213. Home raiding II daily question
[fan Tan] those stories that seem to be thinking of the company but are actually very selfish (I: building wheels)
防火墙系统崩溃、文件丢失的修复方法,材料成本0元
LeetCode 1696. Jumping game VI daily question
skimage学习(2)——RGB转灰度、RGB 转 HSV、直方图匹配
LeetCode 1186. 删除一次得到子数组最大和 每日一题
QT中自定义控件的创建到封装到工具栏过程(二):自定义控件封装到工具栏
LeetCode 1155. 掷骰子的N种方法 每日一题
mysql实现两个字段合并成一个字段查询
LeetCode 1626. 无矛盾的最佳球队 每日一题








