Host your BLOCX Masternode via Flux Cloud

BLOCX.
9 min readSep 5, 2023

--

Flux — The Web3 Cloud

Flux’s core values and ethos center around the rise of Web 3.0 — By, and For the People. Its aim is to evoke the power of corporations and restore it to the common people. The Flux Cloud is decentralized, based on thousands of single servers from all over the world that are all connected in one operating system. Individuals are the backbone of the technology, so to speak. They provide the cloud with computational resources via home-based bare metal machines or rented servers and are incentivized by 50% of the total block reward.

To this date, the decentralized cloud of Flux is supported by over 12,000 nodes around the globe. Its total available computational resources amount to around 94,000 Cores, 250 TB of RAM, and over 6 PT (Petabytes) of SSD. It is a Web 3.0 cloud powerhouse that can be used to deploy applications in a decentralized and censor-resistant manner. There are plenty of advantages of using Flux instead of traditional Web2 infrastructure providers:

  • All applications are redundant and have automatic failovers in case of any outages.
  • The Flux Cloud is agnostic to code language as it uses Docker Hub containers as an on-ramp.
  • The Flux Cloud automatically keeps applications up to date with the respective container.
  • The Flux Cloud offers competitive pricing.

BLOCX. — Revolutionizing Digital Computing

In today’s digital age, managing and securing your computer system feels like a never-ending game of whack-a-mole. One minute it’s a malware attack, the next it’s a driver update, and don’t even get started on password management.

These challenges are usually met with a variety of specialized software solutions, each operating in its own silo. It’s not just inconvenient; it’s chaotic. Enter BLOCX — a platform designed to be the cohesive solution the industry so desperately needs.

Without further ado, let us proceed with a guide outlining the steps to effectively run your BLOCX. Masternode on the Flux Cloud.

  1. Access your Desktop wallet etiher on macOS, Windows or Linux.
  2. Open your Windows wallet and Go to Tools -> Debug console

3. Type the following RPC command, to create an address for the masternode fee:

getnewaddress

Example output

BHu7BFFtfsU3FgfUX1y5JnAQNVZ28348UK

4. Go back to your wallet overview.

Press on the toolbar button “Send”.

Enter the address from the RPC command “getnewaddress” behind the text “Pay To:”. (Example: BHu7BFFtfsU3FgfUX1y5JnAQNVZ28348UK)

Enter the following amount of coins behind the text “Amount:”: 5

Press on the button “Send”.

Wait until the transaction is confirmed by 4 blocks.

5. Go back to the console of your wallet.

Type the following RPC command, to create an address for the masternode collateral:

getnewaddress

Example output

BRrfbPvmgds7XFvU4xhsCVegDM4Do6EyYp

6. Go back to your wallet overview.

Press on the toolbar button “Send”.

Enter the address from the RPC command “getnewaddress” behind the text “Pay To:”. (Example: BRrfbPvmgds7XFvU4xhsCVegDM4Do6EyYp)

Enter the following amount of coins behind the text “Amount:”: 100000

Press on the button “Send”.

Wait until the transaction is confirmed by 4 blocks.

6. Go back to the console of your wallet.

Identify the transaction with the following RPC command:

masternode outputs

Example output

{ “618599438df959fc0647ad1895808ba0fef96282bf24eb177134cb0c329c8d41”: “1” }

7. Generate a BLS key pair with the the following RPC command:

bls generate

Example output

{ “secret”: “5120af1f913b8a4b459e19cc3ef3f865ba891404853fa317f348635b347e12ef”, “public”: “050564992464a87643d273e87334fda1e8beb52e9605b9cef2fe73eb3a063f12c8f03a6fa4f07e26a1e9e5175e155c91” }

Please access the Flux Cloud Dashboard by visiting the following URL: https://home.runonflux.io/

8. Upon arrival at this location, it is necessary to log in using our ZelID credentials, which can be accessed through Zelcore’s official website at https://zelcore.io/

9. Kindly undergo the authentication process by either clicking the fingerprint icon or manually signing the message within your Zelcore Wallet, utilizing the ZelID App.

10. Now that you have successfully completed the authentication process, please proceed to access the “Apps,” “Global App,” and “Register Flux App” options located in the side menu bar. This will grant you access to the Flux user interface to register your BLOCX Masternode

11. It is now essential to provide all the necessary specifications required for this deployment.

12. Input the specific details you wish to include for your application.

  • Application Name [Required]: For instance, “blocxmasternode2” Note: Please refrain from using spaces or symbols in the application name.
  • Description [Required]: Please provide a description for your application.
  • ZelID: Automatically populated due to your active login session.
  • Contacts [Optional]: Include an email address for receiving notifications, such as impending application expiration (Please format as an array, e.g., “test@gmail.com”). Please note that contact information will be publicly accessible.
  • Geolocations [Optional]: It is advised to refrain from making adjustments. However, if desired, you may choose to permit or restrict specific geolocations for the deployment of your application. By default, your application will be deployed randomly across the globe.
  • Instances: Maintain the instance count at 3.
  • Period: Choose your subscription duration, ranging from 1 week to 1 year.
  • Static IP [Required]: Activate the toggle.
  • Enterprise Application [Required]: Ensure that the toggle remains in the OFF position.

13. With the preferred application details now provided, let us proceed to outline the specifications for the BLOCX Masternode docker component.

General

  • Name: blocxmasternode
  • Description: The Blocx Masternode Docker Container
  • Repository: blocxtech/blocxnode:2.1.0

Connectivity

  • Ports: A randomized port will be generated for your use please leave it as it is
  • Domains: Maintain the domain configuration as is!
  • Container Ports: For Container Ports, kindly place the value “12972” within the brackets as follows: [12972].

Environment

  • Environment Parameters: Please put your key from Step 7 inside the brackets cornered in quotations with the label KEY= infront → [“KEY=5120af1f913b8a4b459e19cc3ef3f865ba891404853fa317f348635b347e12ef”]
  • Commands: Keep it empty as []
  • Container Data: Put /root/.blocx

Resources (Do not toggle on Tiered)

The official BLOCX recommendations include a CPU allocation of 2 vCores, 2000MB of RAM, and an SSD storage capacity of 16GB. You have the option to increase these resources according to your preference, but please be aware that higher resource allocations will result in increased deployment costs.

14. You have successfully completed the specification process. Let’s proceed to the final three steps required for the successful registration of your application.

15. To acknowledge and accept the Terms of Service, please enable the “I agree with the Terms of Service” toggle.

16. Select the “Compute Registration Message” option. You will encounter a display resembling the following:

17. Click the fingerprint icon, to sign the application request. Alternatively, if you have manually generated the “Signature Message,” you can paste it and proceed to access “Apps,” followed by “ZelID,” and finally, “Sign Message” within the Zelcore Wallet.

18. You are now ready to proceed with the application registration process. Take note of the monthly cost, which is 10.98 FLUX in this instance. To initiate the registration, select “Register Flux App.” Following the propagation of the message across the Flux Cloud network, a fingerprint prompt labeled “Pay with Zelcore” will appear. Click on this prompt to initiate the Flux payment. Alternatively, you may opt for manual payment by utilizing the provided address and memo message, located at the bottom left of the screen.

19. The process is now complete. You simply need to await the deployment of your BLOCX Masternode on an accessible node. This can take roughly 5–10 minutes.

20. Find out your BLOCX Masternode IP

When logged in via your ZelID you can head over to https://home.runonflux.io/apps/globalapps and to the “My Apps” Tab. Here you will be able to Manage and visit your new BLOCX deployment that you have just done. Click on the arrow pointing down to see your application specifications and the IPs running it. You will need one of these IPs for Step 9 at BLOCX. Gitbook or simply follow the guide here on Medium.

You can for example check the Logs of the individual IPs to see the BLOCX Masternode syncing properly.

  1. Visit one IP by clicking on “Visit FluxNode”
  2. Log in with your ZelID
  3. Navigate to “Apps”, “Local Apps”, “My Local Apps”
  4. Click “Manage”, “Manage App”, “Log File”

21. Lets move back to BLOCX. Wallet and type the following RPC command, to create an address for the owner of the masternode:

getnewaddress

Example output

B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod

Type the following RPC command, to create an address for used for proposal voting:

getnewaddress

Example output

B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS

Type the following RPC command, to create an address to receive the masternode reward:

getnewaddress

Example output

BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL

22. Prepare the ProRegTx transaction by modifying the following line.

protx register_prepare 618599438df959fc0647ad1895808ba0fef96282bf24eb177134cb0c329c8d41 1 159.89.31.63:12972 B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod 050564992464a87643d273e87334fda1e8beb52e9605b9cef2fe73eb3a063f12c8f03a6fa4f07e26a1e9e5175e155c91 B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS 0 BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL BHu7BFFtfsU3FgfUX1y5JnAQNVZ28348UK

618599438df959fc0647ad1895808ba0fef96282bf24eb177134cb0c329c8d41 — Transaction id from the RPC command “masternode outputs”.

1 — Single digit from the RPC command “masternode outputs”.

95.216.64.249:12972 — Choose one external IPv4 address from STEP 20 at Flux Platform.

B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod — Address of the owner of the masternode.

050564992464a87643d273e87334fda1e8beb52e9605b9cef2fe73eb3a063f12c8f03a6fa4f07e26a1e9e5175e155c91 — “public” value from the RPC command “bls generate”.

B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS — Address used for proposal voting.

BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL — Address to receive the masternode reward.

BHu7BFFtfsU3FgfUX1y5JnAQNVZ28348UK — Address to where you send the masternode amount fee.

Paste the modified line into your console.

Example output

{ “tx”: “0300010001ac7584669c70526e0e338d6a2477dc648788140dd0dcbc5915878f9c632d129b0100000000feffffff01e551cd1d000000001976a9149385c0ceafd77df3619e604f4ce7d0317bbcbfae88ac00000000d1010000000000418d9c320ccb347117eb24bf8262f9fea08b809518ad4706fc59f98d439985610100000000000000000000000000ffff9f591f3f32ac1730a9104ead8b642345c1300e81c4d78e874de6050564992464a87643d273e87334fda1e8beb52e9605b9cef2fe73eb3a063f12c8f03a6fa4f07e26a1e9e5175e155c910929cbddb56d0fbd2993de634c3ed42de5a8455700001976a914b4b5864ed646cd8591a8ed996fa6c25de0b98bce88ac8f420b431efe6e62a55533099d2e99759767d38f94461325508afe3feadd0a9f00”, “collateralAddress”: “BRrfbPvmgds7XFvU4xhsCVegDM4Do6EyYp”, “signMessage”: “BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL|0|B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod|B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS|c8ebf2ae235d658e0809915348718dbb262f6884473c00448ba93e7ce4648070” }

23. Sign the ProRegTx transaction by modifying the following line.

signmessage “BRrfbPvmgds7XFvU4xhsCVegDM4Do6EyYp” “BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL|0|B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod|B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS|c8ebf2ae235d658e0809915348718dbb262f6884473c00448ba93e7ce4648070”

BRrfbPvmgds7XFvU4xhsCVegDM4Do6EyYp — “collateralAddress” value from the RPC command “protx register_prepare”.

BLvahoF6T7b8NY5wACtDoS9NzWPjRhNKuL|0|B6ZhT7SR1BQSUYrab3isCGEmJGwndSxGod|B5HXmW9iYzZq89LdH8eUXEzSwwwEaQ3XKS|c8ebf2ae235d658e0809915348718dbb262f6884473c00448ba93e7ce4648070 — “signMessage” value from the RPC command “protx register_prepare”.

Paste the modified line into the console of your wallet.

Example output

ILrWvvZRZeZhnfFtNwd087rwGsiPJH28GfmoPfjSDhUcEY+joeUd82/lqVnO0FD0V1L8vpjYju92fjMPITVScGI=

24. Submit the ProRegTx transaction by modifying the following line.

protx register_submit 0300010001ac7584669c70526e0e338d6a2477dc648788140dd0dcbc5915878f9c632d129b0100000000feffffff01e551cd1d000000001976a9149385c0ceafd77df3619e604f4ce7d0317bbcbfae88ac00000000d1010000000000418d9c320ccb347117eb24bf8262f9fea08b809518ad4706fc59f98d439985610100000000000000000000000000ffff9f591f3f32ac1730a9104ead8b642345c1300e81c4d78e874de6050564992464a87643d273e87334fda1e8beb52e9605b9cef2fe73eb3a063f12c8f03a6fa4f07e26a1e9e5175e155c910929cbddb56d0fbd2993de634c3ed42de5a8455700001976a914b4b5864ed646cd8591a8ed996fa6c25de0b98bce88ac8f420b431efe6e62a55533099d2e99759767d38f94461325508afe3feadd0a9f00 ILrWvvZRZeZhnfFtNwd087rwGsiPJH28GfmoPfjSDhUcEY+joeUd82/lqVnO0FD0V1L8vpjYju92fjMPITVScGI=

0300010001ac7584669c70526e0e338d6a2477dc648788140dd0dcbc5915878f9c632d129b0100000000feffffff01e551cd1d000000001976a9149385c0ceafd77df3619e604f4ce7d0317bbcbfae88ac00000000d1010000000000418d9c320ccb347117eb24bf8262f9fea08b809518ad4706fc59f98d439985610100000000000000000000000000ffff9f591f3f32ac1730a9104ead8b642345c1300e81c4d78e874de6050564992464a87643d273e87334fda1e8beb52e9605b9cef2fe73eb3a063f12c8f03a6fa4f07e26a1e9e5175e155c910929cbddb56d0fbd2993de634c3ed42de5a8455700001976a914b4b5864ed646cd8591a8ed996fa6c25de0b98bce88ac8f420b431efe6e62a55533099d2e99759767d38f94461325508afe3feadd0a9f00 — “tx” value from the RPC command “protx register_prepare”.

ILrWvvZRZeZhnfFtNwd087rwGsiPJH28GfmoPfjSDhUcEY+joeUd82/lqVnO0FD0V1L8vpjYju92fjMPITVScGI= — Output from the RPC command “signmessage”.

Paste the modified line into the console of your wallet.

Example output

9c76272b7ef2a7456c84158424eb138bd3636b09aa2beae973bbed921f1f7868

PS! Please remember that your application is only subscribed for the duration you have chosen during the registration at Details. If you have chosen one month it is subscribed for 22,000 Flux blocks which is ~ 44,000 minutes so around one month. You will need to renew the payment every month so your app does not get kicked off the network.

  1. Visit https://home.runonflux.io/ and log in with your ZelID
  2. Navigate to “Apps”, “Global Apps”, “My Apps”
  3. Click “Manage”, “Manage App”, “Update Specifications”
  4. Leave all the variables like they are, Click “Compute Update Message”
  5. Sign the Message with the ZelID App and click “Update Flux App” after
  6. Click “Pay with Zelcore” to make the Flux Payment
  7. Voilà your Node has been renewed for 22,000 blocks

Have Fun supporting BLOCX with decentralized infrastructure!

Learn more about Flux at www.runonflux.io
Learn more about BLOCX at https://blocx.tech/

--

--

BLOCX.

Safety Layer of DePIN. Designed to meet your diverse needs while prioritizing security and efficiency.