Skip to content
A JSON-RPC 2.0 specification compliant server for Exchanges to interact with the ARK Blockchain.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
packages refactor: replace core-utils with got (#23) Jun 16, 2019
scripts feat: allow setting a custom logger May 31, 2019
.editorconfig first commit May 17, 2019
.gitattributes first commit May 17, 2019
.gitignore first commit May 17, 2019
.lintstagedrc.json refactor: break up RPC and CLI (#16) May 31, 2019
.prettierignore first commit May 17, 2019
.prettierrc.json first commit May 17, 2019
.yarnrc build: sequentially build modules with yarn (#14) May 31, 2019
CODEOWNERS docs: add usage instructions and disclaimer (#20) Jun 10, 2019
LICENSE first commit May 17, 2019
README.md refactor: replace core-utils with got (#23) Jun 16, 2019
banner.png first commit May 17, 2019
codecov.yml first commit May 17, 2019
lerna.json chore: stable version and dependencies (#21) Jun 12, 2019
package.json feat: use ports returned via API and fallback to seeds (#19) Jun 11, 2019
tsconfig.json refactor: break up RPC and CLI (#16) May 31, 2019
tslint-config.json first commit May 17, 2019
tslint.json first commit May 17, 2019
yarn.lock refactor: replace core-utils with got (#23) Jun 16, 2019

README.md

@arkecosystem/exchange-json-rpc

Latest Version Node Engine Build Status Codecov License: MIT

Disclaimer

The Exchange JSON-RPC is only maintained for exchanges, as the name suggests. We do not offer any support or guidance unless you are an Exchange in which case you most likely will already be in touch with us.

Installation

yarn global add @arkecosystem/exchange-json-rpc-cli

Usage

All commands support a -h flag to show help for the specified command.

$ exchange-json-rpc
A JSON-RPC 2.0 specification compliant server for Exchanges to interact with the ARK Blockchain.

VERSION
  @arkecosystem/exchange-json-rpc-cli/1.0.0 darwin-x64 node-v10.16.0

USAGE
  $ exchange-json-rpc [COMMAND]

COMMANDS
  autocomplete  display autocomplete installation instructions
  command
  commands      list all the commands
  help          display help for exchange-json-rpc
  log           Show the log
  restart       Restart the JSON-RPC
  run           Run the JSON-RPC (without pm2)
  start         Start the JSON-RPC
  status        Show the JSON-RPC status
  stop          Stop the JSON-RPC
  update        Update the exchange-json-rpc installation

start

Start the JSON-RPC

exchange-json-rpc start
Flag Description Default Required
--[no-]allowRemote allow remote connections which are filtered by a whitelist n/a No
--network= the name of the network that should be used mainnet No
--token= the name of the token that should be used ark No
--host= the host that should be used to expose the RPC 0.0.0.0 No
--port= the port that should be used to expose the RPC 8008 No
--peer= the peer you want to use for communication, defaults to random network peers n/a No
--whitelist= a comma separated list of IPs that can access the RPC 127.0.0.1,::ffff:127.0.0.1 No

restart

Restart the JSON-RPC

exchange-json-rpc restart

stop

Stop the JSON-RPC

exchange-json-rpc stop
Flag Description Default Required
--kill kill the process or daemon n/a No

run

Run the JSON-RPC without pm2 (exits on CTRL+C)

exchange-json-rpc run
Flag Description Default Required
--[no-]allowRemote allow remote connections which are filtered by a whitelist n/a No
--network= the name of the network that should be used mainnet No
--token= the name of the token that should be used ark No
--host= the host that should be used to expose the RPC 0.0.0.0 No
--port= the port that should be used to expose the RPC 8008 No
--peer= the peer you want to use for communication, defaults to random network peers n/a No
--whitelist= a comma separated list of IPs that can access the RPC 127.0.0.1,::ffff:127.0.0.1 No

status

Show the JSON-RPC status

exchange-json-rpc status

update

Update the JSON-RPC installation

exchange-json-rpc update

log

Show the log

exchange-json-rpc log
Flag Description Default Required
--error= only show error output n/a No
--lines= number of lines to tail 15 No

Security

If you discover a security vulnerability within this package, please send an e-mail to security@ark.io. All security vulnerabilities will be promptly addressed.

Credits

This project exists thanks to all the people who contribute.

License

MIT © ARK Ecosystem

You can’t perform that action at this time.