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,215
  • 4
  • 17
  • 32

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,364
  • 11
  • 15