XODE X1 Node
These steps run a node for XODE X1, a standalone Substrate chain with its own validators. Unlike the XODE Node, it doesn't connect to the Polkadot Relay Chain.
| Property | Value |
|---|---|
| Chain | Xode (xode) |
| Token | XON, 12 decimals |
| SS58 prefix | 280 |
| Block time | 1 second |
| EVM chain ID | 34170 |
The node binary and chain spec are published on the xode-solochain-release releases page. The commands below download v0.1.1; for a newer release, replace v0.1.1 with its tag.
Public RPC endpoints
You don't need your own node to use XODE X1. These public endpoints accept WebSocket (wss://) and HTTPS JSON-RPC on the same host. Pick the one closest to you; all three serve the same chain.
| Endpoint | Operator | Location | Notes |
|---|---|---|---|
wss://solochain.xode.net | XODE | Seoul | Primary |
wss://x1rpc.xode.net | RockSon | Frankfurt | Archive node, full history |
wss://x1rpc2.xode.net | RockSon | Tokyo | Archive node, full history |
Open any of them in Polkadot-JS Apps: solochain.xode.net · x1rpc.xode.net · x1rpc2.xode.net.
Running a XODE X1 node directly in the host
Minimum AWS Instance type: t2.medium
- vCPU: 2
- RAM: 4.0GB
- Storage: 500GB
- Operating System: Ubuntu 22.04 or higher, x86-64
STEP 1: Download the xode-solochain-node binary
curl -L "https://github.com/D2-Xode/xode-solochain-release/releases/download/v0.1.1/xode-solochain-node" -o xode-solochain-nodeSTEP 2: Download the chain spec
curl -L "https://github.com/D2-Xode/xode-solochain-release/releases/download/v0.1.1/xode-mainnet-raw.json" -o xode-mainnet-raw.jsonSTEP 3: Make the binary executable and check that it runs
chmod +x xode-solochain-node
./xode-solochain-node --versionSTEP 4: Make a base path directory
mkdir dataSTEP 5: Create a shell script:
nano launch-node.sh#!/bin/bash
BASE_DIR=/home/ubuntu
$BASE_DIR/xode-solochain-node \
--chain $BASE_DIR/xode-mainnet-raw.json \
--base-path $BASE_DIR/data \
--rpc-port 9944 \
--telemetry-url "wss://telemetry.polkadot.io/submit/ 0" \
--name "xode-x1-node-name"Change BASE_DIR if you downloaded the files somewhere other than /home/ubuntu, and set --name to the name your node should show on telemetry.
STEP 6: Make the launch-node.sh executable
chmod +x launch-node.shSTEP 7: Test if it runs
./launch-node.shThe log should show the node importing blocks. Stop it with Ctrl+C before the next step.
STEP 8: Create a service:
sudo nano /etc/systemd/system/xode-solochain.service[Unit]
Description=Xode X1 Node
[Service]
ExecStart=/home/ubuntu/launch-node.sh
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.targetSTEP 9: Enable the service
sudo systemctl enable xode-solochain.serviceSTEP 10: Start the service
sudo systemctl start xode-solochain.serviceSTEP 11: Wait for 30 seconds and check if the service is running
journalctl -f -u xode-solochainRunning a XODE X1 validator
A validator authors and finalizes blocks. Compared with the node above, it has three additions: a fixed node key, the --validator flag, and session keys registered on-chain. Each session (1 hour), the candidates ranked highest by bond plus delegated stake become the validators.
You need an account holding at least 100 XON to bond, plus some XON for fees. The steps below set up a validator from scratch, on a machine that meets the same minimum requirements as a node.
STEP 1: Download the xode-solochain-node binary
curl -L "https://github.com/D2-Xode/xode-solochain-release/releases/download/v0.1.1/xode-solochain-node" -o xode-solochain-nodeSTEP 2: Download the chain spec
curl -L "https://github.com/D2-Xode/xode-solochain-release/releases/download/v0.1.1/xode-mainnet-raw.json" -o xode-mainnet-raw.jsonSTEP 3: Make the binary executable
chmod +x xode-solochain-nodeSTEP 4: Download the Polkadot binary
The polkadot binary is used only to generate the node key.
curl -L "https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2512-2/polkadot" -o polkadot
chmod +x polkadotSTEP 5: Generate a node key
./polkadot key generate-node-key --file /home/ubuntu/node-keyThe file holds the node's private network key. The command prints the node's peer ID, which other nodes use to find yours. Note it down, keep the file private, and don't lose it: the node needs the same key every time it starts.
STEP 6: Create the launch script:
nano launch-node.sh#!/bin/bash
BASE_DIR=/home/ubuntu
$BASE_DIR/xode-solochain-node \
--chain $BASE_DIR/xode-mainnet-raw.json \
--base-path $BASE_DIR/data \
--rpc-port 9944 \
--validator \
--node-key $(cat $BASE_DIR/node-key) \
--telemetry-url "wss://telemetry.polkadot.io/submit/ 0" \
--name "xode-x1-validator-name"Change BASE_DIR if you downloaded the files somewhere other than /home/ubuntu, and set --name to your validator's name. Don't add --rpc-external to a validator. Its RPC should only be reachable from the machine itself.
STEP 7: Make the launch-node.sh executable
chmod +x launch-node.shSTEP 8: Create a service:
sudo nano /etc/systemd/system/xode-solochain.service[Unit]
Description=Xode X1 Validator
[Service]
ExecStart=/home/ubuntu/launch-node.sh
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.targetSTEP 9: Enable the service
sudo systemctl enable xode-solochain.serviceSTEP 10: Start the service
sudo systemctl start xode-solochain.serviceSTEP 11: Wait for 30 seconds and check if the service is running
journalctl -f -u xode-solochainWait until the node has finished syncing before the next step.
STEP 12: Generate session keys
Run this on the validator machine:
curl -H "Content-Type: application/json" \
-d '{"id":1, "jsonrpc":"2.0", "method":"author_rotateKeys", "params":[]}' \
http://localhost:9944The result in the reply is your session keys, a long hex string starting with 0x. The node keeps the matching private keys in its base path.
STEP 13: Register the session keys on-chain
Open Polkadot-JS Apps connected to XODE X1 (RPC endpoint wss://solochain.xode.net, or any endpoint from the Public RPC endpoints table).
Go to Developer → Extrinsics and, from your validator account, submit:
session.setKeys, withkeysset to the hex string from STEP 12 andproofset to0x
STEP 14: Register as a candidate and bond
From the same account, submit:
xodeStaking.registerCandidatexodeStaking.bondCandidate, withnewBondof at least 100 XON. Enter it in the smallest unit, so 100 XON is100000000000000(12 decimals).
Your account can join the validator set at the start of the next session. Once it's a validator, the node log shows it preparing and importing blocks it authored.
Ports
| Port | Purpose |
|---|---|
| 30333 | p2p. Open it so other nodes can reach yours. |
| 9944 | Substrate JSON-RPC (HTTP and WebSocket) |
| 9615 | Prometheus metrics |
RPC only listens on localhost by default. Add --rpc-external and --rpc-cors all to the script to reach it from other machines, and put it behind a firewall or proxy if you do.
Once the node is running, connect to it with Polkadot-JS Apps.
