Getminingcandidate – Get Mining Candidate

getminingcandidate and getblocktemplate are Remote Procedure Call (RPC) programs. The RPC calls are located at an SV node and are currently managed and configured through Maestro software, though a number of software packages may perform these tasks.

A node can make a request with either of the above calls for block information:

  • The getblocktemplate returns a full block.
  • The getminingcandidate program returns the block header.

The returned data is the block candidate data for mining. It is expressed in the JSON language for data processing.

getminingcandidate returns a mining candidate block to the node which originally requested it. The node requests a block to mine. getminingcandidate is the program that obtains a block header to mine.

The getminingcandidate program or call is a replacement for getblocktemplate program. The replacement requirement arose from the need to process bigger blocks with Merkle tree paths in the block header. The Merkle tree proof in the block header allows for confirmation of transactions rather than reading the transactions as a whole. Consequently there can be more transactions within a block and more efficient external processing of the block.

Block header parameters for getminingcandidate

Parameter Description
Id Candidate identifier for submitminingsolution
Prevhash Hash of the previous block (hex string)
Coinbase Coinbase transaction (optional hex string encoded binary transaction)
Version Block version
nBits Difficulty given as hex string.
Time Block time.
Height Current block height
merkleProof Merkle branch of the block (list of hex strings)

Example Block Header in the json format


 "id": "0d49aa74-0986-474f-a6eb-5913fbbbba02",
 "prevhash": "0000000000000000012811f570b3c0ff8cb93c44d707499dc2fcfdd611f38d93",
 "coinbaseValue": 1251906370,
 "version": 536870912,
 "nBits": "1802c73f",
 "time": 1585156824,
 "height": 627795,
 "merkleProof": [


The Maestro software handles the call to and from the SV node to the ASIC miner. The ASIC miner then performs the hashing process to discover the next suitable block to be placed on the blockchain.

UML Sequence Diagram for getminingcandidate

UML Sequence Diagram for getminingcandidate
« Back to Glossary Index

Written by Ramon Quesada

Passionate about Blockchain & Bitcoin technology since 2013, Co- Founder of, Team Manager in the CoinTelegraph Spain franchise (2016-2017 years) Co. Organizer of the Blockchain Boot camp Valencia 2018, Co. Organizer of the mini Hackathon BitcoinSV Barcelona, in August 2019, current coordinator of the BSV Valencia Meetup.

Store of value *

Complex Script Options