eth_submitWork,用于提交工作证明的解决方案。
参数
- DATA, 8 Bytes - 发现的nonce(64位)。
- DATA, 32 Bytes - 头pow-hash(256位)
- DATA, 32 Bytes - 最大目标(256位)
params: [
"0x0000000000000001",
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"
]
返回
- Boolean - 如果提供的解决方案有效,则返回true,否则返回false。
例子
// Request
curl -X POST --data '{"jsonrpc":"2.0", "method":"eth_submitWork", "params":["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1GE5700000000000000000000000000D1GE5700000000000000000000000000"],"id":73}'
// Result
{
"id":1,
"jsonrpc":"2.0",
"result": true
}