Prerequisites

Download the Node

Download the node for your platform (linux-x86_64, linux-aarch64, macos-aarch64) from https://github.com/logos-blockchain/logos-blockchain releases page.

Installation

# on the pi
mkdir devnet
cd devnet

wget <release-circuits.tar.gz>
wget <release-binary>

tar -xvzf <release-circuits.tar.gz>

mv <release-circuits.tar.gz> ~/.logos-blockhcain-circuits

chmod +x logos-blockchain-node-linux-aarch64-0.1.1

Run the Node

  1. Generate and download new user_config for your node:

    curl -X POST <http://209.38.241.182:18080/cfgsync/generate-config> \\
         -H "Content-Type: application/json" \\
         -u "strode:SzH3RP7zdVQs8LCb" \\
         -d '{
               "ip": "192.168.4.2",
               "identifier": "not-essential-for-local-nodes",
               "network_port": 3000,
               "blend_port": 3400,
               "api_port": 8080
             }' \\
         -o my_user_config.yaml
    

    The local node api in this case will be accessible on the port that is set in “api_port” variable in the request body.

  2. Run the node:

    ./logos-blockchain-node my_user_config.yaml
    
  3. Copy your PK from the my_user_config.yaml that is NOT the voucher key:

     grep -A4 known_keys my_user_config.yaml
    

    Example result:

    
      known_keys:
        my_key_29e5f7ca28281eca974146689f8f1c9b712380c07089dabcb60a8cee: ...
        de3233cec107e6589f83d4f3094caa65c633b5b33601211353779dc01972ca14: ...
      voucher_master_key_id: de3233cec107e6589f83d4f3094caa65c633b5b33601211353779dc01972ca14
    

    In this example it would be my_key_29e5f7ca28281eca974146689f8f1c9b712380c07089dabcb60a8cee

  4. Go to http://209.38.241.182:18080/faucet, pick any node you like, and enter your PK

    image.png

  5. Check you wallet balance locally:

    curl <http://localhost:8080/wallet/my_key_29e5f7ca28281eca974146689f8f1c9b712380c07089dabcb60a8cee/balance>
    curl <http://localhost:8080/wallet/912dedc3a6ffea36edd924ad5c49d733a20c3d3948117a4f134fe875825c5628/balance>
    

    Example result:

    {
      "tip": "5d16d4bd3712dc5869fc624e59774552b4fb0c974a6efa516563b3778bac9258",
      "balance": 5,
      "address": "my_key_29e5f7ca28281eca974146689f8f1c9b712380c07089dabcb60a8cee"
    }
    

    If the balance is non zero, then you successfully transferred funds to you wallet using devnet nodes, your local node is able to receive proposed blocks and should be able to participate in a consensus.


Debugging Notes