This repository contains RGB node source code and SDK for wallet & server-side development.
The node may run as a set of daemons (even in different docker containers); a multi-threaded single process or as a set of managed threads within a wallet app.
To compile the node, please install cargo and rustup, then run the following commands:
sudo apt update
sudo apt install -y build-essential pkg-config libzmq3-dev libssl1.0-dev libpq-dev
rustup default nightly
cargo build --release
Now, to run the node you can execute
target/release/rgbd --data-dir ~/.rgb --bin-dir target/release -v -v -v -v
If you need NodeJS integration, you have to do the following:
sudo apt install -y swig node-gyp
cd ffi
cargo build --release
cd nodejs
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
nvm install v10
npm install
node example.js