Difference between revisions of "Cloakcoin API"

From CloakCoin Wiki
Jump to: navigation, search
(Created page with "CloakCoin provides a remote procedure call ('''RPC''') interface for various administrative tasks, wallet operations, and queries about network and block chain data. If you s...")
 
Line 16: Line 16:
  
 
<code>
 
<code>
rpcuser=bitcoind
+
rpcuser=bitcoind</code>
 +
<code>
 
rpcpassword=change_this_to_a_long_random_password
 
rpcpassword=change_this_to_a_long_random_password
 
</code>
 
</code>

Revision as of 23:32, 29 November 2018

CloakCoin provides a remote procedure call (RPC) interface for various administrative tasks, wallet operations, and queries about network and block chain data.

If you start CloakCoin using cloakcoind, the RPC interface is enabled by default.

You can control cloakcoind by JSON-RPC commands.

The program gets is settings from cloakcoin.conf in the CloakCoin application directory:

$HOME/.bitcoin/

The interface requires the user to provide a password for authenticating RPC requests.

This password can be set in cloakcoin.conf, create the cloakcoin.conf configuration file and set an rpcuser and rpcpassword to secure the JSON-RPC API.

cloakcoin.conf example:

rpcuser=bitcoind rpcpassword=change_this_to_a_long_random_password

By default the service is bound to port 29662 you can change it in cloakcoin.conf with the:

rpcport=new_port_here


Now run:

$./cloakcoind -daemon

$./cloakcoind -help

A list of RPC calls will be shown.

If you are learning the API, it is a very good idea to use the test network.

cloakcoind -testnet