Mining API
Block template retrieval, block submission, and network hashrate estimation.
SahyadriX Mining Algorithm
ASIC-resistant PoW optimized for CPU and GPU mining. Anyone with a standard computer can participate in securing the network. Solo mining enabled.
RPCgetBlockTemplateMining
Get the current block template for mining. Returns block header template with current DAA score, parent blocks, and mining reward address. Mining pools use this to distribute work to miners.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
payAddress | string | Required | Mining reward address (csm1s...) |
extraData | string | Optional | Custom miner data (pool ID, etc.) |
{
"id": 1,
"method": "getBlockTemplate",
"params": [{
"payAddress": "csm1sminer...",
"extraData": "pool_id"
}]
}
// Response
{
"block": {
"header": {
"version": 1,
"parentBlockHashes": ["7f3c1200..."],
"hashMerkleRoot": "00000000...",
"daaScore": 11101,
"timestamp": 1710255320,
"bits": 2072554627,
"nonce": 0
}
},
"isSynced": true
}RPCsubmitBlockWrite
Submit a mined block to the DAG. Used by miners after finding a valid nonce that satisfies the difficulty target.
{
"id": 2,
"method": "submitBlock",
"params": [{ "block": "serialized_block_hex..." }]
}
// Response
{
"rejectReason": "NONE"
// Possible values:
// "NONE" - Block accepted
// "BLOCK_INVALID" - Invalid proof-of-work
// "IS_IN_IBD" - Node is syncing
}RPCestimateNetworkHashesPerSecondRead
Estimates the current network hashrate based on recent block timestamps and DAA difficulty adjustments.
| Parameter | Type | Required | Description |
|---|---|---|---|
windowSize | integer | Optional | Number of blocks for estimation (default: 1000) |
startHash | string | Optional | Start from specific block hash |
{
"id": 3,
"method": "estimateNetworkHashesPerSecond",
"params": [{ "windowSize": 1000 }]
}
// Response
{
"networkHashesPerSecond": 12584962340
}Mining Flow
Get Template
→Solve PoW
→Submit Block
→Validation
→Reward
Mining Parameters
SahyadriX
Algorithm
1s
Block Time
0.083
Block Reward (CSM)
CPU/GPU
Mining Hardware