Advertisement
CryptoLifestyler

Untitled

Jan 27th, 2020
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.26 KB | None | 0 0
  1. Transaction for Testing API
  2. Creating a Burn Address
  3. Virtual Server Installation
  4. Dependencies
  5. Wallet Configuration
  6. Transcript
  7.  
  8. 00:10 In this video, I will be teaching you how to create a block explorer for your coin. There are many examples of explorers out there. One of the best I have found was Iquidus. This is used by many other coins at the moment. However, it does not display the number of masternodes on your network.
  9.  
  10. 00:32 There has been a new version of Iquidus called Ciquidus. Which now displays the masternodes that are online. As well as how many are offline. This is the explorer we will be setting up today.
  11.  
  12. 00:46 There are 4 main aspects to creating an explorer for your coin. First. We need to make a transaction from our wallet to another wallet. This is so we can have some reference to our blockchain for the explorer. This will be used to ensure links on the API are valid. Next, we will be creating a virtual server. Just like before, we will create a $5 virtual server on Ubuntu 16.04. And we need to install the dependencies to be able to run the wallet. We will also be adding a whole bunch of dependencies for the explorer setup. So many in fact, that this will be pretty much a copy and paste tutorial. The commands to paste will be found in the document called ''Block Explorer Pastebin''. The third aspect is configuration. We need to configure the settings of the explorer to match our own coin specs. Adding the RPC port, the genesis information etc. Then lastly, we will be running Forever. Forever is a program that allows us to run the NPM, after we close the virtual server terminal. Without it, you would need to keep the terminal open.
  13.  
  14. 02:07 Okay, let's get started. Starting off in our QT. We need to consider how to make a transaction to another wallet. You can do it one of 2 ways. The first way is to open your windows QT and create a receiving address. Then send a small transaction from your Ubuntu wallet to your windows wallet.
  15.  
  16. 02:33 Or the second way is to create a burn address. This is what I will show you now. A burn address is an address that contain coins that can't be spent. Because the wallet.dat file no longer exists.
  17.  
  18. 02:48 So to do this, let's exit this QT now.
  19.  
  20. 02:58 In our home folder, we need to open the hidden files. Just like before. We hold control and H. We are going to cut out our vision X core file. Do not delete this, as it has our pre-mine on the wallet. Cut the file. Paste it into the desktop to keep it safe. Then returning to the home folder. We will see it is gone. What we do now, is fire up the QT again. This time we will have a fresh install. And it will create a new .visionXcore file.
  21.  
  22. 03:34 Inside our new QT, go to settings and choose receiving addresses. Then choose ''New''. We are going to label this as explorer transaction. Click okay. Then, hover over the address and right click. Choose ''copy address''. Then close the box.
  23.  
  24. 04:00 Exit the wallet and open a new document in your text editor. We will paste the address here for safe keeping. Then return to your home folder. Move the newly created .visionXcore folder into the trash. This means that the wallet.dat file has been deleted. The address labelled "explorer transaction", will still receive the transaction. But nobody will be able to access it and spend it. The coins will be burned.
  25.  
  26. 04:33 Okay. Next we are going to return to our desktop. Cut and paste our original .visionXcore folder back into the home directory. Then fire up the QT again. You will see that nothing has changed. As long as we still have the wallet.dat file, we still have our coins. No other file matters.
  27.  
  28. 05:03 In order to make a transaction, we need to be mining. The blockchain must be moving to carry the funds to our burn wallet. Open the debug console and ''setgenerate true''. Exit the console.
  29.  
  30. 05:26 Now go to the send tab. Here we will paste the burn address labelled "explorer transaction". You should already be able to just click paste. But if not, copy it from your text editor again. And then paste it into the box. We are going to send just 1 vision x coin. It doesn't matter how much you send. You could actually send less. Like 0.1. The amount is not important. Just don't go wasting coins. You will never get this transaction back.
  31.  
  32. 06:09 Here you can see the transaction has been sent. We need to wait for some confirmations for it to be of use to us. But we can continue on while we wait. Around 20 confirmations or more is better. Okay, that is the first stage completed.
  33.  
  34. 06:27 Next we need to setup a new virtual server to host our explorer.
  35.  
  36. 06:33 As you can see, I have already created the server. It has been named "Explorer". It is exactly the same specs as the 2 other servers we have running. The seed node and the masternode. It is a $5 Ubuntu 16.04 server. Copy the address and open a new terminal. SSH into this server like before.
  37.  
  38. 07:03 To host the wallet on this server. We need to install the dependencies as we have done with the previous servers. We can use the Reden docs again. But these documents are in every coins source code, and the dependencies are exactly the same. We use Reden's, just because it's more convenient.
  39.  
  40. 07:23 I am not going to take you through the process of installing these again. I will fast forward this part of the process. With the dependencies now installed, we can pull our wallet from GitHub. On our repository page under releases. We can get our path. I have already pasted it into the pastebin to save time.
  41.  
  42. 07:54 Once the tar dot GZ is on our server. We will unpack it like before. And then we will run the daemon. Then stop the daemon with the CLI command. This will create the .visionXcore file. So far all this is exactly the same as the last 2 server installations.
  43.  
  44. 07:54 When ever you set up a new server. You need to install the dependencies for whatever program that needs to run. In the future, you can save time. By creating a server with just the dependencies installed. Then clone that server each time. Installing dependencies is essential, but time consuming. Later, when you are confident in your skills, you will find ways to save time.
  45.  
  46. 08:45 Now that we have started and stopped the daemon. We can navigate to the .visionXcore folder. We are going to change the configuration file. Just like before. Use ''sudo nano visionX.config''. Inside this file we need to add some important information.
  47.  
  48. 09:15 We need to add:
  49.  
  50. Server = 1
  51.  
  52. This tells the wallet to act as a seed and connect.
  53.  
  54. Daemon = 1
  55.  
  56. This allows us to stop having to add the word daemon. Every time it is started.
  57.  
  58. RPC user = user
  59.  
  60. This user name can be anything. But you must make a note of it for later on in this video. We will need to add the user and password settings to match the explorer settings.
  61.  
  62. RPC password = password
  63.  
  64. For the sake of this video, i will just make it password. You should make it something more harder to guess. Note it down for later.
  65.  
  66. RPC allow IP = 127.0.0.1
  67.  
  68. This is binding the RPC to our local host.
  69.  
  70. TX index = 1
  71.  
  72. This is needed to allow the client to request a re-index of all transactions.
  73.  
  74. 10:17 Now that is done, you can save and exit the file. But be sure to remember your username and password.
  75.  
  76. 10:25 Okay. This stage is finished.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement