Difference between revisions of "Blockchain API"

From BlockChainTeleCom wiki
Jump to: navigation, search
(Examples of calls with recommended parameters.)
Line 1: Line 1:
  
 
== Examples of calls with recommended parameters. ==
 
== Examples of calls with recommended parameters. ==
Commands must be sent to cli_wallet port if not specified otherwise.
+
Commands must be sent to ''cli_wallet port'' if not specified otherwise.
  
  

Revision as of 08:58, 28 March 2018

Examples of calls with recommended parameters.

Commands must be sent to cli_wallet port if not specified otherwise.


I. Wallet access

is_locked
no params

unlock

params:

password local password to unlock wallet and get access to the encrypted private keys needed for signing transaction

lock
no params

Examples:

curl --data '{"jsonrpc": "2.0", "method": "is_locked", "params": [], "id": 1}' http://127.0.0.1:1227/rpc

curl --data '{"jsonrpc": "2.0", "method": "unlock", "params": ["MySuperSecretPassword"], "id": 1}' http://127.0.0.1:1227/rpc

curl --data '{"jsonrpc": "2.0", "method": "lock", "params": [], "id": 1}' http://127.0.0.1:1227/rpc