VESPR
  • Introduction
    • About
    • Contact Us
  • User Guide
    • 🏅Getting Started
      • Download VESPR
      • Create a Wallet
      • Import an Existing Wallet
      • Connect a Hardware Wallet
        • Ledger
        • Keystone (mobile only supported)
          • Check Keystone Firmware Version
        • Trezor
    • 🏠The Basics
      • Backup Your Recovery Phrase
        • Backup RP: Part I
        • Backup RP: Part II
        • Backup RP: Part III
        • Backup RP: Part IV
      • Staking
        • Registering a New Wallet for Staking
        • Staking with a Registered Wallet
      • Swap
        • Finding open orders
        • Cancelling a swap order
      • Setting Collateral
      • Connecting to DApps
      • Updating VESPR
    • ❓FAQ
      • Buy/Sell Cardano
      • Swap
        • Swap fees explained
        • Swap refunds explained
        • Why is my swap order stuck pending?
        • How to manually cancel swap order on Splash
    • 🛠️Common Issues and Solutions
      • Swap
        • Did I get charged for a swap order that was not fulfilled?
        • Swap order is stuck pending
  • For Developers
    • Wallet Integration
    • UTXO Management
  • Contributors
    • Translations
      • Getting Access
      • Guidelines
Powered by GitBook
On this page
  • What is a UTXO?
  • UTXO Speedrun
  • How VESPR Manages Your Wallet's UTXOs
  1. For Developers

UTXO Management

PreviousWallet IntegrationNextTranslations

Last updated 1 year ago

What is a UTXO?

The Cardano blockchain utilizes the eUTXO, or "Extended Unspent Transaction Output", accounting model. When you receive ADA or any other Cardano native token, it arrives in a specific object or box called a UTXO, or "Unspent Transaction Output". When you spend or send ADA, the network uses these objects (UTXOs) to facilitate the transfer of ADA and/or other native tokens from one place/address to another.

UTXO Inputs & Outputs

  • Each UTXO has an input from where it takes the assets and an output to where it sends them.

  • This output is termed "unspent" because they have yet to be used.

  • Unspent outputs are used as inputs in new transactions.

  • UTXOs can have one or many inputs, and one or many outputs.

UTXO Speedrun

Receiving

Whenever you receive ADA, the output of the transaction points to your address and specifies the amount you've received.

Sending

When you send ADA to someone, the transaction created takes in one or more of these unspent outputs (old UTXOs) from your address as inputs. The transaction then consumes or "spends" the unspent outputs and the new (unspent) outputs point to the recipient's address (and possibly back to your own address if there is "change").

Once an output has been used as an input in a new transaction, it becomes "spent" and cannot be used again in a future transaction.

How VESPR Manages Your Wallet's UTXOs

Cardano's transaction size limits can make UTXO management quite tricky, particularly for larger dApps or complex multi-signature wallets. To fit within these transaction size limits, UTXOs must be carefully selected to not only minimize "dust" or fees but also to curb future "fragmentation" – a situation in which a user's funds are dispersed across a myriad of small UTXOs. Proper UTXO hygiene necessitates a proactive and efficient strategy.

VESPR employs its own advanced coin selection algorithms to intelligently manage your wallet's UTXOs. Our heuristic approach ensures peak performance, efficiency, and speed adaptable to various transaction situations. With each transaction processed via VESPR, our coin selection algorithm systematically reduces dust, actively prevents fragmentation by consolidating UTXOs, and maintains "balanced" UTXO sets for future transactions.

This means that the more you use VESPR, the more performant your wallet becomes.

UTXOs