Skip to content

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.

PropertyValue
ChainXode (xode)
TokenXON, 12 decimals
SS58 prefix280
Block time1 second
EVM chain ID34170

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.

EndpointOperatorLocationNotes
wss://solochain.xode.netXODESeoulPrimary
wss://x1rpc.xode.netRockSonFrankfurtArchive node, full history
wss://x1rpc2.xode.netRockSonTokyoArchive 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

bash
curl -L "https://github.com/D2-Xode/xode-solochain-release/releases/download/v0.1.1/xode-solochain-node" -o xode-solochain-node

STEP 2: Download the chain spec

bash
curl -L "https://github.com/D2-Xode/xode-solochain-release/releases/download/v0.1.1/xode-mainnet-raw.json" -o xode-mainnet-raw.json

STEP 3: Make the binary executable and check that it runs

bash
chmod +x xode-solochain-node
./xode-solochain-node --version

STEP 4: Make a base path directory

bash
mkdir data

STEP 5: Create a shell script:

bash
nano launch-node.sh
bash
#!/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

bash
chmod +x launch-node.sh

STEP 7: Test if it runs

bash
./launch-node.sh

The log should show the node importing blocks. Stop it with Ctrl+C before the next step.

STEP 8: Create a service:

bash
sudo nano /etc/systemd/system/xode-solochain.service
ini
[Unit]
Description=Xode X1 Node
[Service]
ExecStart=/home/ubuntu/launch-node.sh
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.target

STEP 9: Enable the service

bash
sudo systemctl enable xode-solochain.service

STEP 10: Start the service

bash
sudo systemctl start xode-solochain.service

STEP 11: Wait for 30 seconds and check if the service is running

bash
journalctl -f -u xode-solochain

Running 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

bash
curl -L "https://github.com/D2-Xode/xode-solochain-release/releases/download/v0.1.1/xode-solochain-node" -o xode-solochain-node

STEP 2: Download the chain spec

bash
curl -L "https://github.com/D2-Xode/xode-solochain-release/releases/download/v0.1.1/xode-mainnet-raw.json" -o xode-mainnet-raw.json

STEP 3: Make the binary executable

bash
chmod +x xode-solochain-node

STEP 4: Download the Polkadot binary

The polkadot binary is used only to generate the node key.

bash
curl -L "https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2512-2/polkadot" -o polkadot
chmod +x polkadot

STEP 5: Generate a node key

bash
./polkadot key generate-node-key --file /home/ubuntu/node-key

The 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:

bash
nano launch-node.sh
bash
#!/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

bash
chmod +x launch-node.sh

STEP 8: Create a service:

bash
sudo nano /etc/systemd/system/xode-solochain.service
ini
[Unit]
Description=Xode X1 Validator
[Service]
ExecStart=/home/ubuntu/launch-node.sh
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.target

STEP 9: Enable the service

bash
sudo systemctl enable xode-solochain.service

STEP 10: Start the service

bash
sudo systemctl start xode-solochain.service

STEP 11: Wait for 30 seconds and check if the service is running

bash
journalctl -f -u xode-solochain

Wait until the node has finished syncing before the next step.

STEP 12: Generate session keys

Run this on the validator machine:

bash
curl -H "Content-Type: application/json" \
  -d '{"id":1, "jsonrpc":"2.0", "method":"author_rotateKeys", "params":[]}' \
  http://localhost:9944

The 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, with keys set to the hex string from STEP 12 and proof set to 0x

STEP 14: Register as a candidate and bond

From the same account, submit:

  1. xodeStaking.registerCandidate
  2. xodeStaking.bondCandidate, with newBond of at least 100 XON. Enter it in the smallest unit, so 100 XON is 100000000000000 (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 ​

PortPurpose
30333p2p. Open it so other nodes can reach yours.
9944Substrate JSON-RPC (HTTP and WebSocket)
9615Prometheus 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.