Bitcoin Development RoadmapFloating BitcoinTransaction RoadmapCurve Taproot
TransactionVersion
Structure
Version
4 bytes
Segwit (Optional)
Marker
1 byte
Flag
1 byte
Structure
Input Count
variable
Input Structure
Previous TXID
32 bytes
Output Index
4 bytes
ScriptSig Size
variable
ScriptSig
variable
Sequence
4 bytes
Structure
Output Count
variable
Output Structure
Amount
8 bytes
ScriptPubKey Size
variable
ScriptPubKey
variable
Structure
Witness
variable
Structure
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
Bitcoin OpCode Explorer
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.
Your browser does not support SVG
Example
<sig> <pubkey> OP_CHECKSIG
View our public visitor count
Built with 🧡 by the Bitcoin Dev Project
We'd love to hear your feedback on this project?Give Feedback