Skip to content

transaction build-estimate fails to balance tx with no txouts #1199

Open

Description

@mkoura

Description

When building a tx with no txouts using transaction build-estimate, the command doesn't seem to take fee into account, and fails on producing an unbalanced tx.
I suspect that the command doesn't subtract the estimated fee from change amount.

Steps to Reproduce

  1. Run
cardano-cli conway transaction build-estimate  \
  --out-file test_transfer_all_build_estimate_ci0_ldiczg_tx.body  \
  --shelley-key-witnesses 1  \
  --byron-key-witnesses 0  \
  --reference-script-size 0  \
  --total-utxo-value 150000000  \
  --tx-in "cb62fe02892162ada0b928a1a3804e8d22ac7264ce6b2678f662f56cea206ac7#1"  \
  --change-address addr_test1vpflsydzu57ek98a43q3sdzcjnsnmx2ws89wcytmn424tfc3qus2x  \
  --protocol-params-file pparams-isbt.json

and see the error:

Command failed: transaction build-estimate
Error: The transaction does not balance in its use of assets. The net balance of the transaction is negative: -164181 Lovelace. The usual solution is to provide more inputs, or inputs with more assets.

Additional Context

I'm using the latest cardano-cli master (3b9a553)

Files used for building the tx: issue_build_estimate.tar.gz

Activity

  1. added theissue type on May 26, 2025
  2. github-actions commented on Jun 26, 2025

    @github-actions
    Contributor

    This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

  3. added
    Stale
    on Jun 26, 2025
  4. removed
    Stale
    on Jun 26, 2025
  5. github-actions commented on Jul 27, 2025

    @github-actions
    Contributor

    This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

  6. added
    Stale
    on Jul 27, 2025
  7. removed
    Stale
    on Jul 28, 2025
  8. github-actions commented on Aug 28, 2025

    @github-actions
    Contributor

    This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

  9. added
    Stale
    on Aug 28, 2025
  10. removed
    Stale
    on Aug 28, 2025
  11. github-actions commented on Sep 28, 2025

    @github-actions
    Contributor

    This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

  12. added
    Stale
    on Sep 28, 2025
  13. removed
    Stale
    on Sep 29, 2025
  14. github-actions commented on Oct 30, 2025

    @github-actions
    Contributor

    This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

  15. added
    Stale
    on Oct 30, 2025
  16. removed
    Stale
    on Oct 30, 2025
  17. github-actions commented on Jan 30, 2026

    @github-actions
    Contributor

    This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 100 days.

  18. added
    Stale
    on Jan 30, 2026
  19. removed
    Stale
    on Feb 3, 2026
  20. github-actions commented on May 5, 2026

    @github-actions
    Contributor

    This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 100 days.

  21. added
    Stale
    on May 5, 2026
  22. removed
    Stale
    on May 5, 2026
  23. github-actions commented on Aug 4, 2026

    @github-actions
    Contributor

    This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 100 days.

  24. added
    Stale
    on Aug 4, 2026
  25. removed
    Stale
    on Oct 2, 2026
  26. self-assigned this
    on Oct 2, 2026
  27. added a commit that references this issue on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions