Post
Topic
Board Development & Technical Discussion
Re: Finding nonce in historical transactions / blocks
by
release
on 14/02/2021, 06:53:37 UTC
I'm not sure where to find the extra nonce though, they're located in the Coinbase transaction.

It turns out that the extraNonce is not included in the block or block header formats. This is a reply from theymos:

...
extraNonce is used by bitcoind, but it's not part of the protocol. There is no extraNonce field in blocks or transactions.



Thanks for that. Their is always some ninja here with knowledge needed. This is obviously historical block data? Any idea how to find individual transaction nonce? Thanks

There is no nonce for individual transactions, because it only applies to block generation. Individual transactions have no use knowing the nonce, since that would just waste more bytes making the tx larger. It's a 32-bit counter located in the last 4 bytes of the block header.

The transaction nonce is what is used to create the signature of the transaction or the r,s. It's private as it involves the private key to sign transactions