


Version
Version
4 bytes
Marker
1 byte
Flag
1 byte
Input Count
variable
Previous TXID
32 bytes
Output Index
4 bytes
ScriptSig Size
variable
ScriptSig
variable
Sequence
4 bytes
Output Count
variable
Amount
8 bytes
ScriptPubKey Size
variable
ScriptPubKey
variable
Witness
variable
Locktime
4 bytes
Size
4 bytes
Format
Little-Endian
Description
The version number for the transaction. Used to enable new features.
Example
02000000
Byte Visualization
02
Byte 1
00
Byte 2
00
Byte 3
00
Byte 4
OP_CHECKSIG (0xAC)
Verifies a signature against a public key and the transaction data. If the signature is valid, it pushes 1 onto the stack; otherwise, it pushes 0.
Example
<sig> <pubkey> OP_CHECKSIG