Run Testnet UNIT1 Node
Last updated
Last updated
.
NOTE: Ensure you meet the before running a .
Run a Testnet Unit1 node by following the steps:
.
.
.
Hardware: Ensure you have 4 CPU cores, 8 GB RAM, and 60+ GB SSD.
Account: Create a wallet in Testnet.
Docker: Install the .
Blockchain Data:
Download blockchain_last.tar via the .
Or see other .
Optional. For Mining Only.:
WAVES: Obtain a minimum of 0.005 to cover the .
NOTE: The Consensus Client invokes the on behalf of your account. If your account has a , it must permit such transactions.
Lease: a minimum of 20,000 WAVES to your account.
Google Chrome: Install the to ensure compatibility with the .
Create the main directory and go to it:
NOTE: Ensure you have the read and write access to the directory.
In the main directory, create the subdirectories:
In the data/waves subdirectory, unpack the blockchain_last.tar archive.
Grant the user with the uid 1000 the write access to the subdirectories:
Generate a node key and a JWT secret:
In the main directory:
Create the waves.conf file and paste the code block into it:
WARNING: You must:
Insert your Testnet account's seed converted to a base58-encoded byte array.
Set a password as a string.
Specify your server's static IP address. If your server does not have a static IP address, remove the declared-address line.
Create the genesis.json file and paste the code block into it:
NOTE: To verify that Besu is running with the correct genesis file, execute the following command on your host:
curl -H 'content-type: application/json' -sd '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x0", false],"id":1}' 127.0.0.1:8545 | jq .result.hash
. The expected result is:0x55650023cd3c23f18d88073486a6caf4d4436b81a401877eb07a5ce6ba6689c2
.
Create the log4j2.xml file and paste the code block into it:
Create the static-nodes.json file and paste the code block into it:
Create the docker-compose.yml file and paste the code block into it:
In the docker-compose.yml file, Besu's JSON-RPC port (8545) and Waves node's HTTP API port (6869) are mapped to the host's local address: 127.0.0.1:8545:8545 and 127.0.0.1:6869:6869. This configuration ensures the endpoints are accessible only to consumers running locally on the host machine.
If you need to allow access from external addresses, adjust the port mappings to 8545:8545 and 6869:6869. Alternatively, consider using a reverse proxy like nginx for controlled access.
Launch your node via the command:
NOTE: The Execution chain is synced with the network log indicates that the Consensus Client is synchronized with the network.
NOTE: With the shared setup, a single node with the Consensus Client module can participate in multiple Unit Zero networks simultaneously. This configuration allows the node to earn mining rewards in each network independently.
In the main directory, create the besu.yml file and paste the code block into it:
Replace the content of the files:
For docker-compose.yml:
NOTE: The updates items:
The Waves node image:
ghcr.io/unitsnetwork/consensus-client:testnet-2
.The extra port for the Eaves node:
'6850:6850'
.
For waves.conf:
Save the content:
From genesis.json to genesis-2.json.
From static-nodes.json to static-nodes-2.json.
Create the data and log directories for the besu-2 container:
In the header of the page, click Sign in. The Connect a wallet to get started window will open.
In the Connect a wallet to get started window, select one of the sign-in options:
Sign in with Keeper.
Sign in with Exchange(Seed).
Sign in with Exchange(Email).
Sign in with Metamask.
The wallet extension will open.
In the wallet extension, sign in to your node account.
In the rewardAddressHex field, enter your account address.
LIMITATIONS: The data field accepts input only in string format.
Click Invoke.
NOTE: The transaction fee is 0.005 WAVES.
WARNING:
Docker and UFW have a known . This issue makes it impossible to map a container's port to a host port (e.g., '8545:8545'
) and restrict external access using UFW at the same time.
Go to the page.
In the block:
Confirm the transaction in your wallet. Nodes chosen for block creation receive epoch rewards. .
NOTE: If you need help, contact us via our for assistance.