nexa

Nexa Takes a Giant Leap with the Power of Read-Only Transaction Inputs

2024년 9월 25일

We’ve introduced read-only transaction inputs — an upgrade that is improving how smart contracts and transactions operate. This feature is an integral step towards the highly anticipated hard fork and offers developers exciting new capabilities for building efficient and scalable decentralized applications (dApps). So, what exactly are read-only transaction inputs, and why are they a game-changer?

Efficiency with Read-Only UTXOs

This upgrade introduces the ability to include inputs in a transaction that do not spend the underlying UTXO (Unspent Transaction Output). In simpler terms, this allows transactions to "read" data from the blockchain without consuming or modifying that data. Previously, in UTXO-based blockchains like Bitcoin, using an input would mean that the input is "destroyed" and cannot be reused. This is problematic for various blockchain architectures that require multiple users or transactions to access the same data.

Key Advantages:

  • Parallel Access: Multiple transactions can now read the same UTXO simultaneously without waiting for previous transactions to clear. This eliminates the need for a “queue,” where transactions would otherwise have to line up to access the same state data.
  • Efficiency in Smart Contracts: Developers can design more efficient contracts that allow for data to be accessed without unnecessary duplication or destruction of state.
  • Proof of Ownership: Users can prove ownership of assets (such as tokens or Nexa) without consuming the UTXO. By importing a UTXO as read-only and signing it, they can provide proof of ownership efficiently without needing to regenerate the state each time.

Single Maintainer, Many Users

One of the major applications of read-only UTXOs addresses the "single maintainer, many users" design pattern, which is common in decentralized apps. In the past, only one user could interact with a piece of state at a time because using that state in a transaction would destroy it. Other users would have to wait, essentially forming a transaction chain where each user modifies and recreates the state. This caused scalability bottlenecks in scenarios where multiple users needed to interact with the same piece of data. Nexa’s read-only inputs solve this by allowing multiple users to access the same data simultaneously, without destroying or altering the state. For example, imagine a blockchain application where one entity maintains a central piece of state, such as a shared ledger or contract. Previously, every user accessing that data would have to modify it, leading to a bottleneck where only one transaction could be processed at a time. With read-only inputs, however, multiple transactions can access the same state without interference, paving the way for much more scalable applications.

Enhancing Smart Contracts and the Role of Group Authorities

A particularly exciting use case for read-only UTXOs is in the handling of group authorities with the BATON flag set. Group authorities define who has control over certain token operations, such as minting new tokens or creating child authorities. Previously, if you wanted to perform an operation like minting new tokens, the contract would have to consume the mint authority and recreate it in a new UTXO. With read-only inputs, however, developers can now import the authority as read-only, perform the desired operation (such as minting tokens), and leave the authority intact. This simplifies contract design and reduces the risk of accidentally "losing" authority, making operations more efficient and easier to manage. In decentralized applications like NiftyArt, which deals with minting NFTs, this improvement can significantly reduce complexity. NiftyArt previously had to manage mint authorities carefully to ensure they weren’t left in limbo if a user didn’t accept an NFT minting offer. With read-only inputs, the authority can be offered repeatedly without consuming it, vastly improving user experience and application flow.

Security and Validation: What’s Changed?

Even with these advanced features, the read-only inputs maintain a high level of security and are subject to strict validation rules. Some of the key validation rules include:

  • A transaction cannot consist solely of read-only inputs. At least one traditional UTXO input must be included to ensure the transaction is valid.
  • Read-only inputs cannot have a value attached to them (nValue must be set to 0), and they are excluded from the total input value during transaction validation.
  • They are excluded from undo data since they don’t create any changes in the UTXO set. Moreover, read-only inputs play a unique role in block validation, using a ROTOTI (Read-Only, Then Outputs, Then Inputs) approach. This sequencing ensures that read-only inputs are conceptually evaluated before outputs and inputs, allowing for safe parallel reading of the same UTXO across multiple transactions without risking a state conflict.

Paving the Way for a Scalable Future

The addition of read-only transaction inputs is a major step forward for the Nexa blockchain. It boosts scalability, efficiency, and simplifies development, especially for applications where multiple transactions need to access the same data. As Nexa moves toward its upcoming hard fork, this feature empowers developers to create scalable decentralized apps, pushing the limits of traditional blockchain technology for a more secure and efficient future.

계속 읽기

Article cover
November 5, 2026newsrostrum

New Release: Rostrum 15.0.0

The team is delighted to introduce the new Rostrum 15.0.0 release. Rostrum is an efficient implementation of Electrum Server for Bitcoin Cash and Nexa with token support. This release improves indexin...

Article cover
November 1, 2026newsnewsletteroctober-2026

Nexa Monthly Newsletter October 2026: Etched in Silicon

October brought many ecosystem improvements and new features, and more developments are still underway across all projects, from the core blockchain infrastructure to ecosystem and development tools....

Article cover
October 31, 2026decentralizedinvestorsusers

Investors and Users: Two Ways a Blockchain Begins

The decentralized nature of blockchain makes it an open and permissionless global network. However, there are several types of projects in the field, and each one embodies its own rules, community and...

Article cover
October 29, 2026ai-developmentai-skills

Nexa AI Skills: Now Includes Wally Wallet and Local Regtest

AI-assisted development, or “vibe coding”, is getting more popular, giving non-technical people the ability to experiment and realize their first application idea. It also boosts developers’ performan...

Article cover
October 27, 2026newslibnexa-ts

New Release: Libnexa-TS 3.1.0 With Read-Only Inputs

The Nexa ecosystem infrastructure is constantly being developed and improved, and this time it is our pleasure to present Libnexa-TS 3.1.0, a new release with read-only inputs. Libnexa-TS is an open-s...

Article cover
October 23, 2026highlightsoctober-2026

Nexa October Highlights: Progress That Compounds

This month, the Nexa ecosystem stayed active and it made progress on many important projects, including Tailstorm improvements, hardware acceleration, the BRAM-ring bounty, the Nexa Programming Langua...

Article cover
October 21, 2026newsvotingvotepeer

VotePeer: Blockchain Voting on Nexa

It’s exciting to introduce you to VotePeer – an open and fair voting system on the Nexa blockchain. VotePeer hosts elections on-chain in a trustless environment where every vote requires a digital sig...

Article cover
October 19, 2026full-node-qtblitzfpgahardwareacceleration

Hardware Acceleration: Nexa Node on an FPGA

In the last article we met Blitz, the card that takes signature checking off the CPU. We closed with a bigger question: what happens when you put the whole node inside an FPGA? We don’t like running a...

Article cover
October 16, 2026newsdevelopmentseptember-2026

Monthly Development Updates: September 2026

Over the past month and into this month, development has moved forward across the Nexa ecosystem. Most activity and effort focused on our Rostrum indexer, which we’re updating and improving. We put a...