If I have 0.27897894 BTC on my Electrum wallet, and I want to send 0.07897894 BTC to my friend, how to make my remaining balance exactly to be 0.2 BTC on my wallet?,
because I don't know exactly how to set fee. I want set fee including to what I want to send (0.07897894).
I just want to hold 0.2 BTC exactly
There is no method to send your bitcoin includes transaction fee, and have an exact number of bitcoin left in your wallet. You can do it like this, as an alternative solution.
Assume now you have 0.27897894
BTC, and you want to have 0.2
BTC left, you can do it by sending 0.2
BTC to another address in your wallet. This transaction will cost you transaction fee, it's on chain.
A second transaction will be made with left amount like 0.27897894
BTC - 0.2
BTC - on-chain transaction fee to your friend. I am sure the amount received by your friend will be smaller than 0.07897894
BTC because you will have to pay on-chain transaction fees two times.