Studying this once more after @amaclin’s reply, I understand that you simply may need certainly been asking in regards to the enter quantities quite than the output quantities. In that case, you might be right. The enter quantities are usually not explicitly specified within the transaction as they’re specified by the prior transaction that created the UTXOs. A spending transaction solely must specify which UTXOs it precisely spends, however the details about the output script and quantity are already current in every node’s UTXO set.
In the event you had been asking about output quantities, see my authentic reply under:
It will depend on the kind of transaction you might be constructing.
In case you are sweeping a pockets, consolidating right into a single output or depositing a number of complete UTXOs to a service, you most likely don’t care about specifying the quantity of the output. Moderately, it’s implicitly outlined by the inputs and charges.
Nevertheless, in my expertise, most transactions are created to make one or a number of funds. Whenever you make a fee transaction, you do wish to ship a certain quantity to every receiver of the fee. Solely the potential change output quantity would then be decided by what stays from the inputs after deducting the fee quantity and the charges.