Kaspa(KAS)
区块浏览器:https://katnip.cbytensky.org/
github:https://github.com/kaspanet
教程:https://github.com/kaspanet/docs/
stratum+tcp://kas.stratum.hashpool.site:8877
stratum+ssl://kas.stratum.hashpool.site:18877
挖矿协议
协议说明
# Authorize
{ "method":"mining.authorize", "id": 1, "params":[ $pay_address, $password ], "error": "" }\n
# Subscribe
{ "method":"mining.subscribe", "id": 0, "params": [ $CARGO_PKG_NAME/$CARGO_PKG_VERSION ], "error": "" }\n
# SubscribeResult
{
"id": 0,
"result":[
[]
$extranonce,
$nonce_size
],
"error":""
}\n
# SetExtranonce
{ "method":"set_extranonce", "id": 0, "params": [ $extranonce, $nonce_size ], "error": "" }\n
# SetDifficulty
{ "method":"mining.set_difficulty", "id": 0, "params": [ $difficulty ], "error": "" }\n
# Notify
{ "method":"mining.notify", "id": 2, "params": [ $job_id, [ $header_hash ], $timestamp ], "error": "" }\n
# Submit
{ "method":"mining.submit", "id": 2, "params": [ $miner_address, $job_id, $nonce ], "error": "" }\n
# StratumResult
{ "id": 0, "result": $result, "error": "" }\n
协议示例
# Authorize
{"method":"mining.authorize", "id":1, "params":["kaspa:qr36zdxs0dn3n0h799jhdl02qks5742lxjgmfsfj9xmlca7n4l6mw0s0n48nx","x"],"error":""}\n
# Subscribe
{"id":0, "method":"mining.subscribe","params":["kaspa-miner/0.2.1-GPU-0.6"],"error": ""}\n
# SubscribeResult
{"id": 0, "result":[[], "4276", 6],"error":""}\n
# SetExtranonce
{"id": 0, "method": "set_extranonce", "params": ["4276", 6], "error":""}\n
# SetDifficulty
{"id": 0, "method": "mining.set_difficulty", "params": [1]}\n
# Notify
{"id": 1, "method": "mining.notify", "params": ["824", [6220359623286050879, 2266222770083076433, 6763595529891839840, 2591220144911936237], 1657792686934]}\n
# Submit
{"id": 2, "method": "mining.submit", "params": ["kaspatest:qqu9t9azlq4e8nrmmtr0heuqnd8vcs5yxkdx0u0upqlg8hdrfv47wuqdurlpw", "824", "0x36340000514af2d2"], "error": ""}\n
# StratumResult
{"id": 0, "result": False, "error": [22, "duplicate", null]}\n