Open sourabhxyz opened 2 months ago
cc: @Jimbo4350
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.
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.
Internal/External External
Area Transaction building
Summary
For transactions making use of native scripts, the required number of key witness may be more than what is returned by
estimateTransactionKeyWitnessCount
as it doesn't consider them (native scripts). Fwiw, the key witnesses required by native script are taken fromtransaction_witness_set
(see attached image from Shelley ledger specification) and thus the required signatories mentioned by these scripts need not have any mention intransaction_body
.Wrong estimate by
estimateTransactionKeyWitnessCount
leads to wrong estimate of required transaction fees when building the transaction usingcardano-api
'smakeTransactionBodyAutoBalance
unless one gives appropriate key witness estimate to it.