I am trying to save some data into a block. The extraData field has a constant value since block 1. Also where does the data parameter of sendTransaction() function get stored?

Please find reference in this answer here: What does each genesis.json parameter mean?

Excerpt here: "extraData An optional free, but max. 32-byte long space to conserve smart things for ethernity."

  • Or, to paraphrase, you can put anything you want in the extraData field. – lungj Jul 16 '17 at 22:44
  • Some mining pools use it for logging their blocks. – PaulRBerg Sep 21 at 10:18

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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