Feb 23, 2021
fee is the difference between the total value of all UTXOs that are placed in the transaction and the total value of all outputs of the transaction, for example if you put a UTXO of value 1 BTC to your transaction and send the amount of 0.99 BTC to another address, 0.01 BTC is considered as fee.