I want to get ethereum blocks as binary data and parse them manually to get raw ethereum transactions. Are there any good manuals how to do it?

UPDATE: how ethereum genesis block (at height #0) looks like in binary (hex) form?

  • Does this help? ethereum.stackexchange.com/questions/1474/… – Richard Horrocks Apr 9 '17 at 16:55
  • I do not see a simple way to get a block as raw data. In bitcoin I can get any block for example the genesis useful links: [hex] [binary]. I am looking for raw data, not for json or any other – amaclin Apr 9 '17 at 17:10
  • The raw data is stored as a levelDB database. If you want to read the data directly from the .ldb files you'd need to write a tool that understood the database's schema, and was able to decode the RLP encodings . (I can't remember if something like that already exists - I can't immediately see anything.) If you want to roll your own, I could point you to the Go code in Geth that creates the files? – Richard Horrocks Apr 9 '17 at 19:11
  • 1
    I already started to write my own lib/tool to decode RLP in cpp :) I have some experience to parse bitcoin ldb-files. – amaclin Apr 9 '17 at 19:17
  • 2
    Brilliant - good luck! :) – Richard Horrocks Apr 9 '17 at 19:19

Your Answer

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

Browse other questions tagged or ask your own question.