getblocktemplate
Returns data needed to construct a block to mine. This method is used by miners to request a block template for mining new blocks. It can be customized with various parameters to specify the desired mining capabilities and rules.
Path Parameters
apiKey
Request
This endpoint expects an object.
template_request
A JSON object containing the template request parameters.
Response
A block template object containing all necessary data for mining.
version
The block version.
previousblockhash
A 64-character hex string representing the block hash.
transactions
Contents of non-coinbase transactions that should be included in the next block.
coinbaseaux
Data that should be included in the coinbase's scriptSig content.
coinbasevalue
Maximum allowable input to coinbase transaction, including the mining reward and transaction fees (in satoshis).
target
The hash target for the block.
mintime
The minimum timestamp appropriate for the next block time in seconds since epoch.
mutable
List of ways the block template may be changed.
noncerange
Range of valid nonces.
sigoplimit
Limit of signature operations in blocks.
sizelimit
Limit of block size.
curtime
Current timestamp in seconds since epoch.
bits
Compressed target of the next block.
height
The height of the next block.