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. Sep 21 '18 at 10:18

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.