In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to call the Bytom Chrome plug-in wallet to develop Dapp", the content of the article is simple and clear, easy to learn and understand, now please follow the editor's ideas slowly in depth, together to study and learn "how to call the Bytom Chrome plug-in wallet to develop Dapp" bar!
Install and use plug-in wallet 1. Open the app store of the Google browser and search for Bystore
Download link: http://t.cn/E6cFFwb
two。 Then click add to Chrome to add to our:
3. Use the google plug-in wallet
If you are using a test network, you can go to the test network faucet to get BTM. Test net faucet: http://test.blockmeta.com/faucet.php
Set up Dapp demo
Dapp demo is a savings contract based on Biyuan, which allows you to lock up your assets and return them at maturity with a certain amount of interest. The suitable scenario for this dapp is the dividend dividend, which is automatically locked through the intelligent contract, and the maturing assets are automatically unlocked. So personally, I am very optimistic about this dapp application scenario.
Project source address: https://github.com/Bytom/Bytom-Dapp-Demo
Build the dapp according to the readme.md file in the source code, and then we can see the dapp application when we open http://127.0.0.1:8080 locally. Then we click on our account as shown below:
Click saving, and what we see is the savings assets interface, where users can set the amount of assets and save assets.
The following figure is our earnings page, we can see the income of our savings, if it is due, we can propose our own income.
Dapp calls up the implementation initialization injection of Google plug-in
Check plug-ins, accounts
Transfer transaction interface
The following figure shows the API API for sending transactions. For more information on the API, please see https://github.com/Bytom/Bystore/wiki/API-reference. There are other API interfaces in this document. Listen to the event interface bytom.request (eventName, options).
Back-end server interface
Because of the UTXO model adopted by the original chain, the model has no state. However, in the process of developing dapp, you need to associate the user's address. Therefore, the back-end server mainly encapsulates a layer of similar account model to facilitate dapp to interact with the chain. Developers who develop dapp can build a modified project as a server to interact with the chain, and build their own readme for the reference project.
Backend server project address: https://github.com/oysheng/bufferserver
Combing the Dapp development process
Through the above series of steps, we have a general idea of the process of developing dapp based on the original chain. The process summary is as follows:
Step1: download and install the Chrome plug-in wallet if you don't need to skip this step on your dapp. Step2: if you need to build your own BlockCenter backend server, refer to the project instructions to install it. If you don't want to build it, just use the official service and call it remotely. Step3: develop smart contracts and compile. Then configure the compiled contract parameters in the dapp configuration file, as shown in the following figure: (the full red part is the test net contract configuration parameters)
Step4: call the Chrome plug-in wallet. Thank you for reading, the above is the content of "how to call Bytom Chrome plug-in wallet to develop Dapp". After the study of this article, I believe you have a deeper understanding of how to call Bytom Chrome plug-in wallet to develop Dapp, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.