📈 Get daily crypto insights that make you smarter about your money

How Bitcoin Ordinals Work: A Technical Deep Dive Into On-Chain NFT Inscriptions

In February 2023, Bitcoin was trading at $24,641, recovering from its first red week of the year, and the Ordinals protocol had just surpassed 130,000 inscriptions since its January launch. The Bitcoin network — long considered too rigid for anything beyond simple value transfers — was suddenly hosting a thriving NFT ecosystem. But how exactly do Ordinals work under the hood? Unlike Ethereum’s ERC-721 tokens, which rely on smart contracts to manage ownership and metadata, Ordinals take a fundamentally different approach: they embed data directly into Bitcoin transactions, leveraging the network’s native UTXO model and Taproot upgrade to create unique, immutable digital artifacts. This tutorial walks through the technical architecture, inscription process, and verification mechanics of Bitcoin Ordinals.

The Objective

This guide aims to provide a comprehensive technical understanding of how the Ordinals protocol enables NFT-like functionality on Bitcoin without modifying the blockchain’s consensus rules. By the end, you should understand the theoretical foundations (ordinal theory), the practical inscription process (how data is embedded in transactions), and the verification mechanics (how inscriptions are tracked and validated).

The Ordinals protocol, created by developer Casey Rodarmor, is built on a concept called ordinal theory — a system for individually identifying and tracking every satoshi (the smallest unit of Bitcoin, equal to 0.00000001 BTC) on the blockchain. While Bitcoin transactions have always involved individual satoshis, the protocol had no native way to distinguish one satoshi from another. Ordinal theory assigns a unique number to each satoshi based on the order in which it was mined, creating a persistent identity for every unit of Bitcoin.

Prerequisites

Before diving into the technical details, you should have a working understanding of the following concepts: Bitcoin’s UTXO (Unspent Transaction Output) model, where transactions consume previous outputs and create new ones; the Taproot soft fork (activated November 2021), which introduced Schnorr signatures and Tapscript; and basic familiarity with Bitcoin transaction structure, including inputs, outputs, and witness data.

You will also need a Bitcoin node running in pruned or full mode with the Ordinals indexer software, which tracks the location of every satoshi and maintains a database of inscriptions. The ord client is a Rust-based command-line tool that communicates with your Bitcoin node to create, track, and verify inscriptions.

Step-by-Step Walkthrough

Step 1: Understanding Ordinal Numbers. Every satoshi mined receives a sequential ordinal number based on its position in the blockchain. The first satoshi in the genesis block is ordinal 0, the second is ordinal 1, and so on. As of February 2023, approximately 19.37 million BTC (nearly 1.937 quadrillion satoshis) had been mined. The ordinal numbering scheme follows a specific hierarchy: satoshis are numbered within blocks, blocks within difficulty periods, difficulty periods within halving epochs, and halving epochs within the total supply.

Step 2: The Inscription Transaction Structure. An inscription is created through a specific Bitcoin transaction pattern that embeds arbitrary data into the witness field of a Taproot input. The process involves two key components: a commitment transaction and a reveal transaction. The commitment transaction creates a Taproot output that contains the inscription data in its script path spend condition but does not expose the data on-chain. The reveal transaction spends this output, making the inscription data visible in the blockchain.

The inscription data is encoded as an envelope in the Tapscript using OP_FALSE OP_IF … OP_ENDIF opcodes. This envelope structure includes content type headers (such as image/png or text/html) followed by the actual data payload. Because the data is wrapped in a conditional that always evaluates to false (OP_FALSE), the data is never actually executed by the Bitcoin script interpreter — it is simply stored in the witness data.

Step 3: Transferring Inscriptions. Once created, an inscription is permanently associated with the specific satoshi that was inscribed. Transferring the inscription is simply a matter of transferring that satoshi in a Bitcoin transaction. The Ordinals indexer tracks the location of each ordinal-numbered satoshi as it moves through transaction inputs and outputs, maintaining a continuous chain of custody for every inscription.

This transfer mechanism is entirely native to Bitcoin — no special protocols, sidechains, or additional consensus rules are required. Any Bitcoin wallet can technically transfer an inscribed satoshi, though using the ord client ensures that the inscription is preserved during the transfer (i.e., the inscribed satoshi is not accidentally split or combined with other satoshis).

Step 4: Verification and Indexing. To verify an inscription, you need to trace the ordinal number of its satoshi back through the blockchain to the original inscription transaction. The ord indexer maintains a local database that maps ordinal numbers to their current UTXO locations and tracks all inscription metadata. When you query the indexer for a specific inscription, it returns the content type, data payload, current owner (as the Bitcoin address holding the UTXO), and the complete history of transfers.

Troubleshooting

The most common issue encountered when working with Ordinals is accidentally spending an inscribed satoshi as a transaction fee. Because Bitcoin wallets typically select UTXOs without regard for their ordinal numbers, a standard wallet transaction might consume an inscribed satoshi as an input and then allocate it to the miner fee rather than a specific output. Using the ord wallet, which is aware of ordinal numbers, prevents this by ensuring that inscribed satoshis are always sent to a designated output.

Another frequent issue is excessive transaction fees during periods of high inscription activity. In February 2023, the popularity of Ordinals drove Bitcoin transaction fees higher as inscription transactions competed for block space. A single inscription transaction with a large image payload could consume significant block space, leading to higher fees. Optimizing image sizes and batching inscriptions can help manage costs.

Indexing performance can also be a bottleneck. The ord indexer must process every Bitcoin transaction to track ordinal numbers, which requires significant computational resources and storage. As of February 2023 with 130,000+ inscriptions and 800,000+ blocks, the full index required several hundred gigabytes of storage and could take days to build from scratch.

Mastering the Skill

Bitcoin Ordinals represent a paradigm shift in how we think about the Bitcoin blockchain’s capabilities. By leveraging existing consensus features — particularly Taproot and the witness data field — the protocol demonstrates that Bitcoin can support complex data storage and NFT functionality without any protocol-level changes. As the ecosystem matures, expect to see more sophisticated inscription formats, improved indexing tools, and specialized wallets designed for managing ordinal-based digital artifacts. The 130,000 inscriptions milestone reached in February 2023 was just the beginning — the true potential of Bitcoin-native digital artifacts is still being explored.

Disclaimer: This article is for educational purposes only and does not constitute financial advice. Always conduct your own research before interacting with cryptocurrency protocols.

🌱 FOR BUSINESSES BitcoinsNews.com
Reach 100K+ Crypto Readers
Sponsored content, press releases, banner ads, and newsletter placements. Put your brand in front of Bitcoin's most engaged audience.

12 thoughts on “How Bitcoin Ordinals Work: A Technical Deep Dive Into On-Chain NFT Inscriptions”

  1. 130k inscriptions and the tech is barely a month old. the taproot angle is clever – no consensus changes needed. this is how you build on bitcoin without begging miners for a fork

    1. taproot enabling this is ironic given it was marketed as a privacy upgrade. now the blockchain is full of jpeg data lol

      1. the irony of taproot enabling NFTs when it was sold as a privacy upgrade is peak bitcoin governance. unintended consequences everywhere

        1. taproot was marketed as privacy and the first major use case was putting JPEGs on chain. bitcoin governance in a nutshell

          1. the UTXO model is what makes ordinals work so cleanly. each inscription is locked to a specific sat, no smart contract overhead needed. elegant design honestly

    2. 130k inscriptions in a month with zero consensus changes. say what you want about JPEGs on BTC but the engineering was elegant

  2. the UTXO model explanation here is really well done. most articles just say ‘nft on btc’ without explaining why ordinal theory makes it possible

      1. bookmarking this too. the UTXO explanation is genuinely one of the clearest ive read. most coverage just handwaves the technicals

        1. taproot_enjoyer

          agreed. most ordinal coverage is either hype or FUD with zero technical substance. this is the rare piece that actually explains the mechanics

  3. inscribe_lord

    130k inscriptions in less than two months from launch. people who said bitcoin could not do NFTs were so confident and so wrong

  4. taproot was the unlock nobody saw coming. that single upgrade turned bitcoin from boring store of value into a surprisingly flexible data layer

Leave a Comment

Your email address will not be published. Required fields are marked *

BTC$64,080.00+0.2%ETH$1,745.99+1.1%SOL$73.83+1.1%BNB$592.56+0.8%XRP$1.13-0.8%ADA$0.1611+0.2%DOGE$0.0835+0.6%DOT$0.9622-0.2%AVAX$6.25-0.1%LINK$7.99+0.8%UNI$3.01+0.7%ATOM$1.80+1.1%LTC$44.84+0.1%ARB$0.0851+2.3%NEAR$2.16-4.4%FIL$0.8070+1.2%SUI$0.7106+0.5%BTC$64,080.00+0.2%ETH$1,745.99+1.1%SOL$73.83+1.1%BNB$592.56+0.8%XRP$1.13-0.8%ADA$0.1611+0.2%DOGE$0.0835+0.6%DOT$0.9622-0.2%AVAX$6.25-0.1%LINK$7.99+0.8%UNI$3.01+0.7%ATOM$1.80+1.1%LTC$44.84+0.1%ARB$0.0851+2.3%NEAR$2.16-4.4%FIL$0.8070+1.2%SUI$0.7106+0.5%
Scroll to Top