Run a BTCX node
Every node checks every block and helps new nodes sync. Have an AI agent set one up for you on your cloud account, or do it yourself with one command.
Ask your AI agent
If your agent can use a cloud account (through that cloud's command-line tool or a connector), pick your cloud and paste its prompt. The agent shows you the plan and the cost before it creates anything, then builds the server, opens port 19777, installs the node, checks that it syncs with the seed nodes, and reports back.
Agents that read the web can also fetch the full instructions as plain text from bitcoin2x.org/run-a-node.md. A site summary for agents is at /llms.txt.
Oracle Cloud (Always Free) · 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.
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 · hcloud CLI
What the BTCX seed nodes run on. A CX23 or CAX11 costs a few euros a month.
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 · doctl
A Basic Droplet with 2 GB memory and a 50 GB disk is enough.
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 · vultr-cli
A Regular Performance Cloud Compute server with 2 GB memory and a 55 GB disk.
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) · AWS CLI (aws)
A t4g.medium (Arm, 2 vCPU, 4 GB) with a 60 GB gp3 volume works well.
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) · gcloud
An e2-medium with a 60 GB balanced disk.
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 · Azure CLI (az)
A Standard_B2s with a 64 GB OS disk.
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) · linode-cli
A Shared CPU Linode 2 GB with a 50 GB disk.
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 · SSH
Your own machine or any VPS running Ubuntu 22.04 or 24.04.
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.Do it yourself
Get an Ubuntu server
Ubuntu 22.04 or 24.04, x86-64 or ARM64, with a public IP. Any of the clouds above works, and so does a machine at home.
Minimum Comfortable CPU 1 vCPU 2 or more Memory 1 GB (the script adds swap below 3 GB) 4 GB Disk 20 GB with BTCX_PRUNE=200020 GB for the full chain (under 1 GB today) Network TCP 19777 open inbound Open port 19777
In your cloud's firewall (security list, security group, firewall rule), allow inbound TCP 19777 from anywhere. Never open the RPC port 19776.
Install
curl -fsSL https://raw.githubusercontent.com/yoniassia/Bitcoin2x/master/contrib/install-node.sh | sudo bashThis downloads the
bitcoindrelease from GitHub releases, checks it against the release'sSHA256SUMS, runs it as the systemd servicebitcoind@btcxtest, opens 19777 in ufw or Oracle's iptables rules, and connects to the seed nodes. Run it again to update; your chain data and settings are kept.Option Default Meaning BTCX_PRUNEunset keep only this many MB of blocks (550 or more), for small disks BTCX_TXINDEX01keeps a transaction index, for an explorerBTCX_OPEN_PORT10leaves ufw and iptables aloneBTCX_RELEASElatest release release tag to install BTCX_BUILD01builds from source instead (20 to 60 minutes)BTCX_REFmasterbranch or tag to build with BTCX_BUILD=1Options go before
bash, for example… | sudo BTCX_PRUNE=2000 bash.Check it
btcx-cli getblockchaininfo # "chain": "btcxtest", blocks rising to the explorer's tip btcx-cli getconnectioncount # 2 or more once the seeds are reached btcx-cli getpeerinfo | jq -r '.[].addr'Compare the height with the block explorer. From another machine,
nc -vz <your IP> 19777should connect. The seed nodes areseed.testnet.bitcoin2x.org(178.105.98.246) andseed2.testnet.bitcoin2x.org(5.222.62.161), both on port 19777.
Notes for Oracle Cloud Always Free
- Use the Ampere shape
VM.Standard.A1.Flex. The free allowance is 2 OCPUs and 12 GB of memory in total, plus 200 GB of block storage, in your home region. - Open 19777 in two places: the subnet's security list (or network security group) in the console, and inside the server, where Oracle's Ubuntu images block ports with iptables. The install script handles the second one.
- "Out of host capacity" means the availability domain is full. Try another one, or try again later.
- Oracle may reclaim a free server that stays idle for a week. A node that syncs and serves peers is normally busy enough.
Why not Vercel or Cloudflare?
A node is a long-running process with a database on disk that accepts inbound TCP connections on port 19777. Vercel and Cloudflare Workers run short functions with no lasting disk and only answer HTTP. Cloudflare Containers lose their disk when they stop and don't take raw inbound TCP. These platforms are a good fit for this website, which runs on Vercel, but a node needs a virtual server.
Update or remove
Update: run the install command again. Remove everything:
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
Source for all of this: contrib/install-node.sh and docs/run-a-node.md on GitHub.