Node Setup

This document covers the setup of OAK node in both local and testnet network

Run a local single development node

Setup Rust environment

# setup Rust nightly toolchain
rustup default nightly-2021-03-01
# setup wasm toolchain
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-03-01

Clone the OAK blockchain (branch oak-testnet).

git clone -b oak-testnet


cargo build --release


./target/release/oak-testnet --dev --tmp

Note: –dev is equivalent to –chain dev

In development environment, there are default settings:

  1. Alice (Default Well-Known Account on substrate chain) is root key.
  2. Alice, Bob, Alice//stash, Bob//stash are the pre-funded accounts. 1.1529 Million OAK Will be set in these accounts.
  3. Alice is the initial PoA authorities.


-h, --help
  Prints help information

  Specify the development chain

    Run a temporary node.

    A temporary directory will be created to store the configuration and will be deleted at the end of the

-d, --base-path <PATH>
    Specify custom base path

    Listen to all RPC interfaces.

    Listen to all Websocket interfaces.

    Default is local. Note: not all RPC methods are safe to be exposed publicly. Use an RPC proxy server to
    filter out dangerous methods. More details: <>. Use
    `--unsafe-ws-external` to suppress the warning if you understand the risks.

    Listen to all RPC interfaces.

    Same as `--rpc-external`.

    Listen to all Websocket interfaces.

Join OAK Testnet

Then run the following command to start a full node and join OAK Testnet

docker run -d --name <container_name> oaknetwork/oak_testnet:latest --name <node_name>

Testnet Specifications