getinfo - Okcash RPC

getinfo

Returns an object containing various state info.

Result:
{
  "version": xxxxx,           (numeric) the server version
  "mode": "  ",
  "protocolversion": xxxxx,   (numeric) the protocol version
  "walletversion": xxxxx,     (numeric) the wallet version
  "balance": xxxxxxx,         (numeric) the spendable Okcash balance of the wallet
  "okcashbalance": xxxxxxx,   (numeric) DEPRECATED
  "newmint": xxxxxxx,         (numeric)
  "stake": xxxxxxx,           (numeric) Okcash balance in LTSS staking mode (mining)
  "reserve": xxxxxxx,         (numeric)
  "blocks": xxxxxx,           (numeric) the current number of blocks processed in the server
  "timeoffset": xxxxx,        (numeric) the time offset
  "moneysupply": xxxxxxx,     (numeric) the total amount of Okcash in the network
  "connections": xxxxx,       (numeric) the number of connections
  "proxy": "host:port",       (string, optional) the proxy used by the server
  "difficulty": xxxxxx,       (numeric) the current proof-of-work / proof-os-stake difficulty
  "testnet": true|false,      (boolean) if the server is using testnet or not
  "keypoololdest": xxxxxx,    (numeric) the timestamp (seconds since Unix epoch) of the oldest account in the wallet
  "keypoolsize": xxxx,        (numeric) the total number of keys in the active accounts
  "unlocked_until": ttt,      (numeric) the timestamp in seconds since epoch (midnight Jan 1 1970 GMT) that the wallet is unlocked for transfers, or 0 if the wallet is locked
  "paytxfee": x.xxxx,         (numeric) the transaction fee set in OK/kB
  "mininput": x.xxxx,         (numeric) 
  "errors": "..."             (string) any error messages
}

Examples:
> okcashd getinfo 
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:6969/


Okcash Core RPC documentation.

Okcash version: 5.0.0.3

OK RPC docs at:Github