Open
Description
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
- 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
Metadata
Metadata
Assignees
Labels
No labels
Activity
fix(issue): check issue for build-estimate failure with no txouts
github-actions commentedon Jun 26, 2025
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.
github-actions commentedon Jul 27, 2025
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.
github-actions commentedon Aug 28, 2025
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.
github-actions commentedon Sep 28, 2025
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.
github-actions commentedon Oct 30, 2025
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.
github-actions commentedon Jan 30, 2026
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.
github-actions commentedon May 5, 2026
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.
Bump cardano-api to 11.1.0.0
Bump cardano-api to 11.1.0.0
github-actions commentedon Aug 4, 2026
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.
Bump cardano-api to 11.1.0.0