做一个自己的区块链浏览器怎么做,做一个自己的区块链浏览器可以吗
请查看相关英文文档
❶ Hot! Create and play with your own blockchain in 5 minutes
Blockchain is developing so fast this year! From an unfamiliar concept at the beginning, it has now taken off in various industries. A single spark has the potential to start a prairie fire. I really hope I can have my own blockchain to practice with! But how can one person and one computer set up a blockchain environment? The blockchain is so popular that it is not easy to say that I love you!
Don’t Worry! The editor has been addicted to blockchain and smart contracts and can’t extricate himself! Now I will take you step by step to start from scratch and create your own blockchain in 5 minutes! ~
The SuperVessel platform developed by IBM China Research Institute provides a blockchain development and testing environment for blockchain enthusiasts and developers. Through this platform, users can create multi-node blockchains based on Hyperledger Fabric for free and super quickly, and play with smart contracts on their own chains.
----
0.
Preparation
All you need is your local browser!
1. Register an account
Access the public beta address of SuperVessel blockchain service: 8800/bc.
Click the Log in button in the upper right corner, click Register in the pop-up window, fill in your email and password and submit. At this time, it is recommended to check the activation email in your mailbox and activate your account (Editor's tip: It doesn't matter if you activate lazily, but some advanced services must be activated before they can be used).
2.
Quickly create your own blockchain
After registration is completed, return to the homepage and click on the huge GIVE ME A BLOCKCHAIN (Give me a blockchain!) button. Select the Consensus Plugin (consensus plug-in) and Size (number of blockchain network nodes) you want in the pop-up box.
Editor's note: Currently there are two consensus plug-ins officially provided by Hyperledger Fabric: noops and pbft.
After clicking Submit, you will get your own blockchain in a few seconds and automatically enter the monitoring panel. That’s right, getting your own blockchain is that simple!
After entering the monitoring panel, you can see that the left side is the smart contract management panel, including the management and deployment of smart contracts; the right side is the network panel, which displays the applied blockchain network status, topology, and connections between nodes. Latency information, etc. are clear at a glance; click the telescope icon in the upper right corner to monitor the log information of each node in real time. The bottom is the blockchain panel, which shows the overall situation of the current blockchain. In the initial state, there is only one block.
3. Deploy and use smart contracts
Next, the editor will teach you how to deploy smart contracts in your ownDeploy and use smart contracts on the blockchain.
Under the Smart Contracts tab of the smart contract management panel, 2 smart contracts are listed as examples, namely map and chaincode_example02. The map contract can store key-value pairs, and the chaincode_example02 contract can simulate transfers and queries between two people.
Editor's note: The codes for these two sample contracts can be found in the Hyperledger Fabric source code.
Take the deployment and use of the chaincode_example02 contract as an example:
Deploy the contract
Click the Deploy button corresponding to the chaincode_example02 contract, and fill in the initialization value of the contract, including the contract name, initial function, and initial parameters. The initial function of the contract is init, and the initial parameters need to be filled in according to the format, such as ["a", "100", "b", "200"], which means registering two people a and b, giving them 100 units and 200 units respectively.
Click the Deploy button and the contract will be deployed in your blockchain. The process will take about 20 to 40 seconds. When a new block appears on the blockchain panel, it usually means that the contract has been deployed.
Call the contract
After the deployment is completed, view the deployed contract instance under the My Deployment tab of the smart contract management panel.
Click the Invoke button below the Action to call the smart contract, and fill in the called method name and corresponding parameters (the method names and parameters of different contracts have different meanings, which are related to the content of the contract). For this contract, call the invoke method name and fill in the parameters ["a", "b", "50"], which means a transfers 50 units to b.
After clicking Submit to complete the call, you can view the blockchain situation and a new block will be generated.
Query Contract
After the call is completed, you can query the contract execution results. Still under the My Deployment tab, click the Query button under Action to query the smart contract, and fill in the query method name and corresponding parameters. If you select the query method name and fill in the parameter ["a"], it means querying the current unit of a.
After clicking Submit, you can see that the current unit of a is 50. You can try query b again!
OK, then you can continue to operate the contract, observe the blockchain situation, or deploy a new smart contract, such as map, on the blockchain. For ease of use, the method names and parameter formats for deploying, calling, and querying contracts are all filled in by default. You only need to select a method name and change the parameters as you like! See if you can play with the chainHow long~
4. Upload and test your own private smart contract
In addition to the two public smart contracts currently provided, you can also upload and test your own private contract! Private contracts can only be seen by you.
Click Import private smart contract under the Smart Contracts tab.
After filling in the contract name and description, and uploading the contract code file, click Import to complete the upload.
Then the contract I uploaded will appear in the Smart Contracts list and can be deployed, called and queried as before.
❷ What is the Blockchain Browser
The Blockchain Browser is a website.
Blockchain browser is different from traditional browsers. Ordinary browsers can query various information and jump to various websites, but blockchain browsers have to say In fact, it is a website. The blockchain browser is a tool specifically designed for users to browse and query information on the blockchain.
For example, search transaction records, detailed information of a certain block, the height of the current chain, etc. You can also query the balance or transaction details through the wallet address or transaction ID. Therefore, the blockchain browser is not an application, nor is it a program built on the public blockchain chain. Simply put, it is a website that can query blockchain data.
In fact, each blockchain system has its own specific browser, and users cannot conduct cross-chain queries through the blockchain browser. If you want to query some information data of a certain blockchain system, you have to go to the browser of the blockchain to query. Take a simple example, the Bitcoin blockchain browser can only query Bitcoin blocks, and the Ethereum blockchain browser can only query Ethereum.
The blockchain browser is like a window into the digital currency. Through the blockchain browser, you can see what is happening inside the digital currency, and each transaction is recorded in detail. The confirmation process of a block and the generation and distribution process of digital currency, and completely record the circulation of digital currency between each block, thereby more completely and openly disclosing the stock, increment and change of hands of digital currency. rates and other information.
❸ How to build a blockchain website
Websites are no longer mysterious and no longer a high-tech job. Ordinary users can also easily build relatively professional websites. Let me briefly introduce to you some procedures and precautions for building a personal website.
1. Domain Name
If you want people to visit your website, a domain name is essential. The domain name should be as short as possible and as easy to remember as possible, such as the .top domain name. Of course, there are not many domain names that are easy to remember and have characteristics. You need to consider this yourself, as long as you feel that there is a certain pattern or it is easy for users to remember. That’s it.
2. Space
To build a website, you must secondly have a space, that is, a place to store the website. For individual users, it is recommended to purchase a virtual host. When purchasing a web host, look at its service, speed, response time, etc. Generally, you can choose a service provider with a certain reputation.
Note: Domain name and space are currently good choices for domestic service providers such as Alibaba Cloud, Western Digital, and China Data.
3. Website program
Of course, the website program should be ready-made, because there is no need for individuals to compile a website program from scratch, and they do not have the ability. Nowadays, there are ready-made website management systems on the Internet. There are many such systems. You can choose based on your own comprehensive trial.
When choosing a website program, its versatility and secondary development must also be taken into consideration. For those that are not very versatile and are not conducive to the second phase of development, although they are powerful, they are not recommended because it will be very troublesome when the website needs to be designed with personalized functions after it reaches a certain scale. In addition, try to choose asp (asp.net) for programs. PHP, JSP, etc. are not particularly popular in China. Try to choose asp.net between asp and asp.net. After all, it is based on the .net architecture and is the development trend.
4. Website Design
After selecting the website program, you need to design the website according to your own needs. Generally speaking, it is best if there are professional artists and programmers to make modifications. However, individual webmasters may not necessarily have this condition and can choose intelligent website building from service providers.
❹ How to build your own blockchain
Part 1: Establish your own blockchain directory from 0 to 1:
1.1 Start with imitation and get to know the block for the first time Chain
1.2 The basis of blockchain: analysis of consensus mechanism
1.3 The design principle and design method of consensus mechanism
1.4 How to quickly clone a blockchain
1.5 How to turn Bitcoin into Become your own private chain – fork Bitcoin
1.6 How to turn Ethereum into your own private chain – fork Ethereum
1.7 How to turn Ripple into your own private chain – fork ripple
1.8 How to turn Stellar into your own private chain – fork Stellar 1.9 How to build a mining pool and mine your own genesis block
1.10 How to develop your own blockchain wallet (Windows and MAC) 1.11 How to develop your own blockchain wallet (Android and IOS) 1.12 How to develop an online wallet similar to blockchain.info 1.13 How to increase the security and robustness of your own blockchain network 1.14 How to use coind to handle deposits and withdrawals
1.15 How to use a fund pool to build a currency mixing service
1.16 How to design a new mining algorithm
This process is generally followed, but it is also very difficult for ordinary people to complete. Mature blockchain projects include Ethereum, DECENT, Bitcoin, etc.
❺ How much does it cost to develop blockchain software
There is no answer to this question, because blockchain software is just a large field and requires specific analysis of specific issues. Asking this question is like asking how much it costs to buy a house.
Blockchain software is divided into several categories
For example, exchanges are the most popular, ranging from simple tens of thousands to fully functional hundreds of thousands
There are also blocks For chain games, it depends on the game settings. Generally speaking, there are hundreds of thousands to hundreds of thousands
For others, it depends on the specific category
❻ Browser based on blockchain How to make a development plan
The blockchain browser is the main window for browsing blockchain information. The content recorded in each block can be viewed from the blockchain browser. Usually digital asset users will use a blockchain browser to query the transaction information recorded in the block. The main function of the blockchain browser solution developed by Yingtang Zhongchuang is that it records in detail the confirmation process of each block and the generation and distribution process of digital currency, and completely records the transactions between each block. The circulation situation of digital currency, thus more completely and openly disclosing the stock, increment, turnover rate and other information of digital currency. The only thing hidden is the owner behind each block.