I am still new to ethereum. How I can get the getWork information for an old block?

as an example, how to get the block header hash pow, seedhash and target for block 1000,000?

eth_getWork retrieve such information for the current block not for an old block.

Thanks in advance


Does eth_getBlockByNumber give you what you want?

It gives the block hash, nonce, and difficulty (among other things). The target would be computed by dividing 2^256 by the difficulty.

  • Thanks smarx, No it returns the the final block hash and transaction,..etc but the header hash pow (which is the header hash without nonce and mixhash) is not included. Also, the seed hash is not included in the block header. for the difficulty , yes it is included in the returned block header.
    – Ayman
    Jan 31 '18 at 14:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.