eth_getWork
返回当前块的哈希、种子哈希、以及要满足的边界条件,即目标。
参数
无
返回值
Array
- 数组,具有如下成员:
- DATA, 32字节 - 当前块头的pow-hash
- DATA, 32字节 - 用于DAG的种子哈希
- DATA, 32字节 - 边界条件,目标, 2^256 / difficulty.
示例代码
请求:
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getWork","params":[],"id":73}'
响应:
{
"id":1,
"jsonrpc":"2.0",
"result": [
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"0x5EED00000000000000000000000000005EED0000000000000000000000000000",
"0xd1ff1c01710000000000000000000000d1ff1c01710000000000000000000000"
]
}