Skip to content

cardano-balance-tx

Standalone Cardano transaction balancing library.

What it does

cardano-balance-tx takes a partial Cardano transaction — one with user-specified outputs but incomplete inputs and fees — and produces a fully balanced, ready-to-sign transaction.

The library handles coin selection, fee estimation, change construction, surplus distribution, token bundle size validation, Plutus redeemer assignment, and transaction size estimation across Babbage and Conway eras.

flowchart LR
    A["Partial Tx\n+ UTxO\n+ Protocol Params"] --> B["balanceTx"]
    B --> C["Balanced Tx\n(ready to sign)"]

Getting started

See the Getting Started guide for build instructions and Nix setup.

Documentation

License

Apache-2.0 — Copyright 2018-2022 IOHK, 2023-2026 Cardano Foundation.