Omni Layer Node.js RPC client (bitcoind + omnicored extensions)
JavaScript Shell
Permalink
Failed to load latest commit information.
demos Add RegTest support, exodus and moneyman constants, add & update demo… Mar 24, 2016
lib
.gitignore Use some Ecma features, cleanup, add some JSDoc Mar 23, 2016
JSDocIndex.md
OmniTests.js Refactor for configuration/modularity Jan 24, 2016
QuickReadTests.js Add RegTest support, exodus and moneyman constants, add & update demo… Mar 24, 2016
README.md Reflect name change to OmniClientJS Mar 1, 2016
package.json
run-jsdoc.sh Use some Ecma features, cleanup, add some JSDoc Mar 23, 2016
sample-configuration.json Refactor for configuration/modularity Jan 24, 2016
testTrades.json Files emailed by Patrick Dec 13, 2015

README.md

OmniClientJS

Omni Layer Node.js RPC client

Setup

  1. Install latest stable node and npm
  2. Install npm packages: $ npm install

Configure your Omni Core server

There are a few bitcoin.conf settings that are necessary to run these tests.

  1. Run on the Bitcoin TestNet:

    testnet=1

  2. Tell Bitcoin/OmniCore to accept JSON-RPC commands.:

    server=1

  3. Set a username and password for RPC:

    rpcuser=test-username-goes-here rpcpassword=test-password-goes-here

Configure your client

  1. Copy the sample configuration: $ cp sample-configuration.json configuration.json
  2. Edit configuration.json and set the correct RPC username and password

Run QuickReadTests

These tests will make read-only calls via RPC to make sure that the Node Omni RPC client can connect to the Omni Core server.

  1. node QuickReadTests.js

Run OmniTests

These tests will spend Bitcoin to make Omni DEX trades. They are still a work in progress. Proceed with caution.

  1. node OmniTests.js