当前位置:网站首页>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 120. 三角形最小路径和 每日一题
- 浅谈 Apache Doris FE 处理查询 SQL 源码解析
- 鲲鹏开发者峰会2022 | 麒麟信安携手鲲鹏共筑计算产业新生态
- 【源码解读】| LiveListenerBus源码解读
- Flask搭建api服务
- 防火墙系统崩溃、文件丢失的修复方法,材料成本0元
- [fan Tan] those stories that seem to be thinking of the company but are actually very selfish (I: building wheels)
- Shallow understanding Net core routing
- Sator推出Web3游戏“Satorspace” ,并上线Huobi
- 【黄啊码】为什么我建议您选择go,而不选择php?
猜你喜欢

SIGGRAPH 2022最佳技术论文奖重磅出炉!北大陈宝权团队获荣誉提名

Master this promotion path and share interview materials

SlashData开发者工具榜首等你而定!!!

浅浅理解.net core的路由

How to add aplayer music player in blog

Arduino 控制的双足机器人

PLC: automatically correct the data set noise, wash the data set | ICLR 2021 spotlight

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

NeRF:DeepFake的最终替代者?
Direct dry goods, 100% praise
随机推荐
MySQL usage notes 1
麒麟信安云平台全新升级!
LeetCode 1626. 无矛盾的最佳球队 每日一题
智慧物流平台:让海外仓更聪明
Test case management tool recommendation
LeetCode刷题day49
skimage学习(3)——使灰度滤镜适应 RGB 图像、免疫组化染色分离颜色、过滤区域最大值
Skimage learning (3) -- adapt the gray filter to RGB images, separate colors by immunohistochemical staining, and filter the maximum value of the region
QT picture background color pixel processing method
从DevOps到MLOps:IT工具怎样向AI工具进化?
LeetCode 1031. 两个非重叠子数组的最大和 每日一题
如何在软件研发阶段落地安全实践
《产品经理必读:五种经典的创新思维模型》的读后感
MySQL implements the query of merging two fields into one field
LeetCode 1774. The dessert cost closest to the target price is one question per day
[fan Tan] those stories that seem to be thinking of the company but are actually very selfish (I: building wheels)
LeetCode 152. Product maximum subarray daily question
NeRF:DeepFake的最终替代者?
麒麟信安操作系统衍生产品解决方案 | 存储多路径管理系统,有效提高数据传输可靠性
skimage学习(3)——Gamma 和 log对比度调整、直方图均衡、为灰度图像着色








