Create Coldkey wallet & HotKey Wallet. Follow the prompts to set a secure password. Save the mnemonic phrases securely; youβll need these to recover your wallet if needed.
Export your private keys. Follow the prompts and securely save the displayed private keys:
vanacli wallet export_private_key
Enter wallet name (default):
Enter key type [coldkey/hotkey] (coldkey): coldkey
Enter your coldkey password:
Your coldkey private key:
vanacli wallet export_private_key
Enter wallet name (default):
Enter key type [coldkey/hotkey] (coldkey): hotkey
Your hotkey private key:
Import your coldkey and hotkey addresses to Metamask:
Click your account icon in MetaMask and select "Import Account"
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.
Tutorial CREATE DLP
Create DLP, Follow the prompts to enter your name, email, and key expiration
./keygen.sh
You will get 4 files looks like this :
public_key.asc and public_key_base64.asc (for UI)
private_key.asc and private_key_base64.asc (for validators)
Deploy DLP Smart Contracts
Clone the DLP Smart Contract repo:
cd ..
git clone https://github.com/vana-com/vana-dlp-smart-contracts.git
cd vana-dlp-smart-contracts
Install dependencies:
yarn install
Edit .ENV
nano .env
Than insert this (fill with the address coldkey & private key you can get from metamask, than fill the description of token up to you)
Just do ENTER when input Name, because itβs default. Fill the password same with you crated before
Just in case you are not DLP Creator and want to registration on another DLP owner you can use the command (Change it)β
./vanacli dlp approve_validator --validator_address=<your hotkey address from Metamask>
Run your validator Node
poetry run python -m chatgpt.nodes.validator
Now Ctrl + C and stop the validator
We create a service file so that the validator works in the background. For this we are looking for a way to poetry
echo $(which poetry)
Command to create a service file, do not forget to replace the path to poetryif it is different for you (copy the entire block and paste into the terminal)
sudo tee /etc/systemd/system/vana.service << EOF
[Unit]
Description=Vana Validator Service
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/root/vana-dlp-chatgpt
ExecStart=/root/.local/bin/poetry run python -m chatgpt.nodes.validator
Restart=on-failure
RestartSec=10
Environment=PATH=/root/.local/bin:/usr/local/bin:/usr/bin:/bin:/root/vana-dlp-chatgpt/myenv/bin
Environment=PYTHONPATH=/root/vana-dlp-chatgpt
[Install]
WantedBy=multi-user.target
EOF