Official TypeScript implementation of the OrderStream network for Node.js.
Branch: v0.8-finalize
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

ParadigmCore v0.8.0-rc-1

ParadigmCore is (currently) the reference implementation of the OrderStream, and the first network client. It is built on Tendermint, which is used for networking and BFT consensus.

This software is in development. While we consider ParadigmCore to be reasonably stable, it should be used with caution in production environments. Paradigm's core protocol contracts are currently only deployed on the Ropsten test-network. No date for a main-net launch of the network has been set.

Note: this version of ParadigmCore only supports Tendermint v0.29.0, which it automatically configures on installation.

Jump to...

Reference and Documentation

For more information about ParadigmCore and the protocol as a whole:

Quick Start

Complete install instructions can be found here, and an even more in-depth tutorial can be found here.


  • Node.js v10.4 or greater (bigint support required)
    • Grab a recent binary from the official website, or install via package manager.
    • Make sure you have a recent version of npm or yarn as well.
  • C/C++ build tools and compiler tool-chain
    • For macOS, the required tools are included with XCode, or try:
      $ xcode-select --install
    • For GNU/Linux, install make and a C++ tool-chain via your package manager. On Darwin-base distros:
      $ sudo apt-get update && sudo apt-get upgrade -y
      $ sudo apt-get install -y build-essential
  • Global node_modules (issues arise when package.json is relied on for these modules)
    # npm shown, you can use yarn if you prefer 
    $ npm install --global node-gyp
    $ npm install --global scrypt
  • Access to a local (or remote, if necessary) web3 provider


Clone the repository via SSH or HTTPS (specify target directory as well):

# clone via https
$ git clone

# clone via ssh
$ git clone 

Set up environment

ParadigmCore is configured though its runtime environment (local environment variables). You can load configuration by exporting the required variables to your environment, or create a .env file placed at the project root.

A template environment file can be found at ./lib/template.env.

For details about what variables are required and how to choose a configuration, click here.

Install dependencies

After setting the proper environment variables, run the following to install JavaScript dependencies, as well as run the init.js setup script.

# with npm
$ npm install

# with yarn
$ yarn install

Build from source

Build the TypeScript source files into executable JS (by default placed at ./dist) by running the following command.

# build with npm
npm run build

# build with yarn
yarn build

If needed, modify tsconfig.json to set compiler options.


Start ParadigmCore by running one of the following. ParadigmCore will intentionally exit if initiated by executing the startup script (src/index.ts) directly. If this behavior is desired, you can remove that check from the startup proceedure.

# with npm
$ npm run start

# with yarn
$ yarn start

Reset blockchain and state

Occasionally, you will need to reset the blockchain history. To do so, run the following command.

# with npm
$ npm run reset

# with yarn
$ yarn reset


Run the current test suite (only unit tests, currently) with the following command.

# with npm
$ npm run test

# with yarn
$ yarn test

Run with Docker

A Dockerfile is included for convenience. To run ParadigmCore as a docker container, create a docker.env file at the repositories root directory, with any normal configuration. Build the image with (run from ParadigmCore directory):

$ docker build -t paradigmcore .

Run the container with one of the following:

# run in foreground (view log output)
$ docker run paradigmcore

# detach process
$ docker run -d paradigmcore

If you wish to use a dockerized ParadigmCore as a production node, you will manually need to manage network ports inside and outside the container to ensure it can communicate with the rest of the network.

Issues and proposals

ParadigmCore is under active development, and at this point should not be considered stable. If you find a bug, inconsistency, or vulnerability please open an issue.

If you encounter errors setting up or running setting up ParadigmCore, feel free to reach out on our chat server.


ParadigmCore is open source software, and we encourage the suggestion of improvements and enhancements to the protocol. If you have a suggestion or specification, please submit a Paradigm Improvement Proposal (PIP).

Additionally, feel free to open issues and pull requests with bug fixes or enhancements to the ParadigmCore implementation.