# Buidl BTC Node Operator

By [0xiaorun](https://paragraph.com/@xiaorun-2) · 2024-07-16

---

1\. bitcoin core
----------------

### 1.1 download

    wget https://bitcoin.org/bin/bitcoin-core-22.0/bitcoin-22.0-x86_64-linux-gnu.tar.gz
    

### 1.2 edit config

    vim bitcoin.conf
    
    # Specify data directory
    datadir=/home/ubuntu/.bitcoin/data
    
    # Location of the auth cookie
    rpccookiefile=/home/ubuntu/.bitcoin/data/.cookie
    
    # Run in the background as a daemon and accept commands
    daemon=1
    
    # Maintain a full transaction index, used by the getrawtransaction rpc
    txindex=1
    
    # Accept public REST requests
    rest=1
    
    # Accept command line and JSON-RPC commands
    server=1
    

### 1.3 start server

    ./bin/bitcoind --conf=/home/ubuntu/bitcoin/bitcoin.conf --daemon
    

### 1.4 wait to sync block(～500G)

    tail -f /home/ubuntu/.bitcoin/data/debug.log
    
    2023-03-02T03:17:27Z UpdateTip: new best=0000000000000000000567e5374d59bed7ab18f65856599f4cef924e3fc2e923 height=778914 version=0x2ae44000 log2_work=94.033371 tx=810050282 date='2023-03-02T03:17:12Z' progress=1.000000 cache=68.8MiB(500391txo)
    

![](https://storage.googleapis.com/papyrus_images/c935aab0cd66e09c34f612f877c4542535f9796ed29aad7a1fb8156e87289ef1.png)

### 1.5 usage

    ./bin/bitcoin-cli --rpccookiefile=/home/ubuntu/.bitcoin/data/.cookie getblockchaininfo
    

![](https://storage.googleapis.com/papyrus_images/9922c7a63bc47e246012ddb0cdcaf81b71315e3f2464de9009cb4ca74dab8f8f.png)

2\. ordinals
------------

### 2.1 download

    wget https://github.com/casey/ord/releases/download/0.5.1/ord-0.5.1-x86_64-unknown-linux-gnu.tar.gz
    

### 2.2 usage

    ./ord --cookie-file /home/ubuntu/.bitcoin/data/.cookie -h
    ****
    ./ord --cookie-file /home/ubuntu/.bitcoin/data/.cookie wallet restore <MNEMONIC>
    

![](https://storage.googleapis.com/papyrus_images/098876b58dde18b451f4de28e890d084466111d7d1dbda27d801b5f0d2eef104.png)

### 2.3 inscribe

    inscription.txt
    {
        "p": "sns",
        "op": "reg",
        "name": "xiaorun.sats",
    }
    
    ./ord wallet inscribe <FILE> --fee-rate <FEE_RATE>

---

*Originally published on [0xiaorun](https://paragraph.com/@xiaorun-2/buidl-btc-node-operator)*
