Hi there,
I am playing around with building different transactions on the testnet to learn.
I have two addresses with ADA and one empty address. I want to send all the Ada from the two addresses to the empty address.
When building the raw transaction (before calculating min fee), I don’t know the output amount of Ada because it is dependent on the min fee. Is it fine to say the output will be the sum of the two wallets to calculate the min fee, and then subtract min fee from output after it is calculated?
When calculating min fee, will the tx-in-count always be the same as witness-count because any address that is input for the transaction should sign the transaction? (or am I thinking about this wrong, because there can be more than one UTxO input from a single address? such that tx-in-count is the number of UTxO inputs and witness-count is the number of different addresses that contribute to the tx inputs?)
When signing the transaction, if you have more than one witness do i have more than one --signing-key-file flag and for each is the signing key of each address that is a witness?
Thank.