eth_submitHashrate
用于提交挖矿的哈希速率。
参数
hashRate
- 哈希速率,采用16进制字符串表示,32字节ID
, String - 随机16进制字符串,32字节,用于标识客户端的编号
params: [
"0x0000000000000000000000000000000000000000000000000000000000500000",
"0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c"
]
返回值
Boolean
- 如果提交成功则返回true,否则返回false
示例代码
请求:
curl -X POST --data '{"jsonrpc":"2.0", "method":"eth_submitHashrate", "params":["0x0000000000000000000000000000000000000000000000000000000000500000", "0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c"],"id":73}'
结果:
{
"id":73,
"jsonrpc":"2.0",
"result": true
}