bitcore-node
A blockchain indexing node with extended capabilities using bitcore
Last updated 6 months ago by nitsujlangston .
MIT · Original npm · Tarball · package.json
$ npm install bitcore-node 
SYNC missed versions from official npm registry.

Bitcore Node

A standardized API to interact with multiple blockchain networks

Currently supporting: Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Ripple, Ethereum and Polygon

Getting Started

Requirements

  • Trusted P2P Client with an open RPC endpoint
  • MongoDB Server >= v3.4
  • make g++ gcc

Checkout the repo

git clone git@github.com:bitpay/bitcore.git
git checkout master
npm install

Setup Guide

1. Setup Bitcore config

The definition for all the chain configuration can be found in src/types/Config.ts

<summary>Example bitcore.config.json</summary>
{
  "bitcoreNode": {
    "chains": {
      "BTC": {
        "mainnet": {
          "chainSource": "p2p",
          "trustedPeers": [
            {
              "host": "127.0.0.1",
              "port": 20008
            }
          ],
          "rpc": {
            "host": "127.0.0.1",
            "port": 20009,
            "username": "username",
            "password": "password"
          }
        },
        "regtest": {
          "chainSource": "p2p",
          "trustedPeers": [
            {
              "host": "127.0.0.1",
              "port": 20020
            }
          ],
          "rpc": {
            "host": "127.0.0.1",
            "port": 20021,
            "username": "username",
            "password": "password"
          }
        }
      },
      "BCH": {
        "mainnet": {
          "parentChain": "BTC",
          "forkHeight": 478558,
          "trustedPeers": [
            {
              "host": "127.0.0.1",
              "port": 30008
            }
          ],
          "rpc": {
            "host": "127.0.0.1",
            "port": 30009,
            "username": "username",
            "password": "password"
          }
        },
        "regtest": {
          "chainSource": "p2p",
          "trustedPeers": [
            {
              "host": "127.0.0.1",
              "port": 30020
            }
          ],
          "rpc": {
            "host": "127.0.0.1",
            "port": 30021,
            "username": "username",
            "password": "password"
          }
        }
      }
    }
  }
}

2. Setup Your Blockchain Nodes

<summary>Example Bitcoin Mainnet Config</summary>
whitelist=127.0.0.1
txindex=0
listen=1
server=1
irc=1
upnp=1

# Make sure port & rpcport matches the
# bitcore.config.json ports for BTC mainnet

# if using Bitcoin Core v0.17+ prefix
# [main]

port=20008
rpcport=20009
rpcallowip=127.0.0.1

rpcuser=username
rpcpassword=password

3. Run Your Blockchain Nodes

<summary>Example Starting a Bitcoin Node</summary>
# Path to your bitcoin application and path to the config above
/Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt -datadir=/Users/username/blockchains/bitcoin-core/networks/mainnet/

4. Start Bitcore

npm run node

Bitcore will begin using your blockchain nodes to synchronize its own database so that you can use standardized queries to get data from each of your supported blockchains.

API Documentation

Contributing

See CONTRIBUTING.md on the main bitcore repo for information about how to contribute.

License

Code released under the MIT license.

Copyright 2013-2023 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.

Current Tags

  • 8.0.1                                ...           beta (7 years ago)
  • 10.1.0                                ...           latest (6 months ago)

129 Versions

  • 10.1.0                                ...           6 months ago
  • 10.0.42                                ...           6 months ago
  • 10.0.41                                ...           6 months ago
  • 10.0.40                                ...           6 months ago
  • 10.0.39                                ...           7 months ago
  • 10.0.38                                ...           7 months ago
  • 10.0.37                                ...           7 months ago
  • 10.0.36                                ...           7 months ago
  • 10.0.35                                ...           7 months ago
  • 10.0.34                                ...           7 months ago
  • 10.0.33                                ...           8 months ago
  • 10.0.32                                ...           8 months ago
  • 10.0.31                                ...           9 months ago
  • 10.0.30                                ...           9 months ago
  • 10.0.29                                ...           9 months ago
  • 10.0.28                                ...           10 months ago
  • 10.0.27                                ...           a year ago
  • 10.0.26                                ...           a year ago
  • 10.0.25                                ...           a year ago
  • 10.0.24                                ...           a year ago
  • 10.0.23                                ...           a year ago
  • 10.0.22                                ...           a year ago
  • 10.0.21                                ...           a year ago
  • 10.0.20                                ...           a year ago
  • 10.0.19                                ...           a year ago
  • 10.0.18                                ...           a year ago
  • 10.0.16                                ...           a year ago
  • 10.0.15                                ...           a year ago
  • 10.0.13                                ...           a year ago
  • 10.0.12                                ...           a year ago
  • 10.0.8                                ...           a year ago
  • 10.0.6                                ...           2 years ago
  • 9.0.0                                ...           2 years ago
  • 8.25.43                                ...           2 years ago
  • 8.25.40                                ...           2 years ago
  • 8.25.37                                ...           2 years ago
  • 8.25.30                                ...           3 years ago
  • 8.25.29                                ...           3 years ago
  • 8.25.28                                ...           3 years ago
  • 8.25.25                                ...           3 years ago
  • 8.25.24                                ...           3 years ago
  • 8.25.23                                ...           3 years ago
  • 8.25.22                                ...           3 years ago
  • 8.25.21                                ...           3 years ago
  • 8.25.20                                ...           3 years ago
  • 8.25.19                                ...           3 years ago
  • 8.25.18                                ...           3 years ago
  • 8.25.17                                ...           3 years ago
  • 8.25.15                                ...           3 years ago
  • 8.24.2                                ...           4 years ago
  • 8.19.0                                ...           5 years ago
  • 8.5.0                                ...           5 years ago
  • 8.0.1                                ...           7 years ago
  • 8.0.0                                ...           7 years ago
  • 5.0.0-beta.44                                ...           7 years ago
  • 5.0.0-beta.43                                ...           7 years ago
  • 5.0.0-beta.42                                ...           7 years ago
  • 5.0.0-beta.41                                ...           7 years ago
  • 5.0.0-beta.40                                ...           7 years ago
  • 5.0.0-beta.39                                ...           7 years ago
  • 5.0.0-beta.38                                ...           7 years ago
  • 5.0.0-beta.37                                ...           7 years ago
  • 5.0.0-beta.36                                ...           7 years ago
  • 5.0.0-beta.35                                ...           7 years ago
  • 5.0.0-beta.34                                ...           7 years ago
  • 5.0.0-beta.33                                ...           7 years ago
  • 5.0.0-beta.32                                ...           7 years ago
  • 5.0.0-beta.31                                ...           7 years ago
  • 5.0.0-beta.30                                ...           7 years ago
  • 5.0.0-beta.29                                ...           7 years ago
  • 5.0.0-beta.28                                ...           7 years ago
  • 5.0.0-beta.27                                ...           7 years ago
  • 5.0.0-beta.26                                ...           7 years ago
  • 5.0.0-beta.25                                ...           7 years ago
  • 5.0.0-beta.24                                ...           7 years ago
  • 5.0.0-beta.23                                ...           7 years ago
  • 5.0.0-beta.22                                ...           7 years ago
  • 5.0.0-beta.21                                ...           7 years ago
  • 5.0.0-beta.20                                ...           7 years ago
  • 5.0.0-beta.19                                ...           7 years ago
  • 5.0.0-beta.18                                ...           7 years ago
  • 5.0.0-beta.17                                ...           7 years ago
  • 5.0.0-beta.16                                ...           7 years ago
  • 5.0.0-beta.15                                ...           7 years ago
  • 5.0.0-beta.14                                ...           7 years ago
  • 5.0.0-beta.13                                ...           7 years ago
  • 5.0.0-beta.12                                ...           7 years ago
  • 5.0.0-beta.11                                ...           7 years ago
  • 5.0.0-beta.9                                ...           7 years ago
  • 5.0.0-beta.8                                ...           7 years ago
  • 5.0.0-beta.7                                ...           7 years ago
  • 5.0.0-beta.6                                ...           7 years ago
  • 5.0.0-beta.4                                ...           7 years ago
  • 5.0.0-beta.3                                ...           7 years ago
  • 5.0.0-beta.2                                ...           7 years ago
  • 5.0.0-beta.1                                ...           7 years ago
  • 3.1.3                                ...           8 years ago
  • 3.1.2                                ...           8 years ago
  • 3.1.1                                ...           8 years ago
  • 3.1.0                                ...           8 years ago
  • 3.0.2                                ...           9 years ago
  • 3.0.1                                ...           9 years ago
  • 3.0.0                                ...           9 years ago
  • 2.1.1                                ...           9 years ago
  • 2.1.0                                ...           9 years ago
  • 2.0.1                                ...           9 years ago
  • 2.0.0                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
  • 0.2.5                                ...           9 years ago
  • 0.2.4                                ...           9 years ago
  • 0.2.3                                ...           9 years ago
  • 0.2.2                                ...           9 years ago
  • 0.2.1                                ...           9 years ago
  • 0.2.0                                ...           9 years ago
  • 0.2.0-beta.11                                ...           9 years ago
  • 0.2.0-beta.10                                ...           9 years ago
  • 0.2.0-beta.9                                ...           9 years ago
  • 0.2.0-beta.8                                ...           9 years ago
  • 0.2.0-beta.7                                ...           9 years ago
  • 0.2.0-beta.6                                ...           9 years ago
  • 0.2.0-beta.5                                ...           9 years ago
  • 0.2.0-beta.4                                ...           9 years ago
  • 0.2.0-beta.3                                ...           9 years ago
  • 0.2.0-beta.1                                ...           9 years ago
  • 0.2.0-beta.0                                ...           9 years ago
  • 0.0.2                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
  • 0.0.1                                ...           10 years ago
Downloads
Total 12
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 11
Dependencies (27)
Dev Dependencies (27)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE