Skip to content

The-Peso-G/rgb-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
git clone https://github.com/LNP-BP/rgb-node.git
cd rgb-node
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

Packages

No packages published

Languages

  • Rust 85.9%
  • Swift 5.8%
  • Java 5.3%
  • Shell 1.5%
  • JavaScript 0.9%
  • SWIG 0.5%
  • Other 0.1%