Documentation exported from Syscoin Core 4.1.2

getauxblock (4.1.2 RPC)

blockchain

control

generating

governance

governancewallet

mining

network

rawtransactions

syscoin

syscoinwallet

util

wallet

zmq

getauxblock ( "hash" "auxpow" )

Creates or submits a merge-mined block.

Without arguments, creates a new block and returns information
required to merge-mine it.  With arguments, submits a solved
auxpow for a previously returned block.

Arguments:
1. hash      (string, optional) Hash of the block to submit
2. auxpow    (string, optional) Serialised auxpow found

Result (without arguments):
{
  "hash"               (string) hash of the created block
  "chainid"            (numeric) chain ID for this block
  "previousblockhash"  (string) hash of the previous block
  "coinbasevalue"      (numeric) value of the block's coinbase
  "bits"               (string) compressed target of the block
  "height"             (numeric) height of the block
  "_target"            (string) target in reversed byte order, deprecated
}

Result (with arguments):
xxxxx        (boolean) whether the submitted block was correct

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