Documentation exported from Syscoin Core 4.3.0

getchainlocks (4.3.0 RPC)

blockchain

control

evo

generating

governance

masternode

mining

network

rawtransactions

signer

syscoin

util

zmq

getchainlocks

Returns information about the active and the most recent chainlocks.
The active chainlock is the one that has enough signatures and the block
it tries to lock is known by our node. The recent chainlock might not have
enough signatures or its block might not be known by our node yet.
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 getchainlocks 
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getchainlocks", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:8370/