A JSON-RPC 2.0 Specification compliant server to interact with the ARK blockchain.
Security Warning for Production
All calls should be made from the server where JSON-RPC is running at (i.e.,
127.0.0.1). The JSON-RPC server should never be publicly accessible. If you wish to access JSON-RPC server from a remote address, you can whitelist the address with
--allow <address>. Addresses allow you to use wildcards, eg.
If you do want to allow access from all remotes, start the JSON-RPC server with the
--allow-remote commandline switch. This can be dangerous.
$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - $ sudo apt-get install -y nodejs
After you have installed node.js and made sure it is working you are ready to setup pm2 and ARK JSON-RPC.
$ npm install pm2 -g $ npm install @arkecosystem/json-rpc
Running the JSON-RPC Server
The recommended way of running and keeping your JSON-RPC server alive is pm2.
$ pm2 start ark-json-rpc
If you would like to run from a docker environment, you will first need to build the container by running:
$ docker build -t ark-json-rpc .
You will need to run the container with the
--allow-remote option to allow the host machine to access the container.
$ docker run --name ark-json-rpc -d -p 8080:8080 ark-json-rpc -e "--allow-remote"
If you discover a security vulnerability within this package, please send an e-mail to email@example.com. All security vulnerabilities will be promptly addressed.