bitcoind.app
CommandsGuidesContact ↗
Home/Generating/generateblock
Generating

generateblock

Mine a block with a set of ordered transactions immediately to a specified address or descriptor.

Parameters

outputstringREQUIRED
The address or descriptor to send new coins to
transactionsarrayREQUIRED
Hex-encoded raw transactions or txids

Returns

objectBlock hash and hex

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"generateblock","params":["bcrt1q...",["rawtx"]]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

{
  "hash": "00000000a8e...",
  "hex": "0100000001..."
}
← Previous
uptime
Next →
generatetoaddress

More Generating Commands

generatetoaddressgeneratetodescriptor

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗