返回到文章

采纳

编辑于

eth_getWork

ethereumj
命令

eth_getWork,返回当前块的hash,seedHash和要找到的边界条件(“目标”)。

参数:

  • none

返回:

Array - 具有以下属性的数组:

  • DATA, 32 Bytes - 当前块标题pow-hash
  • DATA, 32 Bytes - 用于DAG的seed散列。
  • DATA, 32 Bytes - 边界条件(“目标”), 2^256 / difficulty.

例子

// Request
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getWork","params":[],"id":73}'

// Result
{
  "id":1,
  "jsonrpc":"2.0",
  "result": [
      "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
      "0x5EED00000000000000000000000000005EED0000000000000000000000000000",
      "0xd1ff1c01710000000000000000000000d1ff1c01710000000000000000000000"
    ]
}