eth_submitHashrate
マイニングのハッシュレートを提出する際に使用されます。
パラメータ
1. Hashrate
32バイト
16進数文字列で表されたハッシュレート
2. ID
32バイト
文字列
クライアントを特定するランダムな16進数文字列の ID
code:params.js
params: [
"0x0000000000000000000000000000000000000000000000000000000000500000",
"0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c"
]
戻り値
Boolean
正しく実行された場合 true
そうでない場合 false
サンプル
code:example.sh
// Request
curl -X POST --data '{"jsonrpc":"2.0", "method":"eth_submitHashrate", "params":"0x0000000000000000000000000000000000000000000000000000000000500000", "0x59daa26581d0acd1fce254fb7e85952f4c09d0915afd33d3886cd914bc7d283c","id":73}'
// Result
{
"id":73,
"jsonrpc":"2.0",
"result": true
}
参考
https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_submithashrate
https://infura.io/docs/api/post/eth_submitHashrate
#JSON_RPC_API
Ethereum JSON RPC API 日本語リファレンス