Let's say I have an Ledger.Constraints.UnbalancedTx with consumed regular UTxOs, script UTxOs and minting scripts, how can I calculate the fees of this transaction in Plutus ? This function would ideally also have the number of needed signatures as input argument.

My idea is to construct an UnbalancedTx that has all the UTxOs needed to cover fees and then balance it with the exact fee figure computed. I want to then export this transaction via the PAB and hand it over to Nami Wallet for signature.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.