当前位置:网站首页>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 1186. Delete once to get the sub array maximum and daily question
- Flash build API Service - generate API documents
- Pychart ide Download
- LeetCode 312. 戳气球 每日一题
- skimage学习(1)
- LeetCode 1774. The dessert cost closest to the target price is one question per day
- skimage学习(3)——Gamma 和 log对比度调整、直方图均衡、为灰度图像着色
- Matplotlib绘制三维图形
- Sator推出Web3游戏“Satorspace” ,并上线Huobi
- 99% 用户在 Power BI 云端报表常犯错误
猜你喜欢
Process from creation to encapsulation of custom controls in QT to toolbar (I): creation of custom controls
管理VDI的几个最佳实践
如何在博客中添加Aplayer音乐播放器
直接上干货,100%好评
最新高频Android面试题目分享,带你一起探究Android事件分发机制
Sator推出Web3游戏“Satorspace” ,并上线Huobi
Reflections on "product managers must read: five classic innovative thinking models"
SlashData开发者工具榜首等你而定!!!
Matplotlib绘图界面设置
Skimage learning (3) -- gamma and log contrast adjustment, histogram equalization, coloring gray images
随机推荐
LeetCode 1986. 完成任务的最少工作时间段 每日一题
【Seaborn】组合图表:FacetGrid、JointGrid、PairGrid
MySQL implements the query of merging two fields into one field
First in China! Todesk integrates RTC technology into remote desktop, with clearer image quality and smoother operation
[Seaborn] implementation of combined charts and multi subgraphs
LeetCode 1031. 两个非重叠子数组的最大和 每日一题
从DevOps到MLOps:IT工具怎样向AI工具进化?
Notes on installing MySQL in centos7
[Seaborn] combination chart: pairplot and jointplot
NeRF:DeepFake的最终替代者?
Pycharm IDE下载
DNS 系列(一):为什么更新了 DNS 记录不生效?
LeetCode 1155. N ways to roll dice one question per day
【图像传感器】相关双采样CDS
LeetCode 152. Product maximum subarray daily question
rpcms获取指定分类下的文章的方法
LeetCode 120. Triangle minimum path and daily question
Sator a lancé le jeu web 3 "satorspace" et a lancé huobi
LeetCode 1696. 跳跃游戏 VI 每日一题
LeetCode 1774. 最接近目标价格的甜点成本 每日一题