Miner Endpoints
Description of endpoints used to get data related to mining on the DeSo blockchain
Last updated
Description of endpoints used to get data related to mining on the DeSo blockchain
Last updated
POST
/api/v0/get-block-template
Get the template for the next block
Endpoint implementation in backend.
Example usages in frontend: - Make request to Get Block Template - Use GetBlockTemplate to show stats on the next block in the admin panel
Name | Type | Description |
---|---|---|
POST
/api/v0/submit-block
Submits block to be processed by node's block producer
Endpoint implementation in backend.
Name | Type | Description |
---|---|---|
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
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