eth_getWork

Returns the hash of the current block, the seedHash, and the boundary condition to be met ("target").

Request

curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
    -X POST \
    -H 'x-amberdata-blockchain-id: ethereum-mainnet' \
    -d '{"jsonrpc":"2.0","id":1,"method":"eth_getWork","params":[]}'

Response

{
  "id":1,
  "jsonrpc":"2.0",
  "result": [
      "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
      "0x5EED00000000000000000000000000005EED0000000000000000000000000000",
      "0xd1ff1c01710000000000000000000000d1ff1c01710000000000000000000000"
    ]
}
FieldDescription
resultThe array with the following properties.
result[0]The current block header pow-hash.
result[1]The seed hash used for the DAG.
result[2]The boundary condition ("target"), 2^256 / difficulty.