AnyNodes
TwitterTelegram
  • Instruction
    • VPS
    • Dedicated Server
  • Bitcoin
    • Atomicals
      • atomicals-electrumx
      • electrumx-proxy
      • Use custom proxy
  • Mainnet
    • Massa
      • Run massa node as a service
      • AutoBuyRolls
      • Terms
    • Fusion
    • Nym
      • Setup nym-node
      • Run nym-node as a service
      • Bonding
    • HOPR
      • Node upgrade
      • Node migration
  • Testnet
    • SwanChain
    • EthStorage
      • Hardware Recommendations for Optimal Mining Power
      • Know your disk
      • Monitoring bot
    • SHDW
    • Dusk
    • Shardeum
    • HOPR
    • Massa
    • Nibiru
    • 0G.ai
  • Continuous Integration
    • GitHub Actions
  • Arbitrage
    • CEX/DEX
Powered by GitBook
On this page

Bitcoin

PreviousDedicated ServerNextAtomicals

Last updated 1 year ago

In this guide, we will use a script to install Bitcoin Core on Ubuntu 22, and sync up to the latest block. The script code is .

  1. Login root user. Run this command. Input RPC username and password. Record them, they will be used in the Atomicals node in the future.

wget -O bitcoin_node.sh https://raw.githubusercontent.com/anynodes/bitcoin-full-node/main/bitcoin_node.sh && chmod +x bitcoin_node.sh && sudo ./bitcoin_node.sh
  1. Check the syncing progress. Other than block number, the verificationprogress is the percent of the progress which is more meaningful.

bitcoin-cli getblockchaininfo
  1. It takes 3 days to sync up, needs 632 GB disk space.

Note: the full node setup and sync up don't need a wallet address. So no wallet is involved. Run bitcoin-cli listwallets. It returns an empty list.

  1. Backup (Optional) - this will take long time

root@ubuntu:~/.bitcoin# du -h
9.9G    ./chainstate
46G     ./indexes/txindex
46G     ./indexes
189M    ./blocks/index
576G    ./blocks
632G    .

We will backup the chainstate, indexes and blocks. This will take a long time, better execute in to screen session.

zip -r -9 -s 2g bitcoin_data.zip blocks chainstate indexes
here