eth_submitWork
用于提交POW解决方案。
参数
DATA
, 8字节 - nonce,64位DATA
, 32字节 - 头部的pow哈希,256位DATA
, 32字节 - 混合摘要,256位
params: [
"0x0000000000000001",
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"
]
返回值
Boolean
- 如果提交的方案有效则返回true,否则返回false
示例代码
请求:
curl -X POST --data '{"jsonrpc":"2.0", "method":"eth_submitWork", "params":["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1GE5700000000000000000000000000D1GE5700000000000000000000000000"],"id":73}'
响应:
{
"id":73,
"jsonrpc":"2.0",
"result": true
}