Documentation exported from Syscoin Core 4.2.2

generateblock (4.2.2 RPC)

blockchain

control

evo

evowallet

generating

governance

governancewallet

masternode

mining

network

rawtransactions

syscoin

syscoinwallet

util

wallet

zmq

generateblock "output" ["rawtx/txid",...]

Mine a block with a set of ordered transactions immediately to a specified address or descriptor (before the RPC call returns)

Arguments:
1. output               (string, required) The address or descriptor to send the newly generated syscoin to.
2. transactions         (json array, required) An array of hex strings which are either txids or raw transactions.
                        Txids must reference transactions currently in the mempool.
                        All transactions must be valid and in valid order, otherwise the block will be rejected.
     [
       "rawtx/txid",    (string)
       ...
     ]

Result:
{                    (json object)
  "hash" : "hex"     (string) hash of generated block
}

Examples:

Generate a block to myaddress, with txs rawtx and mempool_txid
> syscoin-cli generateblock "myaddress" '["rawtx", "mempool_txid"]'