node-3dcoin
node-3dcoin is a simple wrapper for the 3dcoin client's JSON-RPC API.
The API is equivalent to the API document here.
The methods are exposed as lower camelcase methods on the 3dcoin.Client
object, or you may call the API directly using the cmd
method.
Install
npm i 3dcoin
Examples
Create client
// all config options are optionalvar node_3dcoin = ;var client = host: 'localhost' port: 'port' user: 'username' pass: 'password' timeout: 30000;
Get balance across all accounts with minimum confirmations of 6
client;
cmd
Getting the balance directly using client;
Batch multiple RPC calls into single HTTP request
var batch = ;for var i = 0; i < 10; ++i batch;client;