Vana Node Setup - DLP Validator Satori
Special Thanks 👏 : https://x.com/Keeperssd - https://medium.com/@hamzahnorsihab07 - https://service.josephtran.xyz/
Server Advisor :
⭐⭐⭐ Contabo : https://bit.ly/contabourl
PQ : https://pq.hosting/?from=627713
Hetzner : https://hetzner.cloud/?ref=ASjlHtRt2swV
Digital Ocean : https://digitalocean.pxf.io/q465nn
Minimum hardware requirements :
CPU | RAM | Disk | Ubuntu |
---|---|---|---|
1+ | 8 GB+ | 10+ | Ubuntu 22.04 |
Update :
1. Install Python 3.11:
2. Install Poetry
3. Install Nodejs & Npm
# Setup steps
1. Clone Vana-dlp-chatgpt git repo
2. Install dependencies
3. Install Vana CLI
4. Create wallet
This creates two key pairs:
Coldkey: for human-managed transactions (like staking)
Hotkey: for validator-managed transactions (like submitting scores)
Follow the prompts to set a secure password. Save the mnemonic phrases securely; you'll need these to recover your wallet if needed.
Add Satori Testnet to Metamask:
Network name: Satori Testnet
RPC URL: https://rpc.satori.vana.org
Chain ID: 14801
Currency: VANA
5. Export your private keys
Follow the prompts and securely save the displayed private keys
6. Import your coldkey and hotkey addresses to Metamask:
Click your account icon in MetaMask and select "Import Account"
Select "Private Key" as the import method
Paste the private key for your coldkey
Repeat the process for your hotkey
Fund both addresses with testnet VANA:
Visit https://faucet.vana.org
Connect your Metamask wallet
Request VANA for both your coldkey and hotkey addresses
Note: you can only use the faucet once per day. Use the testnet faucet available at https://faucet.vana.org to fund your wallets, or ask a VANA holder to send you some test VANA tokens.
Always keep your private keys and mnemonic phrases secure. Never share them with anyone.
# Creating a DLP
Generate Encryption Keys
Run the key generation script:
This script generates RSA key pairs for file encryption/decryption in the DLP.
Follow the prompts to enter your name, email, and key expiration.
The script generates four files:
public_key.asc
andpublic_key_base64.asc
(for UI)private_key.asc
andprivate_key_base64.asc
(for validators)
# Deploy DLP Smart Contracts
Clone the DLP Smart Contract repo:
Install Yarn
Install dependencies:
Edit the .env
file in the vana-dlp-smart-contracts
directory:
.env
file in the vana-dlp-smart-contracts
directory:Copy env.example
to .env
Edit .env
Deploy contracts:
Verify contract
Configure the DLP contract (DataLiquidityPool):
Visit https://satori.vanascan.io/address/YOUR_DLP_POOL_CONTRACT_ADDRESS
Go to "Write proxy" tab
Connect your cold wallet which you imported at previous step
Call
updateFileRewardDelay
and set it to 0Call
addRewardsForContributors
with 1000000000000000000000000 (1 million tokens)
Update the .env
file in the vana-dlp-chatgpt
directory:
.env
file in the vana-dlp-chatgpt
directory:Paste this content and change your info:
Get OpenAI API here: https://platform.openai.com/settings/profile?tab=api-keys
DLP_SATORI_CONTRACT=0x... (DataLiquidityPool address)
DLP_TOKEN_SATORI_CONTRACT=0x... (DataLiquidityPoolToken address)
PRIVATE_FILE_ENCRYPTION_PUBLIC_KEY_BASE64=... (content of public_key_base64.asc)
Find value of public_key_base64.asc
at: /root/vana-dlp-chatgpt/public_key_base64.asc
# Validator Setup
Ensure you're in the vana-dlp-chatgpt
directory:
vana-dlp-chatgpt
directory:Fund Validator with DLP Tokens
For DLP creators:
Import DLP token to Metamask using
<DataLiquidityPoolToken address>
Send 10 your own DLP tokens to your coldkey address and hotkey address
For non-DLP creators:
Request DLP tokens from the DLP creator
Once received, ensure they are in your coldkey address
Register as a Validator
Note that the following commands use the local chatgpt vanacli tool that supports custom dlp
commands.
Register your validator:
Run Validator
You can run with systemd in the background with next step.
Find path of Poetry:
Create service:
Start service
Check log:
Last updated