Login
Learn Bitcoin is live in Beta - spot an issue or have a suggestion? We'd love to hear it!
Home Glossary B Bitcoin Script

Bitcoin Script

The built-in scripting language defining spending conditions (e.g., single-sig, multisig) in Bitcoin transactions.
Share

Bitcoin Script is like a stack-based set of instructions that outlines how funds can be spent. For example, a typical pay-to-pubkey-hash script demands a valid signature from the holder of the corresponding private key. More advanced scripts enable multi-signature arrangements, time locks, or other conditional logic.

Unlike more flexible Turing-complete languages, Bitcoin Script is intentionally limited to enhance security and mitigate attack vectors. That said, developers continue to extend its functionality via soft forks (like Taproot). Although it’s not the easiest language to master, understanding Script opens the door to creative on-chain contracts and advanced features.

Key takeaways
Specifies the conditions to spend BTC outputs
Stack-based and deliberately limited for security
Can form complex contracts with features like multisig or time locks
Learn Bitcoin visual
Learn how to

Be Your Own Bank

Be Your Own Bank teaches you how to securely store and manage your Bitcoin, giving you full control over your finances. Unlock the power of self-custody and financial sovereignty, so you can confidently operate without intermediaries.

Take the Survey
30 sec
Free
Suggest a Term

Have a term to suggest? Enter it below and help us expand our vocabulary!