Getting Started

Build the XE CLI, create a wallet, request XE from the testnet faucet, and make your first transactions.


This guide covers building the XE CLI from source, creating a wallet, funding it from the testnet faucet, and making your first transactions.

[!WARNING] Work in progress — not everything here works today XE is pre-1.0 and this is a testnet. Commands are added, changed and broken as development goes, and parts of the network go down. Two things to know before leasing:

  • The faucet hands out XE, not XCU. XCU is account credit, topped up by the operators and spent on compute. Unless your account has been topped up, you can read the compute market but not pay for a lease.
  • Provider availability is not guaranteed. xe providers shows who is online right now (two providers at the time of writing); when it is empty, xe lease has nobody to accept a lease and xe ssh has nothing to connect to. A provider advertisement alone does not prove that acceptance, provisioning and SSH work end to end.

Prerequisites

  • Go 1.25+ (the repository pins the exact release in .go-version; export GOTOOLCHAIN="go$(cat .go-version)" selects it without a version manager)
  • Git and curl
  • make — it drives the build and is not present on a clean Ubuntu image, so install it first (sudo apt-get install -y make) or the first build command below fails

Building from Source

The source is public at github.com/xeprotocol/xe, licensed under the GPL-3.0 — use it, modify it, redistribute it, provided you pass on the same freedoms and publish the source of anything you distribute. No release binary has been tagged yet, so building is the way to get one.

git clone https://github.com/xeprotocol/xe.git
cd xe
make build          # produces ./xe

make is the single definition of how the binary is built. Builds are reproducible — pinned toolchain (.go-version), -trimpath, -buildvcs=false, CGO_ENABLED=0 — so the same commit produces the same bytes on any machine. make verify-repro proves it locally.

One binary does everything: xe node runs the daemon, and every other subcommand is a client that talks to a node's HTTP API.

Running a Node

Start a node with default settings: libp2p on port 9000, HTTP API on port 8080, data in ./data.

./xe node

Connecting to the Testnet

A node's identity is its genesis, not its binary. A stock build embeds a placeholder genesis that no live network uses, and peers ban a node whose network ID does not match theirs. Point the node at the published genesis bundle instead, and it joins the live network without a rebuild. Verify the bundle first, then start:

./xe verify-genesis --genesis-dir ./genesis/testnet-0006 \
  --expect-network-id testnet-0006

./xe node \
  --data "$HOME/.xe/testnet-0006" \
  --genesis-dir ./genesis/testnet-0006 \
  --dial /ip4/45.77.226.208/tcp/9000/p2p/12D3KooWJg4PQYGSfNCupBWZdEWbKj7pgdp5MmmUXbPdBcp6YDtT,/ip4/144.202.4.117/tcp/9000/p2p/12D3KooWEqv1BRZkSntgcgbrJh7bobFRSkBdRupubvNZLEx8hZLA \
  --port 9000 --api --api-port 8080

--data holds the node's persistent state and identity; after a testnet wipe use the new genesis bundle and a fresh data directory, or the node refuses to start with genesis mismatch: this data dir belongs to a different network.

The current network is testnet-0006, ledger genesis 65d9070a3043…b6fc82, statechain genesis 59b9875cd2f0…32c284a (confirm both against GET /node and GET /statechain/blocks/0 on a bootstrap node; the genesis bundle is published in the repository's genesis/testnet-0006/ directory). There are three bootstrap nodes:

NodeAPIp2p
Londonhttps://ldn.core.test.network/ip4/45.77.226.208/tcp/9000/p2p/12D3KooWJg4PQYGSfNCupBWZdEWbKj7pgdp5MmmUXbPdBcp6YDtT
Frankfurthttps://ffm.core.test.network/ip4/192.248.176.245/tcp/9000/p2p/12D3KooWEbQ5zDvSz6kKE5ppzwBXKRFsnZbHNjRx94QZFaPeGA4e
New Yorkhttps://nyc.core.test.network/ip4/144.202.4.117/tcp/9000/p2p/12D3KooWEqv1BRZkSntgcgbrJh7bobFRSkBdRupubvNZLEx8hZLA

Peer IDs are derived from each node's key and change if that key is regenerated. Fetch the current one from the node's API:

curl -s https://ldn.core.test.network/node | jq -r .id

The bootstrap list you configure is your node's first view of the network, so use more than one. Once connected, the node also advertises itself in the DHT under xe/discovery/1/<network_id> and dials peers it finds there (up to 24, --discovery-peers; --no-discovery turns this off), and mDNS finds peers on your LAN (--disable-mdns). Check that it worked:

curl -s localhost:8080/node | jq '{network_id, peers: (.peers | length)}'

Confirm network_id is testnet-0006 and peer_count becomes greater than zero.

[!NOTE] A testnet wipe retires these values testnet-0006, the genesis hashes and the bundle above are all discarded when the protocol changes and the network is re-bootstrapped. Re-check this page after a wipe, or ask the network itself: curl -s https://ldn.core.test.network/statechain/kv/sys.network_id.

Using the CLI

Point the CLI at a testnet node and interact without running your own:

export XE_NODE=https://ldn.core.test.network

Hello world — two wallets and a transfer

The shortest useful thing you can do: create two wallets, fund one, send to the other. Keep each wallet in its own file with XE_WALLET.

XE_WALLET=~/.xe/alice.seed xe wallet create
XE_WALLET=~/.xe/bob.seed   xe wallet create
Wallet created!
  Address:    7d27d0a34cc2a5cd08f65905a983fabec1a517baf6d3cdab0a921256ecb9af57
  Public key: 665b50f96f8a4a86e1940386cce7fa1c0592c8eba9524fe9d579254fc341f02b
  File:       /home/you/.xe/alice.seed

Recovery phrase:

  1. <word 1> ... 24. <word 24>

The actual command prints 24 numbered BIP39 words and backup instructions. Write them down. The phrase is your only backup unless you separately keep the hex seed. xe wallet phrase shows the stored words again; xe wallet restore reads 12, 15, 18, 21 or 24 words from stdin and refuses to overwrite a wallet. The added alice.phrase and unchanged alice.seed files both use mode 0600. The phrase file records the words, account index and wallet address. Reveal checks that address against the seed; a missing or mismatched address prints no words and directs you to the seed backup. Create and restore also refuse to overwrite a stray phrase file when the seed is missing.

XE uses BIP39 + SLIP-0010 ed25519 at m/44'/22597'/account', default account 0, with coin type 22597. Restore another index with --account N. --passphrase explicitly enables hidden BIP39 passphrase input. Creation asks twice and writes no files unless the entries match exactly. Restore asks once; check its printed address. Never put either secret on argv or in logs. The passphrase is never stored; keep it separately. A wrong passphrase opens a different, empty account. Wallets made before v2 restore from their hex seed.

The address is what you hand out, and it is not the public key — it is sha256("xe/account/v1" ‖ pubkey), so identity and credential stay separate. The seed file is the account: back it up, and treat anyone who has it as the owner of the funds.

Fund Alice, then claim the grant:

XE_WALLET=~/.xe/alice.seed xe faucet
XE_WALLET=~/.xe/alice.seed xe receive
XE_WALLET=~/.xe/alice.seed xe wallet balance

Send Bob 0.25 XE, using the address printed for Bob above, and let Bob claim it:

XE_WALLET=~/.xe/alice.seed xe send <bob-address> 0.25 --asset XE --memo "hello world"
XE_WALLET=~/.xe/bob.seed   xe receive
XE_WALLET=~/.xe/bob.seed   xe wallet balance

Every transfer is two blocks — a send on the sender's chain and a receive on the recipient's — so funds sit as pending until the recipient signs for them. Nothing lands in an account without a block signed by its own key. Both sides settle in a few seconds, and neither pays a fee.

Any account is public, so you can watch the same thing from outside:

curl -s $XE_NODE/accounts/<address>/balance
curl -s $XE_NODE/accounts/<address>/chain

[!NOTE] How the faucet works xe faucet asks the faucet service (XE_FAUCET, default https://faucet.test.network) for a grant — a bare HTTP POST, no proof-of-work. It sends 1 XE a grant, up to 5 grants per account every 15 minutes, from a pre-funded wallet; it mints nothing and holds no minter key. A sixth request inside that window returns 429 with a retry_after_seconds and a message that says how many minutes to wait, as does a sixth grant to one IP address. Claims from VPN, proxy and hosting networks get 403, so claim from a home or mobile connection. The grant arrives as a pending send, so follow it with xe receive.

Messaging

Chat is off-chain and free. The recipient registers so the network knows which node they listen on; registrations lapse after 30 minutes, and --watch keeps one alive:

XE_WALLET=~/.xe/bob.seed   xe directory register
XE_WALLET=~/.xe/alice.seed xe chat send <bob-address> "hello bob"
XE_WALLET=~/.xe/bob.seed   xe chat read              # --follow --json streams new messages

Compute

xe providers                                      # List compute providers
xe lease --vcpus 1 --memory 1024 --duration 300   # Create a lease (needs XCU)
xe lease status <hash>                            # Watch it get accepted and settled
xe ssh <hash>                                     # SSH into the leased VM

[!NOTE] Leasing needs XCU and a provider Two providers are online on testnet-0006 and leases are being accepted, renewed and settled — but they are priced in XCU, which only the operators' minter accounts issue, so a fresh wallet cannot fund one yet. Always check xe providers first: provider availability changes independently of releases, and an empty list means a lease has nobody to accept it.

Docker Deployment

The repository ships a Dockerfile, a systemd unit, a pm2 ecosystem file and a Prometheus/Grafana/Alertmanager bundle in deploy/, and docs/run-a-node.md is the full operator guide — use those rather than the sketch below if you are running a node for real. A minimal equivalent:

FROM golang:1.25-alpine AS build
ARG VERSION=dev
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -ldflags "-X main.version=${VERSION}" -o /xe ./cmd/xe/

FROM alpine:3.20
COPY --from=build /xe /usr/local/bin/xe
EXPOSE 8080 9000
ENTRYPOINT ["xe", "node"]

Web-Based Quick Start

If you prefer a browser-based experience, use the hosted web wallet at ldn.test.network/wallet:

  1. Open the wallet, save its 24-word recovery phrase, and confirm three random words. The seed and phrase are encrypted client-side with AES-GCM.
  2. Request testnet XE from the faucet — 1 XE a grant, up to 5 per account every 15 minutes
  3. Explore the network via the Explorer
  4. Send transactions or use chat. Leasing compute is CLI-only and needs XCU, which testers cannot obtain yet

Environment Variables

VariableDefaultDescription
XE_NODEhttps://ldn.core.test.networkNode API URL
XE_WALLET~/.xe/wallet.seedWallet seed file
XE_FAUCEThttps://faucet.test.networkFaucet service URL
XE_SSH_HOSTldn.test.networkSSH gateway hostname
XE_SSH_PORT2222SSH gateway port