Miner Endpoints
Description of endpoints used to get data related to mining on the DeSo blockchain
Last updated
Was this helpful?
Description of endpoints used to get data related to mining on the DeSo blockchain
Last updated
Was this helpful?
POST
/api/v0/get-block-template
Get the template for the next block
Endpoint implementation in .
Example usages in frontend: - Make request to - Use GetBlockTemplate to
PublicKeyBase58Check*
String
Public key to swap in for the block reward
NumHeaders*
int64
Number of headers (and extra nonces) requested
HeaderVersion*
uint32
Must be 1, version 0 headers have been deprecated
POST
/api/v0/submit-block
Submits block to be processed by node's block producer
PublicKeyBase58Check*
String
Public key to swap in for the block reward
Header*
Byte[]
Bytes of MsgDeSoHeader to be used in block
ExtraNonce*
uint64
Extra data nonce to be used in the block reward transaction
BlockID*
String
ID of block to be looked up from the block producer
Endpoint implementation in .