Skip to main content

Bitcoin Script

bitcoin
smart-contract
technical

The stack-based spending-condition language used by Bitcoin-family transaction outputs.

Also known as
Script
1
general

Bitcoin Script is a stack-based language used to define and satisfy transaction-output spending conditions. A validating node evaluates the relevant bytecode and data when a later transaction attempts to spend that output.

2
capabilities

Script operations can check signatures and hashes, compare data, perform arithmetic, branch, and enforce time-based or transaction-based conditions. The available operations and limits depend on the specific network and protocol version.

3
model

Bitcoin Script is intentionally unlike a general application runtime: execution is deterministic, bounded by validation rules, and attached to UTXO spends rather than a persistent process. Higher-level tools can compile to Script, but generated bytecode still needs review and testing.

Bitcoin Cash protocol documentation: Script

Related terms

Explore connected entries beyond the alphabetical index.

All terms and definitions may update as the Cryptionary improves.