Drosera Installation
System Requirements
- CPU: 2 Cores
- Memory: 4GB RAM
- Disk: 20 GB
- You need faucet also.
Install
1. Install Dependencies
sudo apt-get update && sudo apt-get upgrade -y
sudo apt install curl ufw iptables build-essential git wget lz4 jq make gcc nano automake autoconf tmux htop nvme-cli libgbm1 pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev -y
2. Install Docker (skip if already installed)
1. Install Dependency
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
2. Add GPG key Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/docker.gpg
3. Add docker repo
echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
4. Install Docker CE
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io -y
5. Check Docker Status
sudo systemctl status docker
Trap Setup
1. Install Drosera
curl -L https://app.drosera.io/install | bash
source /root/.bashrc
droseraup
2. Install Foundry
curl -L https://foundry.paradigm.xyz | bash
source /root/.bashrc
foundryup
3. Install Bun
curl -fsSL https://bun.sh/install | bash
Deploy Contract & Trap
1. Create folder
mkdir my-drosera-trap && cd my-drosera-trap
2. Github Config
Replace Github_Email
& Github_Usernamee
:
git config --global user.email "Github_Email"
git config --global user.name "Github_Username"
3. Initialize Trap
forge init -t drosera-network/trap-foundry-template
4. Compile Trap
curl -fsSL https://bun.sh/install | bash
bun install
forge build
if you face an error like this:
try to run again this script
curl -fsSL https://bun.sh/install | bash
bun install
forge build
5. Deploy Trap
Replace PrivKey
with your Private Key!
DROSERA_PRIVATE_KEY=PrivKey drosera apply
enter command, wait, write ofc and enter.
Dashboard Configuration
1. Connect your Drosera VM Wallet to https://app.drosera.io/
2. Clik on Traps Owned
or search your Trap Address
3. Open your Trap on Dashboard and Click on Send Bloom Boost
and deposit some Holesky ETH on it. Leave some for gas fee
4. Fetch Blocks
drosera dryrun
Operator Setup
1. Setup Trap Config
cd my-drosera-trap
nano drosera.toml
edit private_trap
and whitelist
like this:
private_trap = true
whitelist = ["EVM_Address"]
2. Update Trap Configuration
Replace PrivKey
with your Private Key!
DROSERA_PRIVATE_KEY=PrivKey drosera apply
3. Download and Extract Operator CLI
curl -LO https://github.com/drosera-network/releases/releases/download/v1.16.2/drosera-operator-v1.16.2-x86_64-unknown-linux-gnu.tar.gz
tar -xvf drosera-operator-v1.16.2-x86_64-unknown-linux-gnu.tar.gz
4. Check Version and move path to run it globally
./drosera-operator --version
sudo cp drosera-operator /usr/bin
drosera-operator
5. Install Docker Image
docker pull ghcr.io/drosera-network/drosera-operator:latest
6. Register Operator
replace PrivKey
with your Private Key
drosera-operator register --eth-rpc-url https://ethereum-holesky-rpc.publicnode.com --eth-private-key PrivKey
Setup Systemd
1. Configure Systemd service file
replace Priv_Key
and VPS_IP
sudo tee /etc/systemd/system/drosera.service > /dev/null <<EOF
[Unit]
Description=drosera node service
After=network-online.target
[Service]
User=$USER
Restart=always
RestartSec=15
LimitNOFILE=65535
ExecStart=$(which drosera-operator) node --db-file-path $HOME/.drosera.db --network-p2p-port 31313 --server-port 31314 \
--eth-rpc-url https://ethereum-holesky-rpc.publicnode.com \
--eth-backup-rpc-url https://1rpc.io/holesky \
--drosera-address 0xea08f7d533C2b9A62F40D5326214f39a8E3A32F8 \
--eth-private-key Priv_Key \
--listen-address 0.0.0.0 \
--network-external-p2p-address VPS_IP \
--disable-dnr-confirmation true
[Install]
WantedBy=multi-user.target
EOF
2. Run Operator
sudo systemctl daemon-reload
sudo systemctl enable drosera
sudo systemctl start drosera
3. Check Logs
journalctl -u drosera.service -f
4. Opt In Trap
Done! Check Node Liveness on your Dashboard.