当前位置:网站首页>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 .
边栏推荐
- LeetCode 213. 打家劫舍 II 每日一题
- 99% 用户在 Power BI 云端报表常犯错误
- 如何在软件研发阶段落地安全实践
- LeetCode 1155. N ways to roll dice one question per day
- 测试用例管理工具推荐
- 编程模式-表驱动编程
- [video / audio data processing] Shanghai daoning brings you elecard download, trial and tutorial
- Sator a lancé le jeu web 3 "satorspace" et a lancé huobi
- Flask搭建api服务-生成API文档
- LeetCode 1186. Delete once to get the sub array maximum and daily question
猜你喜欢
SlashData开发者工具榜首等你而定!!!
PLC:自动纠正数据集噪声,来洗洗数据集吧 | ICLR 2021 Spotlight
麒麟信安操作系统衍生产品解决方案 | 存储多路径管理系统,有效提高数据传输可靠性
QT 图片背景色像素处理法
Sator推出Web3游戏“Satorspace” ,并上线Huobi
科普达人丨一文弄懂什么是云计算?
Seaborn数据可视化
User defined view essential knowledge, Android R & D post must ask 30+ advanced interview questions
AI来搞财富分配比人更公平?来自DeepMind的多人博弈游戏研究
SlashData开发者工具榜首等你而定!!!
随机推荐
The server is completely broken and cannot be repaired. How to use backup to restore it into a virtual machine without damage?
浅浅理解.net core的路由
mysql使用笔记一
管理VDI的几个最佳实践
【饭谈】那些看似为公司着想,实际却很自私的故事 (一:造轮子)
How to choose the appropriate automated testing tools?
LeetCode 312. Poke balloon daily
Sator a lancé le jeu web 3 "satorspace" et a lancé huobi
First in China! Todesk integrates RTC technology into remote desktop, with clearer image quality and smoother operation
LeetCode 1774. The dessert cost closest to the target price is one question per day
LeetCode 152. 乘积最大子数组 每日一题
【Seaborn】组合图表:FacetGrid、JointGrid、PairGrid
rpcms获取指定分类下的文章的方法
服务器彻底坏了,无法修复,如何利用备份无损恢复成虚拟机?
LeetCode 1981. 最小化目标值与所选元素的差 每日一题
QT中自定义控件的创建到封装到工具栏过程(一):自定义控件的创建
邮件服务器被列入黑名单,如何快速解封?
第九届 蓝桥杯 决赛 交换次数
Flask搭建api服务
【视频/音频数据处理】上海道宁为您带来Elecard下载、试用、教程