Omni Layer Node.js RPC client
- Install latest stable
node
andnpm
- Install npm packages:
$ npm install
There are a few bitcoin.conf
settings that are necessary to run these tests.
-
Run on the Bitcoin TestNet:
testnet=1
-
Tell Bitcoin/OmniCore to accept JSON-RPC commands.:
server=1
-
Set a username and password for RPC:
rpcuser=test-username-goes-here rpcpassword=test-password-goes-here
If you are not familiar with bitcoin.conf
or Omni Core's usage of it, please reference:
- https://en.bitcoin.it/wiki/Running_Bitcoin
- https://github.com/OmniLayer/omnicore/blob/master/src/omnicore/doc/configuration.md
- Copy the sample configuration:
$ cp sample-configuration.json configuration.json
- Edit
configuration.json
and set the correct RPC username and password
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.
node QuickReadTests.js
These tests will spend Bitcoin to make Omni DEX trades. They are still a work in progress. Proceed with caution.
node OmniTests.js