Bitcoin Script

The stack language that locks and unlocks every coin, and the opcodes it is built from.
For a clear breakdown, see this article by Dr. Craig S. Wright — especially chapter 2.

The Script and the Stack

Understand how scripts and the stack interact in Bitcoin transactions.

Start Lesson

Opcode Explorer

Explore various opcodes used in Bitcoin Script.

Start Lesson

Constant Opcodes

Learn about constant opcodes in Bitcoin Script.

Start Lesson

Pushdata Opcodes

Understand the pushdata opcodes in Bitcoin Script.

Start Lesson

Data Manipulation Opcodes

Understand the opcodes used for data manipulation in Bitcoin Script.

Start Lesson

Script Playground

Learn how script works in this interactive sandbox.

Start Lesson

Bitcoin Script Visualization

See how scripts work through the stack.

Start Lesson

Hash Puzzle Script Flow

Understand the flow of a Pay to Hash Puzzle script.

Start Lesson

SIGHASH Definitions and Use Cases

Check out the enormous flexibility that SIGHASH flags give is in Bitcoin programming.

Start Lesson