Skip to content

CryptoCoinLab/safe-block-explorer

 
 

Repository files navigation

Bitcore Node Safe

A Safe full node for building applications and services with Node.js. A node is extensible and can be configured to run additional services. At the minimum a node has an interface to Safe Core v7.2.x for more advanced address queries. Additional services can be enabled to make a node more useful such as exposing new APIs, running a block explorer and wallet service.

Install

npm install bitcore-safe

Prerequisites

  • Safe Core (v7.2.x) with support for additional indexing (see above)
  • Node.js v0.10, v0.12, v4 or v5
  • ZeroMQ (libzmq3-dev for Ubuntu/Debian or zeromq on OSX)
  • ~20GB of disk storage
  • ~1GB of RAM

Configuration

Bitcore includes a Command Line Interface (CLI) for managing, configuring and interfacing with your Bitcore Node.

bitcore-node-safe create -d <safe-data-dir> mynode
cd mynode
bitcore-node-safe install <service>
bitcore-node-safe install https://github.com/yourname/helloworld
bitcore-node-safe start

This will create a directory with configuration files for your node and install the necessary dependencies.

Please note that Safe Core v7.2.x will be downloaded automatically. Once completed the safed binary should be placed into the <safe-data-dir> folder specified during node creation.

For more information about (and developing) services, please see the Service Documentation.

Add-on Services

There are several add-on services available to extend the functionality of Bitcore:

  • [Insight API] npm install bitcore-api-safe
  • [Insight UI] npm install bitcore-ui-safe
  • [Insight Service]npm install bitcore-node-safe
  • [Insight lib]npm install bitcore-lib-safe

Contributing

Please send pull requests for bug fixes, code optimization, and ideas for improvement. For more information on how to contribute, please refer to our CONTRIBUTING file.

installation

nodejs

npm

sudo apt-get update npm install npm

libzmq

git clone https://github.com/zeromq/libzmq

rely on£º

  • sudo apt-get install libtool
  • sudo apt-get install autoconf
  • sudo apt-get install pkg-config

Execute a command

    1. ./autogen.sh && ./configure && make -j 4
    1. npm config set unsafe-perm true
    1. sudo make check && make install && sudo ldconfig
    1. npm install -g zmq

Node program

  • sudo apt-get install libboost-all-dev
  • sudo apt-get install libdb++-dev
  • sudo apt-get install libminiupnpc-dev
  • sudo apt-get install libevent-dev

About

SAFE Block Explorer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 63.4%
  • JavaScript 30.5%
  • Dockerfile 6.1%