matthewjablack / rgb-node

RGB node for both servers and mobiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RGB Node & SDK

TravisCI

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 libssl-dev libpq-dev cmake
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

About

RGB node for both servers and mobiles

License:MIT License


Languages

Language:Rust 86.0%Language:Swift 5.8%Language:Java 5.3%Language:Shell 1.5%Language:JavaScript 0.9%Language:SWIG 0.5%Language:Python 0.1%Language:C++ 0.0%