Documentation exported from Syscoin Core 4.2.0

getbestchainlock (4.2.0 RPC)

blockchain

control

evo

evowallet

generating

governance

governancewallet

masternode

mining

network

rawtransactions

syscoin

syscoinwallet

util

wallet

zmq

getbestchainlock

Returns information about the best chainlock. Throws an error if there is no known chainlock yet.

Result:
{                                (json object)
  "blockhash" : "hex",           (string) The block hash hex encoded
  "height" : n,                  (numeric) Block height
  "signature" : "hex",           (string) The chainlock's BLS signature
  "known_block" : true|false     (boolean) True if the block is known by our node
}

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