Locate the eight reserved bytes in a Monero pool template
A pool can reserve space in a candidate block for worker-specific data. Writing at a fixed offset across templates risks corrupting unrelated fields.
Ask for a template with an explicit reservation
Replace the address with the payout address for the target network. Decode blocktemplate_blob from hex to bytes and take reserved_offset from this very response. Retain the parent hash with the template identifier. POST this example to /json_rpc on monerod.
{
"jsonrpc": "2.0",
"id": "guide",
"method": "get_block_template",
"params": {
"wallet_address": "<mining reward address>",
"reserve_size": 8
}
}
Convert byte offsets before slicing hex
If the offset is 130 bytes, the eight-byte reservation spans hex character positions 260 through 275 inclusive. Restrict edits to the reserved region and rebuild the correct hashing input after updating the transaction. blockhashing_blob and the full template serve different purposes. A new parent requires checking template freshness again.