当前位置:网站首页>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 .
边栏推荐
- Matplotlib绘图界面设置
- LeetCode 1155. N ways to roll dice one question per day
- 如何在博客中添加Aplayer音乐播放器
- Lowcode: four ways to help transportation companies enhance supply chain management
- SIGGRAPH 2022最佳技术论文奖重磅出炉!北大陈宝权团队获荣誉提名
- LeetCode 1477. 找两个和为目标值且不重叠的子数组 每日一题
- 从DevOps到MLOps:IT工具怎样向AI工具进化?
- Flash build API Service - generate API documents
- How to choose the appropriate automated testing tools?
- LeetCode 1774. The dessert cost closest to the target price is one question per day
猜你喜欢
Matplotlib绘制三维图形
Sator launched Web3 game "satorspace" and launched hoobi
测试用例管理工具推荐
Direct dry goods, 100% praise
Process from creation to encapsulation of custom controls in QT to toolbar (I): creation of custom controls
Matplotlib绘图界面设置
Sator a lancé le jeu web 3 "satorspace" et a lancé huobi
Shallow understanding Net core routing
Nerf: the ultimate replacement for deepfake?
Siggraph 2022 best technical paper award comes out! Chen Baoquan team of Peking University was nominated for honorary nomination
随机推荐
LeetCode 213. 打家劫舍 II 每日一题
99% 用户在 Power BI 云端报表常犯错误
LeetCode 1774. 最接近目标价格的甜点成本 每日一题
Number of exchanges in the 9th Blue Bridge Cup finals
LeetCode 1186. Delete once to get the sub array maximum and daily question
LeetCode 300. Daily question of the longest increasing subsequence
Skimage learning (3) -- gamma and log contrast adjustment, histogram equalization, coloring gray images
LeetCode 1043. Separate the array to get the maximum and daily questions
[source code interpretation] | source code interpretation of livelistenerbus
【Seaborn】组合图表:PairPlot和JointPlot
QT中自定义控件的创建到封装到工具栏过程(二):自定义控件封装到工具栏
Biped robot controlled by Arduino
LeetCode刷题day49
Lowcode: four ways to help transportation companies enhance supply chain management
First in China! Todesk integrates RTC technology into remote desktop, with clearer image quality and smoother operation
SlashData开发者工具榜首等你而定!!!
LeetCode 312. 戳气球 每日一题
From Devops to mlops: how do it tools evolve to AI tools?
skimage学习(3)——使灰度滤镜适应 RGB 图像、免疫组化染色分离颜色、过滤区域最大值
Blue Bridge Cup final XOR conversion 100 points