SahyadriSahyadriAPI

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

ParameterTypeRequiredDescription
payAddressstringRequiredMining reward address (csm1s...)
extraDatastringOptionalCustom 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.

ParameterTypeRequiredDescription
windowSizeintegerOptionalNumber of blocks for estimation (default: 1000)
startHashstringOptionalStart 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