5

How would I be able to put data in the extra field for say a nonce or whatever?

John
  • 369
  • 2
  • 8
samwellj
  • 3,205
  • 4
  • 16
  • 31
  • For the coinbase TX? Modify the code, I suppose. Not sure XMR's so-called "getblocktemplate" would allow for this, so you MAY have to make your own block. – Wolf0 Dec 18 '16 at 17:45

1 Answers1

2

When using the getblocktemplate RPC, you can pass a reserve_size argument. You will get a block template and a reserve_offset, and then starting at reserve_offset in the block template, you can put reserve_size bytes of whatever you want.

glv
  • 3,334
  • 10
  • 15