当前位置:网站首页>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 1043. Separate the array to get the maximum and daily questions
- LeetCode 1477. Find two subarrays with sum as the target value and no overlap
- LeetCode 1031. Maximum sum of two non overlapping subarrays
- Rpcms method of obtaining articles under the specified classification
- 【饭谈】Web3.0到来后,测试人员该何去何从?(十条预言和建议)
- AI来搞财富分配比人更公平?来自DeepMind的多人博弈游戏研究
- Shallow understanding Net core routing
- QT 图片背景色像素处理法
- LeetCode 1626. The best team without contradiction
猜你喜欢
How to add aplayer music player in blog
Matplotlib绘制三维图形
[image sensor] correlated double sampling CDs
Reflections on "product managers must read: five classic innovative thinking models"
《产品经理必读:五种经典的创新思维模型》的读后感
Sator推出Web3游戏“Satorspace” ,并上线Huobi
skimage学习(3)——Gamma 和 log对比度调整、直方图均衡、为灰度图像着色
Sator launched Web3 game "satorspace" and launched hoobi
Mrs offline data analysis: process OBS data through Flink job
麒麟信安携异构融合云金融信创解决方案亮相第十五届湖南地区金融科技交流会
随机推荐
How to mount the original data disk without damage after the reinstallation of proxmox ve?
如何在软件研发阶段落地安全实践
LeetCode 120. Triangle minimum path and daily question
LeetCode 312. Poke balloon daily
Sator推出Web3游戏“Satorspace” ,并上线Huobi
【饭谈】Web3.0到来后,测试人员该何去何从?(十条预言和建议)
Blue Bridge Cup final XOR conversion 100 points
DNS series (I): why does the updated DNS record not take effect?
LeetCode 300. Daily question of the longest increasing subsequence
[Seaborn] combination chart: pairplot and jointplot
[video / audio data processing] Shanghai daoning brings you elecard download, trial and tutorial
QT 图片背景色像素处理法
SlashData开发者工具榜首等你而定!!!
QT中自定义控件的创建到封装到工具栏过程(一):自定义控件的创建
DevOps 的运营和商业利益指南
蓝桥杯 决赛 异或变换 100分
From Devops to mlops: how do it tools evolve to AI tools?
【Seaborn】组合图表:PairPlot和JointPlot
SIGGRAPH 2022最佳技术论文奖重磅出炉!北大陈宝权团队获荣誉提名
[Seaborn] combination chart: facetgrid, jointgrid, pairgrid