Transaction Data
  • Hash256
  • Hash160
  • Reverse Bytes
Youtube Twitter

Transaction Data

A bitcoin transaction is just a bunch of data that describes the movement of bitcoins.

It takes in inputs, and creates new outputs.



Transaction: c1b4e695098210a31fe02abffe9005cffc051bbe86ff33e173155bcbdc5821e3


Field Data Size Description
Version 01000000 4 bytes Which version of transaction data structure we're using.
Input Count 01 Variable Indicates the upcoming number of inputs.
Field Data Size Description
TXID 796...efc 32 bytes Refer to an existing transaction.
VOUT 01000000 4 bytes Select one of its outputs.
ScriptSig Size 6a Variable Indicates the upcoming size of the unlocking code.
ScriptSig 473...825 A script that unlocks the input.
Sequence ffffffff 4 bytes
Output Count 01 Variable Indicate the upcoming number of outputs.
Field Data Size Description
Value 4baf210000000000 8 bytes The value of the output in satoshis.
ScriptPubKey Size 19 Variable Indicates the upcoming size of the locking code.
ScriptPubKey 76a9...88ac A script that locks the output.
Locktime 00000000 4 bytes Set a minimum block height or Unix time that this transaction can be included in.


A transaction is basically a series of inputs and a series of outputs.

In further detail; the transaction data tells you how to unlock existing packages of bitcoins (from previous transactions), and how to lock them up again in to new packages.


A raw transaction is sometimes called a "serialized transaction", because it's just a bunch of individual pieces of data zipped up in to one string of data.

By Greg Walker,

Last Updated: 24 May 2019
  • 24 May 2019: Added Hashover comment system (basic functionality to test it out)
  • 11 Mar 2018: added link to scriptPubKey
  • 03 Nov 2017: /glossary - transaction-data and output edits - better navigation and consistency
  • 03 Nov 2017: /glossary/output - updated, and also some small similar updates to other pages
  • 03 Nov 2017: ...added natural 'Reverse Byte Order' tooltips to icons
  • 03 Nov 2017: glossary/transaction-data - restructured: better splash images, put fields in to tables with icons, pre-highlighted transaction data, much better :)
  • 02 Mar 2017: - added link to The Royal Fork
  • 01 Mar 2017: - added tooltip to encourage hovering
  • 01 Mar 2017: - Added to description of locktime.
  • 01 Mar 2017: tidying - moved transaction css and js in to a common folder (because being used in both /browser/ and /glossary/ now)
  • 26 Feb 2017: - edited
  • 24 Feb 2017: - first commit
  • 23 Feb 2017: glossary - added xlinks to and
  • 13 Feb 2017: - first draft
  • 16 Jan 2017: - first commit
  • 13 Jan 2017: tidied up glossary pages - css, formatting, restructuring
  • 03 Jan 2017: Fixed broken HTML when using pandoc.
  • 01 Jan 2017: Moved /manual/guide/ and /manual/reference/ to /guide/ and /glossary/

Hey there, it's Greg.

I'll let you know about cool website updates, or if something seriously interesting happens in bitcoin.

Don't worry, it doesn't happen very often.