eth_submitHashrate,用于提交挖矿哈希率。
参数
Hashrate, 哈希率的十六进制字符串表示(32字节)
ID, String - 一个随机的十六进制(32字节)标识客户端的ID
params: [
"0x0000000000000000000000000000000000000000000000000000000000500000",
"0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c"
]
返回:
- Boolean - 如果提交成功完成则返回true,否则返回false。
例子
// Request
curl -X POST --data '{"jsonrpc":"2.0", "method":"eth_submitHashrate", "params":["0x0000000000000000000000000000000000000000000000000000000000500000", "0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c"],"id":73}'
// Result
{
"id":73,
"jsonrpc":"2.0",
"result": true
}