1
I am trying to get real fee per trasnaction.
So I have an account whit balance 0.06940000 and have a second account with balance 0.00000000.
To get current fee I have run the command
bitcoin-cli getmempoolinfo
and got the mempoolminfee = 0.00001000.
I thought that when I send the 0.06939000 in my account rest balance will 0.00000000. but I got 0.00004860. Actually the fee was 0.0000514.
general question is WhY ?
Please tell me to understand how is fees working!
Is there a way to get fee before sending transaction ? – Yur Gasparyan – 2018-10-01T13:03:43.580
No, but if all you are looking to do is empty a wallet, you can pass an argument to
sendtoaddresswhich will take the fee out of the sent amount rather than the wallet you're sending from--you will receive less bitcoin than you "sent", but you will be able to empty the wallet.See argument #5 for
sendtoaddress: https://bitcoin.org/en/developer-reference#sendtoaddressthanks! but what when i want to send bitcoins from specific account to address? – Yur Gasparyan – 2018-10-01T13:16:18.770
Again, if you want to remove a specific amount from the sending address, you set that 5th argument to true. If you want a specific amount to be received by the recipient address, you leave it set to false. – Motoma – 2018-10-01T13:31:42.377