What Are Bitcoin Smart Contracts? Ordinals, NFTs, and Runes Explained

This article is available in the following languages:

Author logo
Patrick Dike-Ndulue
Post image

AI summary

Bitcoin was originally designed for secure, decentralized value transfer, not for complex smart contracts or NFTs like Ethereum. However, developers have extended Bitcoin’s capabilities through limited smart contracts, Ordinals (for on-chain NFTs), and token standards like BRC-20 and Runes, each with unique tradeoffs and limitations. While Bitcoin’s approach prioritizes security, permanence, and decentralization, its NFT and token ecosystem remains distinct from Ethereum’s, evolving cautiously with innovations that avoid compromising Bitcoin’s core principles.

 

Bitcoin’s designers initially created it as a decentralized system for storing and transferring value. Unlike blockchains such as Ethereum, its creators did not build it to support decentralized applications or complex programmable logic. Still, demand for smart contracts, NFTs, and tokenization has pushed developers to find ways to extend Bitcoin without changing its core design. The result is a unique ecosystem of Bitcoin smart contracts, NFTs, and token standards that work very differently from those on other blockchains. This article explains how Bitcoin smart contracts work, their limitations, and how technologies like Ordinals, BRC-20, and Runes make NFTs and tokens possible on Bitcoin.

Does Bitcoin Support Smart Contracts?

Yes, Bitcoin supports smart contracts, but only in a limited, intentional way. Bitcoin smart contracts use Bitcoin Script, a simple, non-Turing-complete scripting language. Unlike Ethereum’s Solidity, Bitcoin Script cannot loop endlessly or store complex on-chain state. This restriction improves security and predictability, but limits flexibility.

Bitcoin Script cannot:

  • Read arbitrary blockchain state
  • Store persistent variables
  • Execute complex conditional logic

Instead, it focuses on validating spending conditions for Bitcoin transactions using the UTXO model.

How Bitcoin Smart Contracts Work

Bitcoin smart contracts are condition-based. When a sender creates a transaction, they define the rules that must be satisfied to spend the funds. These rules act like a lock. To unlock the funds, the recipient must provide the correct data, such as a signature, multiple signatures, or proof that they met a time condition.

This system allows Bitcoin to support:

  • Ownership verification
  • Time-based restrictions
  • Multi-party approvals

All without executing arbitrary code.

Types of Bitcoin Smart Contracts

1. Pay-to-Public-Key-Hash (P2PKH)

P2PKH is the most common Bitcoin smart contract type. It locks funds to the hash of a public key and requires a valid signature to spend them. P2PKH is secure, efficient, and still widely used today.

Script format: OP_DUP OP_HASH160 <pubkey_hash> OP_EQUALVERIFY OP_CHECKSIG

2. Multisignature (MultiSig)

MultiSig contracts require multiple signatures to authorize a transaction.

Example: 2-of-3 MultiSig requires two valid signatures out of three possible keys

Users commonly use this for:

  • Shared custody
  • Escrow
  • DAO treasuries

3. Time-Locked Transactions (nLockTime and nSequence)

Bitcoin supports time-based conditions through:

  • nLockTime: Absolute time or block height
  • nSequence: Relative time locks per input

These features enable:

  • Delayed payments
  • Payment channels
  • Advanced financial agreements

Introduced through BIP-65 and BIP-112, time locks are a core building block for Bitcoin Layer-2 solutions.

4. Pay-to-Script-Hash (P2SH – BIP16)

P2SH allows users to send Bitcoin to a hash of a script instead of revealing the script upfront.

Benefits:

  • Smaller transaction size
  • Improved privacy
  • Support for complex scripts like MultiSig

P2SH addresses start with “3” and remain widely supported.

5. Pay-to-Taproot (P2TR – BIP341)

Taproot smart contracts improve privacy and efficiency by hiding unused spending conditions.

Key advantages:

  • Complex logic remains private unless executed
  • Lower transaction fees
  • Better scalability

Taproot is foundational for Ordinals and modern Bitcoin smart contract designs.

Do NFTs Exist on the Bitcoin Network?

Yes, but they work very differently from NFTs on Ethereum. Bitcoin’s developers did not build it for NFTs, so several protocols and layers have emerged to enable them without changing Bitcoin’s base rules.

​​Bitcoin NFT Ecosystem

Early Experiments

  • Colored Coins used satoshis as asset markers, but lacked flexibility
  • Counterparty (XCP) enabled NFTs and tokens using embedded transaction data
  • Notable example: Rare Pepes

Layer-2 and Sidechains

  • Stacks uses the Clarity smart contract language and settles on Bitcoin
  • RSK (Rootstock) enables Ethereum-style smart contracts via a Bitcoin peg

These solutions offer greater flexibility but require additional trust assumptions than pure Layer-1 Bitcoin.

What Are Bitcoin Ordinals?

Bitcoin Ordinals assign serial numbers to individual satoshis and allow users to inscribe data directly onto them. Inscriptions can include:

  • Images
  • Text
  • Audio or video
  • Other digital content

Because Ordinals use Bitcoin’s base layer, inscriptions are fully on-chain and permanent. This makes them appealing to collectors who value immutability and censorship resistance. Ordinals became possible thanks to SegWit and Taproot, which improved Bitcoin's handling of data and scripts.

BRC-20 Tokens

BRC-20 is a fungible token standard built on Ordinals inscriptions. Despite rapid growth, BRC-20 exposed scalability limits.

Pros

Cons

Simple to create

Creates excessive UTXOs

Fully on-chain

Causes network congestion

Bitcoin Runes Explained

Developers created Bitcoin Runes to improve the design of fungible tokens on the Bitcoin network.

Key features:

  • Uses the UTXO model directly
  • Stores metadata in OP_RETURN
  • Avoids UTXO bloat

Runes track balances per UTXO rather than wallet address. Token actions include:

  • Etching: Define token parameters
  • Minting: Create supply
  • Transferring: Move runes between outputs

Runes aim to be simpler, cleaner, and more scalable than BRC-20.

Challenges of NFTs and Tokens on Bitcoin

Bitcoin’s design imposes natural limits:

  • Limited block space
  • Lower transaction throughput
  • Fee spikes during high demand

As a result, Bitcoin-based NFTs and tokens prioritize permanence and security over rapid experimentation.

Use Cases and Real-World Examples

  • Digital art and collectibles
  • Gaming assets on Stacks and RSK
  • Historical on-chain inscriptions via Ordinals

Bitcoin NFTs prioritize permanence and decentralization over programmability.

Future of Bitcoin Smart Contracts and NFTs

Bitcoin smart contracts will likely continue evolving slowly and deliberately.

Instead of copying Ethereum’s model, Bitcoin is taking its own path:

  • Stronger privacy through Taproot
  • Cleaner token designs like Runes
  • Layer-2 innovation without bloating Layer-1

For Bitcoin users, this means more options, without sacrificing the network’s core values.

FAQ: Bitcoin Smart Contracts, NFTs, and Runes

Are Bitcoin smart contracts the same as Ethereum smart contracts?

No. Bitcoin smart contracts are simpler and non-Turing-complete. They focus on transaction conditions rather than application logic.

Can Bitcoin run decentralized applications?

Not directly on Layer 1. Developers typically build dApps on Layer 2 networks like Stacks or on sidechains like RSK.

Are Bitcoin NFTs stored entirely on-chain?

Ordinals are fully on-chain. Other NFT solutions may store metadata off-chain while anchoring ownership to Bitcoin.

What is the difference between Ordinals and NFTs on Ethereum?

Ordinals inscribe data directly onto satoshis, while Ethereum NFTs rely on smart contracts and often reference off-chain data.

Are BRC-20 tokens safe?

They are experimental. While they work as designed, they can cause network congestion and higher fees.

Why were Bitcoin Runes created?

Developers designed Runes to create fungible tokens without excessive UTXO usage, thereby improving efficiency and scalability.

Do Bitcoin NFTs require Taproot?

Modern Ordinals and efficient inscriptions rely on Taproot, but older NFT methods existed before it.

Will Bitcoin ever support complete smart contracts?

Unlikely at the base layer. Bitcoin prioritizes stability and security, leaving advanced logic to higher layers.

Will Bitcoin NFTs replace Ethereum NFTs?

They serve different purposes. Bitcoin NFTs focus on permanence and minimalism rather than programmability.

Don't miss! We drop prices for 20%

Flash sale expires soon! Stakes with BTC Reward. Tap & Get

Get Tangem
Author logo
Authors Patrick Dike-Ndulue

Patrick is the Tangem Blog's Editor