# Run a BTCX testnet node

BTCX (Bitcoin2x) is an experimental post-quantum fork of Bitcoin Core: BIP 360 Pay-to-Merkle-Root (P2MR)
outputs with ML-DSA and SLH-DSA signatures, on a public testnet called `btcxtest`. It is not Bitcoin and
its coins have no value. Website: https://bitcoin2x.org/ · Source: https://github.com/yoniassia/Bitcoin2x

This file is written for AI agents and people. To set up a node on a cloud account, follow the prompt
for that cloud below. Ask the user before creating anything that costs money.

## Facts

- OS: Ubuntu 22.04 or 24.04, x86-64 or ARM64.
- Size: 1 vCPU / 1 GB / 20 GB disk minimum with `BTCX_PRUNE=2000`; 2+ vCPU / 4 GB / 20 GB for the full chain (under 1 GB today).
- Firewall: allow inbound TCP 19777 (P2P) from anywhere. Never expose RPC (19776).
- Install (downloads the release binaries from GitHub releases and checks their SHA256SUMS; run again to update):

      curl -fsSL https://raw.githubusercontent.com/yoniassia/Bitcoin2x/master/contrib/install-node.sh | sudo bash

  Options before `bash`: `BTCX_PRUNE=<MB>` (550 or more), `BTCX_TXINDEX=1`, `BTCX_OPEN_PORT=0`, `BTCX_RELEASE=<tag>`, `BTCX_BUILD=1` (build from source, with `BTCX_REF=<branch or tag>`).
- Service: `bitcoind@btcxtest` (systemd). Config: /etc/bitcoin/bitcoin.conf (own settings below the `# --- local settings ---` line). Data: /var/lib/bitcoin. CLI wrapper: `btcx-cli`.
- Seed nodes: seed.testnet.bitcoin2x.org (178.105.98.246), seed2.testnet.bitcoin2x.org (5.222.62.161), port 19777.
- Verify: `btcx-cli getblockchaininfo` shows `"chain": "btcxtest"` and `blocks` reaching the tip from https://explorer.bitcoin2x.org/api (field `chain.height`; fallback https://5-222-62-161.sslip.io/api); `btcx-cli getconnectioncount` is 2 or more; `nc -vz <public IP> 19777` connects from outside.
- Oracle Cloud: its Ubuntu images block ports with iptables; the install script inserts an ACCEPT rule for 19777 before the REJECT rule. Also add an ingress rule in the subnet's security list.
- Serverless platforms (Vercel, Cloudflare Workers/Containers) cannot run a node: it needs an always-on process, a persistent disk and inbound TCP.

## Prompts by cloud

### Oracle Cloud (Always Free)

Tool: OCI CLI (oci) or the Oracle Cloud console. Oracle's Always Free tier covers this: an Arm server with up to 2 OCPUs and 12 GB of memory, and 200 GB of block storage in total. It must be in your home region.

```text
Set up a BTCX testnet node for me on Oracle Cloud Infrastructure (OCI), using the oci CLI. BTCX is an experimental post-quantum fork of Bitcoin Core (BIP 360 P2MR outputs, ML-DSA signatures) running a public testnet. It is not Bitcoin and its coins have no value. Full instructions: https://bitcoin2x.org/run-a-node.md

Rules: before you create anything that costs money, show me the plan and the expected monthly cost and wait for my OK. Use my existing SSH key (create one only if I have none, and never print private keys). Do not open the RPC port 19776 to the internet.

1. Create the server. In my home region and an availability domain with capacity, launch a VM.Standard.A1.Flex instance (Always Free) with 2 OCPUs and 12 GB memory, the latest Canonical Ubuntu 24.04 aarch64 platform image, a 100 GB boot volume and a public IPv4 address. If no VCN exists, create one with a public subnet, an internet gateway and a default route (0.0.0.0/0) to it. If you get "Out of host capacity", try the other availability domains, or 1 OCPU and 6 GB.
2. Open the firewall. In the subnet's security list (or the network security group the instance uses), add a stateful ingress rule: source 0.0.0.0/0, protocol TCP, destination port 19777. Allow SSH (TCP 22, from my IP if you can) and TCP 19777 inbound from 0.0.0.0/0 for BTCX peers.
3. SSH in as the default user and run:
   curl -fsSL https://raw.githubusercontent.com/yoniassia/Bitcoin2x/master/contrib/install-node.sh | sudo bash
   It downloads the release binaries and checks their SHA256SUMS. The full chain is under 1 GB today, so pruning is not needed; on very small disks add BTCX_PRUNE=2000 before "bash" (sudo BTCX_PRUNE=2000 bash).
   Oracle's Ubuntu images also block ports with iptables inside the server. The install script adds an ACCEPT rule for 19777 before Oracle's REJECT rule and saves it; check with "sudo iptables -L INPUT -n --line-numbers".
4. Verify. "btcx-cli getblockchaininfo" must show chain "btcxtest" and "blocks" rising towards the tip at https://explorer.bitcoin2x.org/api (or https://5-222-62-161.sslip.io/api if that name does not resolve yet) (field chain.height). "btcx-cli getconnectioncount" must be 2 or more, and "btcx-cli getpeerinfo" should list 178.105.98.246:19777 or 5.222.62.161:19777. From outside, "nc -vz <public IP> 19777" must connect.
5. Report back: the public IP, the SSH command, block height versus the explorer tip, peer count, whether port 19777 is reachable, and the monthly cost.
```

### Hetzner Cloud

Tool: hcloud CLI. What the BTCX seed nodes run on. A CX23 or CAX11 costs a few euros a month.

```text
Set up a BTCX testnet node for me on Hetzner Cloud, using the hcloud CLI. BTCX is an experimental post-quantum fork of Bitcoin Core (BIP 360 P2MR outputs, ML-DSA signatures) running a public testnet. It is not Bitcoin and its coins have no value. Full instructions: https://bitcoin2x.org/run-a-node.md

Rules: before you create anything that costs money, show me the plan and the expected monthly cost and wait for my OK. Use my existing SSH key (create one only if I have none, and never print private keys). Do not open the RPC port 19776 to the internet.

1. Create the server. Create a server of type cx23 (or cax11 for Arm) with image ubuntu-24.04, my SSH key, and a public IPv4, in a location such as nbg1, fsn1 or hel1.
2. Open the firewall. Create a Hetzner firewall with inbound rules for TCP 22 and TCP 19777 and apply it to the server (or attach no firewall at all). Allow SSH (TCP 22, from my IP if you can) and TCP 19777 inbound from 0.0.0.0/0 for BTCX peers.
3. SSH in as the default user and run:
   curl -fsSL https://raw.githubusercontent.com/yoniassia/Bitcoin2x/master/contrib/install-node.sh | sudo bash
   It downloads the release binaries and checks their SHA256SUMS. The full chain is under 1 GB today, so pruning is not needed; on very small disks add BTCX_PRUNE=2000 before "bash" (sudo BTCX_PRUNE=2000 bash).
4. Verify. "btcx-cli getblockchaininfo" must show chain "btcxtest" and "blocks" rising towards the tip at https://explorer.bitcoin2x.org/api (or https://5-222-62-161.sslip.io/api if that name does not resolve yet) (field chain.height). "btcx-cli getconnectioncount" must be 2 or more, and "btcx-cli getpeerinfo" should list 178.105.98.246:19777 or 5.222.62.161:19777. From outside, "nc -vz <public IP> 19777" must connect.
5. Report back: the public IP, the SSH command, block height versus the explorer tip, peer count, whether port 19777 is reachable, and the monthly cost.
```

### DigitalOcean

Tool: doctl. A Basic Droplet with 2 GB memory and a 50 GB disk is enough.

```text
Set up a BTCX testnet node for me on DigitalOcean, using doctl. BTCX is an experimental post-quantum fork of Bitcoin Core (BIP 360 P2MR outputs, ML-DSA signatures) running a public testnet. It is not Bitcoin and its coins have no value. Full instructions: https://bitcoin2x.org/run-a-node.md

Rules: before you create anything that costs money, show me the plan and the expected monthly cost and wait for my OK. Use my existing SSH key (create one only if I have none, and never print private keys). Do not open the RPC port 19776 to the internet.

1. Create the server. Create a Basic Droplet (size s-1vcpu-2gb or larger) with image ubuntu-24-04-x64, my SSH key, in the region closest to me.
2. Open the firewall. Cloud Firewalls are off unless one is attached. If I use one, add inbound TCP 22 and TCP 19777 rules and attach it to the Droplet. Allow SSH (TCP 22, from my IP if you can) and TCP 19777 inbound from 0.0.0.0/0 for BTCX peers.
3. SSH in as the default user and run:
   curl -fsSL https://raw.githubusercontent.com/yoniassia/Bitcoin2x/master/contrib/install-node.sh | sudo bash
   It downloads the release binaries and checks their SHA256SUMS. The full chain is under 1 GB today, so pruning is not needed; on very small disks add BTCX_PRUNE=2000 before "bash" (sudo BTCX_PRUNE=2000 bash).
4. Verify. "btcx-cli getblockchaininfo" must show chain "btcxtest" and "blocks" rising towards the tip at https://explorer.bitcoin2x.org/api (or https://5-222-62-161.sslip.io/api if that name does not resolve yet) (field chain.height). "btcx-cli getconnectioncount" must be 2 or more, and "btcx-cli getpeerinfo" should list 178.105.98.246:19777 or 5.222.62.161:19777. From outside, "nc -vz <public IP> 19777" must connect.
5. Report back: the public IP, the SSH command, block height versus the explorer tip, peer count, whether port 19777 is reachable, and the monthly cost.
```

### Vultr

Tool: vultr-cli. A Regular Performance Cloud Compute server with 2 GB memory and a 55 GB disk.

```text
Set up a BTCX testnet node for me on Vultr, using vultr-cli. BTCX is an experimental post-quantum fork of Bitcoin Core (BIP 360 P2MR outputs, ML-DSA signatures) running a public testnet. It is not Bitcoin and its coins have no value. Full instructions: https://bitcoin2x.org/run-a-node.md

Rules: before you create anything that costs money, show me the plan and the expected monthly cost and wait for my OK. Use my existing SSH key (create one only if I have none, and never print private keys). Do not open the RPC port 19776 to the internet.

1. Create the server. Create a Cloud Compute instance (plan vc2-1c-2gb or larger) with the Ubuntu 24.04 x64 OS image and my SSH key.
2. Open the firewall. If a Vultr firewall group is attached, add inbound TCP 22 and TCP 19777. Vultr's Ubuntu image enables ufw; the install script opens 19777 in ufw itself. Allow SSH (TCP 22, from my IP if you can) and TCP 19777 inbound from 0.0.0.0/0 for BTCX peers.
3. SSH in as the default user and run:
   curl -fsSL https://raw.githubusercontent.com/yoniassia/Bitcoin2x/master/contrib/install-node.sh | sudo bash
   It downloads the release binaries and checks their SHA256SUMS. The full chain is under 1 GB today, so pruning is not needed; on very small disks add BTCX_PRUNE=2000 before "bash" (sudo BTCX_PRUNE=2000 bash).
4. Verify. "btcx-cli getblockchaininfo" must show chain "btcxtest" and "blocks" rising towards the tip at https://explorer.bitcoin2x.org/api (or https://5-222-62-161.sslip.io/api if that name does not resolve yet) (field chain.height). "btcx-cli getconnectioncount" must be 2 or more, and "btcx-cli getpeerinfo" should list 178.105.98.246:19777 or 5.222.62.161:19777. From outside, "nc -vz <public IP> 19777" must connect.
5. Report back: the public IP, the SSH command, block height versus the explorer tip, peer count, whether port 19777 is reachable, and the monthly cost.
```

### Amazon Web Services (EC2)

Tool: AWS CLI (aws). A t4g.medium (Arm, 2 vCPU, 4 GB) with a 60 GB gp3 volume works well.

```text
Set up a BTCX testnet node for me on AWS EC2, using the aws CLI. BTCX is an experimental post-quantum fork of Bitcoin Core (BIP 360 P2MR outputs, ML-DSA signatures) running a public testnet. It is not Bitcoin and its coins have no value. Full instructions: https://bitcoin2x.org/run-a-node.md

Rules: before you create anything that costs money, show me the plan and the expected monthly cost and wait for my OK. Use my existing SSH key (create one only if I have none, and never print private keys). Do not open the RPC port 19776 to the internet.

1. Create the server. In my default region, launch a t4g.medium instance (or t3.medium for x86) from the current Canonical Ubuntu 24.04 AMI (look it up with the SSM parameter /aws/service/canonical/ubuntu/server/24.04/stable/current/arm64/hvm/ebs-gp3/ami-id, or amd64 for t3), with a 60 GB gp3 root volume, my key pair, and a public IPv4 in a public subnet.
2. Open the firewall. Create a security group with inbound TCP 22 and TCP 19777 rules and attach it to the instance. Allow SSH (TCP 22, from my IP if you can) and TCP 19777 inbound from 0.0.0.0/0 for BTCX peers.
3. SSH in as the default user and run:
   curl -fsSL https://raw.githubusercontent.com/yoniassia/Bitcoin2x/master/contrib/install-node.sh | sudo bash
   It downloads the release binaries and checks their SHA256SUMS. The full chain is under 1 GB today, so pruning is not needed; on very small disks add BTCX_PRUNE=2000 before "bash" (sudo BTCX_PRUNE=2000 bash).
   The default user is "ubuntu".
4. Verify. "btcx-cli getblockchaininfo" must show chain "btcxtest" and "blocks" rising towards the tip at https://explorer.bitcoin2x.org/api (or https://5-222-62-161.sslip.io/api if that name does not resolve yet) (field chain.height). "btcx-cli getconnectioncount" must be 2 or more, and "btcx-cli getpeerinfo" should list 178.105.98.246:19777 or 5.222.62.161:19777. From outside, "nc -vz <public IP> 19777" must connect.
5. Report back: the public IP, the SSH command, block height versus the explorer tip, peer count, whether port 19777 is reachable, and the monthly cost.
```

### Google Cloud (Compute Engine)

Tool: gcloud. An e2-medium with a 60 GB balanced disk.

```text
Set up a BTCX testnet node for me on Google Cloud Compute Engine, using gcloud. BTCX is an experimental post-quantum fork of Bitcoin Core (BIP 360 P2MR outputs, ML-DSA signatures) running a public testnet. It is not Bitcoin and its coins have no value. Full instructions: https://bitcoin2x.org/run-a-node.md

Rules: before you create anything that costs money, show me the plan and the expected monthly cost and wait for my OK. Use my existing SSH key (create one only if I have none, and never print private keys). Do not open the RPC port 19776 to the internet.

1. Create the server. Create an e2-medium VM with image family ubuntu-2404-lts-amd64 from project ubuntu-os-cloud, a 60 GB pd-balanced boot disk, an external IPv4, and the network tag btcx-node. Use OS Login or my SSH key.
2. Open the firewall. Create a VPC firewall rule on the VM's network allowing ingress tcp:19777 from 0.0.0.0/0 to targets tagged btcx-node (SSH is usually allowed by the default network). Allow SSH (TCP 22, from my IP if you can) and TCP 19777 inbound from 0.0.0.0/0 for BTCX peers.
3. SSH in as the default user and run:
   curl -fsSL https://raw.githubusercontent.com/yoniassia/Bitcoin2x/master/contrib/install-node.sh | sudo bash
   It downloads the release binaries and checks their SHA256SUMS. The full chain is under 1 GB today, so pruning is not needed; on very small disks add BTCX_PRUNE=2000 before "bash" (sudo BTCX_PRUNE=2000 bash).
4. Verify. "btcx-cli getblockchaininfo" must show chain "btcxtest" and "blocks" rising towards the tip at https://explorer.bitcoin2x.org/api (or https://5-222-62-161.sslip.io/api if that name does not resolve yet) (field chain.height). "btcx-cli getconnectioncount" must be 2 or more, and "btcx-cli getpeerinfo" should list 178.105.98.246:19777 or 5.222.62.161:19777. From outside, "nc -vz <public IP> 19777" must connect.
5. Report back: the public IP, the SSH command, block height versus the explorer tip, peer count, whether port 19777 is reachable, and the monthly cost.
```

### Microsoft Azure

Tool: Azure CLI (az). A Standard_B2s with a 64 GB OS disk.

```text
Set up a BTCX testnet node for me on Microsoft Azure, using the az CLI. BTCX is an experimental post-quantum fork of Bitcoin Core (BIP 360 P2MR outputs, ML-DSA signatures) running a public testnet. It is not Bitcoin and its coins have no value. Full instructions: https://bitcoin2x.org/run-a-node.md

Rules: before you create anything that costs money, show me the plan and the expected monthly cost and wait for my OK. Use my existing SSH key (create one only if I have none, and never print private keys). Do not open the RPC port 19776 to the internet.

1. Create the server. Create a resource group named btcx-node, then a VM with image Ubuntu2404, size Standard_B2s, a 64 GB OS disk, a public IP, admin user azureuser and my SSH public key.
2. Open the firewall. Run "az vm open-port" for port 19777 on the VM (this adds a rule to its network security group); SSH on 22 is opened by default. Allow SSH (TCP 22, from my IP if you can) and TCP 19777 inbound from 0.0.0.0/0 for BTCX peers.
3. SSH in as the default user and run:
   curl -fsSL https://raw.githubusercontent.com/yoniassia/Bitcoin2x/master/contrib/install-node.sh | sudo bash
   It downloads the release binaries and checks their SHA256SUMS. The full chain is under 1 GB today, so pruning is not needed; on very small disks add BTCX_PRUNE=2000 before "bash" (sudo BTCX_PRUNE=2000 bash).
4. Verify. "btcx-cli getblockchaininfo" must show chain "btcxtest" and "blocks" rising towards the tip at https://explorer.bitcoin2x.org/api (or https://5-222-62-161.sslip.io/api if that name does not resolve yet) (field chain.height). "btcx-cli getconnectioncount" must be 2 or more, and "btcx-cli getpeerinfo" should list 178.105.98.246:19777 or 5.222.62.161:19777. From outside, "nc -vz <public IP> 19777" must connect.
5. Report back: the public IP, the SSH command, block height versus the explorer tip, peer count, whether port 19777 is reachable, and the monthly cost.
```

### Akamai (Linode)

Tool: linode-cli. A Shared CPU Linode 2 GB with a 50 GB disk.

```text
Set up a BTCX testnet node for me on Akamai Cloud (Linode), using linode-cli. BTCX is an experimental post-quantum fork of Bitcoin Core (BIP 360 P2MR outputs, ML-DSA signatures) running a public testnet. It is not Bitcoin and its coins have no value. Full instructions: https://bitcoin2x.org/run-a-node.md

Rules: before you create anything that costs money, show me the plan and the expected monthly cost and wait for my OK. Use my existing SSH key (create one only if I have none, and never print private keys). Do not open the RPC port 19776 to the internet.

1. Create the server. Create a Linode of type g6-standard-1 with image linode/ubuntu24.04, my SSH key as an authorized key, and a strong random root password that you keep to yourself.
2. Open the firewall. Cloud Firewall is optional. If one is attached, add inbound TCP 22 and TCP 19777. Allow SSH (TCP 22, from my IP if you can) and TCP 19777 inbound from 0.0.0.0/0 for BTCX peers.
3. SSH in as the default user and run:
   curl -fsSL https://raw.githubusercontent.com/yoniassia/Bitcoin2x/master/contrib/install-node.sh | sudo bash
   It downloads the release binaries and checks their SHA256SUMS. The full chain is under 1 GB today, so pruning is not needed; on very small disks add BTCX_PRUNE=2000 before "bash" (sudo BTCX_PRUNE=2000 bash).
4. Verify. "btcx-cli getblockchaininfo" must show chain "btcxtest" and "blocks" rising towards the tip at https://explorer.bitcoin2x.org/api (or https://5-222-62-161.sslip.io/api if that name does not resolve yet) (field chain.height). "btcx-cli getconnectioncount" must be 2 or more, and "btcx-cli getpeerinfo" should list 178.105.98.246:19777 or 5.222.62.161:19777. From outside, "nc -vz <public IP> 19777" must connect.
5. Report back: the public IP, the SSH command, block height versus the explorer tip, peer count, whether port 19777 is reachable, and the monthly cost.
```

### Any Linux server over SSH

Tool: SSH. Your own machine or any VPS running Ubuntu 22.04 or 24.04.

```text
Set up a BTCX testnet node for me on the Ubuntu server I give you SSH access to (ask me for the host and user). BTCX is an experimental post-quantum fork of Bitcoin Core (BIP 360 P2MR outputs, ML-DSA signatures) running a public testnet. It is not Bitcoin and its coins have no value. Full instructions: https://bitcoin2x.org/run-a-node.md

Rules: before you create anything that costs money, show me the plan and the expected monthly cost and wait for my OK. Use my existing SSH key (create one only if I have none, and never print private keys). Do not open the RPC port 19776 to the internet.

1. Create the server. Use the existing server. Check it runs Ubuntu 22.04 or 24.04 with at least 1 GB of memory and 20 GB of free disk (the full chain is under 1 GB today).
2. Open the firewall. If the server is behind a router or a provider firewall, tell me to forward or allow TCP 19777 to it. Allow SSH (TCP 22, from my IP if you can) and TCP 19777 inbound from 0.0.0.0/0 for BTCX peers.
3. SSH in as the default user and run:
   curl -fsSL https://raw.githubusercontent.com/yoniassia/Bitcoin2x/master/contrib/install-node.sh | sudo bash
   It downloads the release binaries and checks their SHA256SUMS. The full chain is under 1 GB today, so pruning is not needed; on very small disks add BTCX_PRUNE=2000 before "bash" (sudo BTCX_PRUNE=2000 bash).
4. Verify. "btcx-cli getblockchaininfo" must show chain "btcxtest" and "blocks" rising towards the tip at https://explorer.bitcoin2x.org/api (or https://5-222-62-161.sslip.io/api if that name does not resolve yet) (field chain.height). "btcx-cli getconnectioncount" must be 2 or more, and "btcx-cli getpeerinfo" should list 178.105.98.246:19777 or 5.222.62.161:19777. From outside, "nc -vz <public IP> 19777" must connect.
5. Report back: the public IP, the SSH command, block height versus the explorer tip, peer count, whether port 19777 is reachable, and the monthly cost.
```

## Remove

    sudo systemctl disable --now bitcoind@btcxtest
    sudo rm -rf /var/lib/bitcoin /opt/btcx /etc/bitcoin /etc/systemd/system/bitcoind@.service /usr/local/bin/btcx-cli
    sudo userdel bitcoin
