Step by Step guide to setup SPK Claim chain node

in STEMGeeks3 years ago (edited)

On the first week of January, there was an airdrop snapshot planned for LARYNX tokens by the SPK team. Today I was wondering what happened to that and how the claiming would happen. When I came across a few posts, I found out that the SPK community is calling node operators to decentralize the LARYNX token claim. This postvideo guide. They call this a HoneyComb node. explains more details on the same and there is also a video out there explaining how we can run a node. Thanks to @disregardfiat for the

<p dir="auto"><img src="https://images.hive.blog/DQmTiP4FYoAH668YW8hpN8ZE3cA4xA1Yj2VuH5CYpxYxcNP/image.png" alt="image.png" /> <p dir="auto"><a href="https://ecency.com/hive/@disregardfiat/honeycomb-overview-and-set-up-guide" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Source <p dir="auto">I wanted to make a note of the step-by-step procedure so that I can write and share the details in the form of an article. I was also struck in the video tutorial a little bit which I wanted to keep a note of in this article so that if I reference this article later, I should be able to understand. <p dir="auto">I usually write step-by-step guides for running nodes. I did one for running a Hive Engine witness node and many people found it useful. I wanted to do the same for this as well. It is more like documenting what I learn here. It appears to be very easy to operate the node and the technical server requirements are also very low. Let's get started. <h2>Prerequisites <p dir="auto">It is an assumption that the users who are trying to set up the witness server are familiar with the below topics: <ul> <li>Connecting to a Linux server, either with a password or through SSH. (SSH is recommended) <li>Basic troubleshooting <li>Securing your server <li>Hive account with a minimum of 100 HP <h2>Server Requirements <p dir="auto"><span>At the current state, it is enough to run a small server with the below specs. As the requirement grows, we might have to run a bigger server. I personally recommend ordering servers from <a href="/@privex">@privex. I personally have had good experiences with them and the best part I like the most is that we can pay the server cost with Crypto especially Hive and HBD instead of FIAT. The below specifications should be sufficient to run the node. <p dir="auto">(VPS-SE) <p dir="auto">1G RAM<br /> 25G SSD<br /> 2 cores<br /> 100mbps <p dir="auto">You get the above specs for 5$ a month which is affordable I think. I will also be using the above server specs from Privex for this guide. You can feel free to use <a href="https://www.privex.io/?r=bala41288" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">my referral link when you are ordering servers from Privex. After ordering, you will get an email confirmation from them with the server details. Mostly it will happen in just a few minutes from the time of ordering a server. <p dir="auto"><img src="https://images.hive.blog/DQmQyufv23W1wNr5VWG7CyfaGCgNH9HrATX4rdkoR1BxFhw/image.png" alt="image.png" /> <p dir="auto"><strong>Note: This node that we are setting up will run IPFS. Please make sure you choose a region appropriate for that on Privex. SWEDEN or USA should be fine. Privex has some policies on that. It is good to read them before setting up the server. <h3>Step 1: Initial server setup <p dir="auto">There are some basic utilities that need to be installed to make the server suitable. Below are the commands that can be used to set up these utilities. You can google each one of them to understand why they are required. <pre><code>sudo apt-get update -y sudo apt-get upgrade -y sudo apt install git -y sudo apt-get install -y fail2ban <p dir="auto">Mostly when you order a new server, all these above are already done and you get a server with an updated package. But it is good to make sure that it is the case. In my case, I had to just reboot the server once after logging in. <h3>Step 2: Docker Installation <p dir="auto">The below will install docker and docker-compose. Docker is a cool tool for containerizing your app. It reduces many setup-related complications. <blockquote> <p dir="auto">sudo apt install docker docker-compose <p dir="auto">This will possibly take some time. Once it is done, we can move to the next step. <h3>Step 3: Get the latest code <p dir="auto">GIT should already be available on the server but if it is not available, you can install GIT first and then proceed. Use the below command to get the latest code and navigate inside that directory. <blockquote> <p dir="auto"><br /> cd honeycomb-spkcc<span>git clone <a href="https://github.com/3speaknetwork/honeycomb-spkcc.git" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/3speaknetwork/honeycomb-spkcc.git <p dir="auto"><img src="https://images.hive.blog/DQmeMwhxodiNfBMdEZxdvAfBKbVZs3mYYBuV5NmovzyKgtm/image.png" alt="image.png" /> <p dir="auto">If you navigate inside that folder and do <code>ls you should be above to see all the files inside that folder. <h3>Step 4: Create a .env file and update it <p dir="auto">The next thing would be to create a .env file and add the configuration inside that. The below command itself would create a file if it is not already available. <blockquote> <p dir="auto">sudo nano .env <p dir="auto">Inside the file we have to add the following details: <pre><code>account="hiveaccount" active=5JactivePrivateKey msowner=5KadditionalPrivateKey mspublic=STMpublickey <p dir="auto">The <code>account would be the hive account you would be using to run the node. <code>active would be the active key of the Hive account you are using. <code>msowner is a new private key that we would need to setup for the dex account and <code>mspublic<span> is the associated public key for that private key. We can easily get a new key from the below page of <a href="https://hivetasks.com/account-creator" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://hivetasks.com/account-creator and copy the Private Active Key and Public Active key and keep it safe. <p dir="auto"><img src="https://images.hive.blog/DQmfUBCEkCLWjADEEE1SQE9zUPtjopeDxDtrto2YKyuUENn/image.png" alt="image.png" /> <p dir="auto">Another alternative method to get keys would be to go to peakd and try to create a claimed account. That will also generate keys that we can pick up. I would recommend using hivetasks because it will give us both private and the associated Public Key too as we need both in the config. <p dir="auto">Now that we have updated the .env file, we can save the file with <code>ctrl + o and press enter. And then <code>ctrl + x to exit. <h3>Step 5: Build and run the app with docker <p dir="auto">The next step would be to build the application with docker using the below command. No additional task would be required as the docker file in the project will usually take care of the dependencies that this project would need. <blockquote> <p dir="auto">sudo docker-compose build <p dir="auto">The above command will build the docker environment. The above command will usually take a few minutes depending on the network speed. Once that is done, we can go ahead and run Honeycomb (that's what they call it apparently) <blockquote> <p dir="auto">sudo docker-compose up <p dir="auto">This should be it and it should show a message similar to below. It should say "At real time" and the below custom_json. <p dir="auto"><img src="https://images.hive.blog/DQmPopHdtKYKjcUkdQZnr7bzqTqHJ3GNynd6nLfW2WkQwxH/image.png" alt="image.png" /> <p dir="auto"><span>In addition to that if we go to this page. <a href="https://spktoken.dlux.io/markets" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://spktoken.dlux.io/markets, we should be able to see our node listed there. <p dir="auto"><img src="https://images.hive.blog/DQmPKPv1j8kmPZkKCWkpUhSTr7AnEQVe6Gnw7dQmXWTroRY/image.png" alt="image.png" /> <p dir="auto">Even in spite of that we are not fully done yet. But we can say that the node is running successfully. <h3>Step 6: Claiming LARYNX tokens <p dir="auto">Before we enter consensus it is required that we have to claim our LARYNX tokens. The below website has an option to claim the LARYNX tokens. We can also do it with a custom_json too. <p dir="auto"><span><a href="https://spk.dlux.io/" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://spk.dlux.io/ <p dir="auto"><img src="https://images.hive.blog/DQmZ3LdkxfiSCA61RgyXmwiPvdVU6VDi6TdpEAXTr7dq8V9/image.png" alt="image.png" /> <p dir="auto"><span>Not all the features on the website are working yet. But at least the claim button is working. The gift box that we see on top of the page is the claim button. The transaction can take about 1 minute to reflect. There is currently a channel on dlux discord that streams the updates. If you don't find it there, you can also find it on this page. <a href="https://spktoken.dlux.io/feed" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://spktoken.dlux.io/feed <h3>Step 7: Locking LARYNX tokens for governance operations and bringing the node to consensus <p dir="auto">The next important step is to lock the tokens for governance operations. If you look at this page, you will be able to see the list of nodes. 1. <a href="https://hiveuprss.github.io/spkccmonitor/" title="This link will take you away from hive.blog" target="_blank" rel="noreferrer noopener" class="external_link">https://hiveuprss.github.io/spkccmonitor/. If you still don't see your node in that list, you have to Lock up some LARYNX tokens on your node account to start participating in consensus. <p dir="auto">The current web interface is still not ready and unfortunately, we can do this task only with the help of a custom_json operation. This is when I wished there was an option available to send custom_jsons directly with keychain. I had to first transfer the token to my node account using the below JSON structure. <p dir="auto"><img src="https://images.hive.blog/DQmb6vK724aGjbiujBRJG77Xq6yaY9c9uZVos3AiogFSXeE/image.png" alt="image.png" /> <p dir="auto">After the transfer was done, I had to then use another custom_json to lock it up for governance operation. <p dir="auto"><img src="https://images.hive.blog/DQmRg6hbbM95NRQKTcv1bHzcRnSLoSbkeWbrcuRiQn8JeEr/image.png" alt="image.png" /> <p dir="auto"><span>JSON Doctor - <a href="https://jsondoctor.github.io/" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://jsondoctor.github.io/ is a handy tool if you want to publish custom JSON manually. <p dir="auto">I'm leaving a screenshot from JSON Doctor so that people don't get confused with that as well. <p dir="auto"><img src="https://images.hive.blog/DQmNgTJ58uGLF9fRBEcMMQnHoA6FCjWK3kNUvAfwMeHLnw6/image.png" alt="image.png" /> <p dir="auto">The above screenshot is for transferring the funds. <p dir="auto"><img src="https://images.hive.blog/DQmZ2Yz5kCEWDsRcjiurnPmuGaXPza82T14HowK2SwkuFvH/image.png" alt="image.png" /> <p dir="auto">The above screenshot is for locking the tokens to governance ops. <h3>Final Optional steps <p dir="auto">We are already done with running the node successfully. There is two additional <strong>optional steps. One is to get the latest code as and when there is a new update and the next is to associate a domain with our node. If you are getting the updated code from the repo, the below commands should be used to pull, stop and start the app. <pre><code>git pull sudo docker-compose down sudo docker-compose build sudo docker-compose --compatibility up -d <p dir="auto">For associating a domain with our node, we can use whichever is preferable. The other documentations use NGINX but I'm going to try it with Caddy and make a separate post for the same. <p dir="auto">If you have any further questions, you can reach out in <a href="https://discord.gg/Beeb38j" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">dlux discord server. <p dir="auto">If you like what I'm doing on Hive, you can vote me as a witness with the links below.<br /> <center><a href="https://vote.hive.uno/@balaz" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Hive Witness <span> Vote <a href="/@balaz">@balaz as a <br /> <center><a href="https://votify.vercel.app/kanibot" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Hive Engine Witness <span> Vote <a href="/@kanibot">@kanibot as a <hr /> <table> <tr> <td> <center><a href="https://discord.gg/bGmS2tE" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/DQmdthy4q4vyefBYmjMJtx7qHBmLnCfP2btiRPhRyc2U8hP/Indiaunited.png" /> <td> <center><a href="https://kanibot.com/" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/DQmdm8hKPz9TZL8Gd8bPyeVHm9hfgMqqiHcKL8283RBv2eH/Kanibot.png" /> <td> <center><a href="https://netbox.global/r/balanbx" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/DQma1a9t6rceDQYvMt6FhNkHuUUjAkQssZHrLJcXKfiQBFd/NetboxGlobal.png" /> <tr> <td> <center><a href="https://r.honeygain.me/BALA4F8CD5" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/DQmdCZg8z6sxVukSdPm2kXRAhhnySqPZqK9YQ5hco65sp4n/Honeygain.png" /> <td> <center><a href="https://www.privex.io/?r=bala41288" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/DQmPB85eAMrQNGV7C4ykbfVTDNaiGmb8PfuiFr2AL8N8JQm/Privex.png" /> <td> <center><a href="https://www.publish0x.com/?a=YRdG6knybD" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/DQmcb3f3oJvjyxyScbim4gKPAnrHTyXjYtwk7HeC9aTN9Pn/Publish0x.png" /> <hr /> <p dir="auto">Posted with <a href="https://stemgeeks.net" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">STEMGeeks
Sort:  

Great guide! Seems our calling our token software HoneyComb is the hardest part for you :p

Your node setup guides are great! Will be looking into this! I couldn't get my LARNX tokens to claim though, oh well, will keep trying.

You should have some LARNX by now.

Yeah, and I now have them staked... I just kept having to refresh the page

Hey thanks. Yeah there are some issues for the users. It will take some time for the node to get some stability.

Yeah, looks like it finally claimed and I was even able to stake them through the UI, just had to refresh the page for it to show.

Oh, I guess they fixed the issue then. 👍

Man your so talented with all that matrix code

What's your tlos account I'll send u some telos

Hey I'm so glad I have all that dlux token

I live in a world where I forget about all my coins and I have to literally be reminded by OTHER PEOPLE about what Monry I have hahaha that's a real hivemind for u

Posted using Dapplr

Hey @ackza. Hearing from you after a long time.

<blockquote> <p dir="auto">I live in a world where I forget about all my coins and I have to literally be reminded by OTHER PEOPLE about what Monry I have hahaha that's a real hivemind for u <p dir="auto">You are super-rich in the world you live and you probably don't need any more money. 😂 <p dir="auto"><code>balasrinivas is my TELOS account by the way. I'm still yet to explore the proposal features on Telos but now I do know how to build stuff on EOS. Can probably try something on EOS ecosystem.

Thanks a lot for a concise tutorial, as always :)

I'll set it up in the evening.

In the meantime...

@tipu curate

Thank you so much for the tips. Cheers!

Appreciate this...I tried earlier, got stuck, but will try again from a fresh angle.

Great. I also initially had some gray areas which gradually got cleared. If you still have some challenges reach out in discord. Good luck.

Not all the features on the website are working yet. But at least the claim button is working.

Has the claim started ? I thought, we are getting ready only.

this is just proofing / testing currently. We have a short list of requirements that aren't quite met. Nearly all to do with the 0 claim amounts many are getting.

How about building a VM in VirtualBox in a laptop and run this ?

Yes it is possible. You can do it. As long as you have a stable network connection, you can go for it. I saw someone trying to run a node using their Raspberry pi.

I would love to see a detailed instruction on how to do this.

You have no idea how this post helps us a lot, thank you buddy

I'm glad it helps. Cheers man. !

Lots happening behind the scenes =)

Yes a lot!

I'm up and running I think! I'm using my @v4vapp name but I haven't appeared in https://hiveuprss.github.io/spkccmonitor/ yet. Hoping that will follow.

I recently learnt that you can change the node to view the current status. Check the below link. You are there. https://hiveuprss.github.io/spkccmonitor/?node=https://api.nodeme.unklebonehead.xyz

I'm running the node with @engrave.spk ;)

Great. Cheers! Are you running the latest code? I don't see you on the list yet. https://hiveuprss.github.io/spkccmonitor/

Yeah, looks like this node stuck somewhere in the past. If you switch the node to anything different, you will see me: https://hiveuprss.github.io/spkccmonitor/?node=https://api.nodeme.unklebonehead.xyz

Great I see you there. 👍

Thanks for sharing this, I was looking for a good guide and may try to set up a node

Glad that you found it useful. Good luck with your node setup. :)

Really good post. easy steps to setup the node. I made myself very easy. thanks for the post

Thanks bro. I'm glad it helped.

Thank you for this guidance.
$WINE

You are welcome. Cheers!


0.100 WINEXCongratulations, @theguruasia You Successfully Shared With @balaz.
You Earned 0.100 WINEX As Curation Reward.
You Utilized 1/3 Successful Calls.

wine_logo


Contact Us : WINEX Token Discord Channel
WINEX Current Market Price : 0.270


Swap Your Hive <=> Swap.Hive With Industry Lowest Fee (0.1%) : Click This Link
Read Latest Updates Or Contact Us

This was really helpful 😊

Cheers!

Great guide. Thank you very much

Discord Server.This post has been manually curated by @steemflow from Indiaunited community. Join us on our

Do you know that you can earn a passive income by delegating to @indiaunited. We share 100 % of the curation rewards with the delegators.

Here are some handy links for delegations: 100HP, 250HP, 500HP, 1000HP.

Read our latest announcement post to get more information.

image.png

Please contribute to the community by upvoting this comment and posts made by @indiaunited.

Congratulations @balaz! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@balaz/upvoted.png?202202100918" /><td>You received more than 400 upvotes.<br />Your next target is to reach 500 upvotes. <p dir="auto"><sub><em>You can view your badges on <a href="https://hivebuzz.me/@balaz" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">your board and compare yourself to others in the <a href="https://hivebuzz.me/ranking" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Ranking<br /> <sub><em>If you no longer want to receive notifications, reply to this comment with the word <code>STOP <p dir="auto"><strong><span>Check out the last post from <a href="/@hivebuzz">@hivebuzz: <table><tr><td><a href="/hive-122221/@hivebuzz/pum-202202-8"><img src="https://images.hive.blog/64x128/https://i.imgur.com/joDgNkk.png" /><td><a href="/hive-122221/@hivebuzz/pum-202202-8">Hive Power Up Month - Feedback from February day 8<tr><td><a href="/hive-122221/@hivebuzz/pum-202202-3"><img src="https://images.hive.blog/64x128/https://i.imgur.com/st0le6L.png" /><td><a href="/hive-122221/@hivebuzz/pum-202202-3">Hive Power Up Month challenge - Feedback from February day 3 <h6>Support the HiveBuzz project. <a href="https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22199%22%5D&approve=true" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Vote for <a href="https://peakd.com/me/proposals/199" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">our proposal!


~~~ embed:1492057186805379077 twitter metadata:Zm9ya3lpc2hlcmV8fGh0dHBzOi8vdHdpdHRlci5jb20vZm9ya3lpc2hlcmUvc3RhdHVzLzE0OTIwNTcxODY4MDUzNzkwNzd8 ~~~
The rewards earned on this comment will go directly to the person sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.

You post has been manually curated by BDVoter Team! To know more about us join our Discord.


Delegate HIVE POWER to us & earn HIVE daily.

FOLLOW OUR HIVE AUTO CURATION TRAIL

Another great guide. Thank you for all the time & work you put into these.

can we claim tokens without setting up a node?

What would be the command to check the logs once it is instaled?