Setting Up a Node and CLI wallet

This guide provides step-by-step instructions for setting up the WagLayla node and CLI Wallet.

Windows - Install & Run the Node

Prerequisites:

  • Git: Download and install Git to clone and manage repositories from GitHub on your local machine. Link
  • Protocol Buffers: Download and install Protocol Buffers, and add the `bin` directory to your system PATH. Link
  • Visual Studio: Download and install. Link
  • LLVM: Download and install LLVM. Add the `bin` directory (e.g., `C:\Program Files\LLVM\bin`) to your PATH and set the `LIBCLANG_PATH` environment variable to point to this directory.
  • Rust: Download and install Rust. If prompted, also install Visual Studio build tools. Link
  • WASM: Download and install `wasm-pack` and the `wasm32` target. Open a terminal and run:
    cargo install wasm-pack
  • In the same terminal window, run:
    rustup target add wasm32-unknown-unknown

1. Downloading Waglaylad Source Code:

  • Open a terminal window and navigate to the parent folder where you want to clone the repository from GitHub.
  • Copy the following command and press enter:
    git clone https://github.com/waglayla/waglaylad-rusty

2. Running the Node:

  • Open a terminal window and navigate to the waglaylad-rusty folder.
  • Copy the following command and press enter:
    cargo run --release --bin waglaylad
  • If you intend on accessing your own node for the CLI wallet use the following command instead:
    cargo run --release --bin waglaylad -- --utxoindex --rpclisten-borsh=public
  • Wait a few minutes for the node to sync with the live network stream. Note: You will see "Accepted Block" scrolling when fully in sync.

3. Starting the wallet:

  • Open a terminal window and navigate to the waglaylad-rusty/cli folder.
  • Copy the following command and press enter:
    cargo run --release
  • The wallet will now be compiled and running.
  • Copy the following command and press enter:
    server ws://wrpc.waglayla.com:13110
  • If you are choosing to access your own node, use the following instead (providing you have wallet and node on same machine):
    server ws://127.0.0.1:13110
  • Copy the following command and press enter:
    network mainnet
  • Type Connect and press enter. The wallet should now be connected to the network!
  • 4. Creating your wallet:

  • Copy the following command and press enter:
    wallet create
  • Give your wallet a name and have it be something that is easy to remember.
  • Go through the different password/passphrase steps and remember to write them down.
  • It is highly recommended to setup and save the wallet recovery information.
  • A new wallet address will have been generated and you can use that for mining.

Linux - Install & Run the Node

Prerequisites:

  • General: Install general build packages. Open a terminal and run:
    sudo apt install curl git build-essential libssl-dev pkg-config
  • Protobuf: Install the Protobuf compiler, required for gRPC. Open a terminal and run:
    sudo apt install protobuf-compiler libprotobuf-dev
  • Clang Toolchain: Install the Clang toolchain, required for RocksDB and WASM secp256k1 builds. Open a terminal window and run:
    sudo apt-get install clang-format clang-tidy clang-tools clang clangd libc++-dev libc++1 libc++abi-dev libc++abi1 libclang-dev libclang1 liblldb-dev libllvm-ocaml-dev libomp-dev libomp5 lld lldb llvm-dev llvm-runtime llvm python3-clang
  • Rust: Run the following in your terminal, then follow the onscreen instructions to install Rust:
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    If you already have Rust installed, update it by running:
    rustup update
  • WASM: Install `wasm-pack` and the `wasm32` target. Open a terminal and run:
    cargo install wasm-pack
    In the same terminal, run:
    rustup target add wasm32-unknown-unknown

1. Downloading Waglaylad Source Code:

  • Open a terminal and navigate to the parent directory where you want to clone the repository from GitHub.
  • Copy the following command and press enter:
    git clone https://github.com/waglayla/waglaylad-rusty

2. Running the Node:

  • Open a terminal and navigate to the waglaylad-rusty directory. You can use "screen" to keep your node running and be able to close the terminal.
  • Copy the following command and press enter (if using screen):
    screen -S wagnode
  • Copy the following command and press enter:
    cargo run --release --bin waglaylad
  • If you intend on accessing your own node for the CLI wallet use the following command instead:
    cargo run --release --bin waglaylad -- --utxoindex --rpclisten-borsh=public
  • Wait a few minutes for the node to sync with the live network stream. Note: You will see "Accepted Block" scrolling when fully in sync.
  • If using screen, press Control+a+d on your keyboard to close the session. To reopen the screen session, copy and run the following command:
    screen -r wagnode

3. Starting the wallet:

  • Open a terminal window and navigate to the waglaylad-rusty/cli folder.
  • Copy the following command and press enter:
    cargo run --release
  • The wallet will now be compiled and running.
  • Copy the following command and press enter:
    server ws://wrpc.waglayla.com:13110
  • If you are choosing to access your own node, use the following instead (providing you have wallet and node on same machine):
    server ws://127.0.0.1:13110
  • Copy the following command and press enter:
    network mainnet
  • Type Connect and press enter. The wallet should now be connected to the network!
  • 4. Creating your wallet:

  • Copy the following command and press enter:
    wallet create
  • Give your wallet a name and have it be something that is easy to remember.
  • Go through the different password/passphrase steps and remember to write them down.
  • It is highly recommended to setup and save the wallet recovery information.
  • A new wallet address will have been generated and you can use that for mining.