Read-Only Node
How to run a Read-Only Node
Read-Only Nodes
Read-Only Nodes are nodes that do not participate in the consensus process. Instead, they connect to full nodes or the network's APIs to retrieve information from the blockchain.
Read-only nodes can be used for various purposes, such as querying transaction history, checking account balances, and monitoring network activity.
They are "read-only" because they cannot write or create new transactions on the blockchain; they can only read and display data.
You must install a read-only node before you can upgrade to a validator node!
Launch cloud instance
You can either run a node on your own hardware or use a cloud provider.
We would recommend choosing one of the big cloud providers, e.g. Amazon AWS.
Node Specifications
We recommend the following or better:
m5.xlarge General Purpose Instance with 4 vCPUs (3.1 GHz), 16GB of memory, up to 10 Gbps network bandwidth, and at least 500 GB of disk space. AWS m6i.2xlarge, c6i.4xlarge can provide better performance.
We would recommend going with Ubuntu Server 22.04 LTS (64-bit).
Network Settings
Open port 22 for SSH
Open port 5050 for both TCP and UDP traffic.
Open port 3000
Open port 4000
A custom port can be used with --port
flag when run your opera node.
Set up Non-Root User
If there is already a non-root user available, you can skip this step.
For
(validator)$ USER={USERNAME}
write your non-root username.Make sure to paste your public SSH key into the
authorized_keys
file of the newly created user in order to be able to log in via SSH.
Add the following line to the end of the file:
If this doesn't work for you, try
sudo passwd nonrootusername
Not required in 22.04
Now close the root SSH connection to the machine and log in as your newly created user:
Install required tools
You are still logged in as the new user via SSH.
Now we are going to install Go and Opera.
First, install the required build tools:
Install Go
If that didn't work, you could also try:
Export the required Go paths:
If the final line did not work for you, try (validator)$ . ~/.bash_aliases
instead.
Validate your Go installation
Install Opera
Validate your Opera installation
Download Genesis File
A genesis file is a configuration file that contains the initial settings and parameters for the VinuChain network when it is launched.
The genesis file is a crucial component of any blockchain network, as it defines the initial state of the network, including information about the initial block, accounts, validators, and other network-specific parameters.
Drive: Genesis Files
You can download a genesis file from the Drive above, or from the following commands:
Mainnet:
Testnet:
Start Opera Read-Only Node
First, start the Opera read-only node to interact with it and to create a validator wallet:
Mainnet:
Testnet:
Replace
GENESIS_FILENAME
with the actual Genesis file's filename you are using.
There are different ways to Run your read-only node.
Note that https and ws must not be enabled on a server that stores wallet account.
Starting up your node will look something like this:
The node should start to sync the network data:
Once it's running you should wait until it's synced up to the latest block.
A Read-Only Node can be upgraded into a Validator.
Last updated