Author

Topic: Bitcoin testnet fee is higher than sent amount (Read 187 times)

legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
February 06, 2022, 11:43:16 AM
#15
Most likely: you (or your wallet) choose that fee. Just like in Bitcoin, there's no upper limit in the fee you can pay, and considering you're sending a small amount, the required fee can be higher if the network is congested.

I have just made an Electrum transaction from testnet and the fee given to me was just 1 sat/byte. It has been like that for the past few weeks as well. So that particular wallet doesn't have this problem.
legendary
Activity: 2268
Merit: 18771
That's why I'm coding, it's easier to learn when I actually work on it and building it
Fair enough. Just make sure you stick with testnet until you are absolutely sure you know what you are doing then. Don't want to end up like the guy who made this transaction and spent 291 BTC in fees to move 0.0001 BTC: https://mempool.space/tx/cc455ae816e6cdafdb58d54e35d4f46d860047458eacf1c7405dc634631c570d

You can use a tool such as this one - https://live.blockcypher.com/btc-testnet/decodetx/ - to decode your raw transaction and check it is sending the coins where you want it to before you broadcast it.
member
Activity: 276
Merit: 23
This is very very helpful. I did not know blockchain works like that. It's not like I have an address A with 1 BTC and I want to send 0.5BTC to address B, so after that address A will be left with 0.5BTC, what actually happens is that address A is left with 0BTC and 0.5BTC goes to fee
I would recommend having a read of this page: https://learnmeabitcoin.com/beginners/outputs. It very clearly breaks down the concepts I described above, that you can only spend an entire output (or multiple outputs), if you don't want to spend the full value to the other party then you need to specify to send some back to yourself as change, and whatever is left over that you haven't specified a destination for gets used as the fee.

I would also suggest, though, that since you don't have a firm grasp yet on how outputs and transactions work, that you should use a client such as Electrum which will do all this for you in the background, rather than trying to build a transaction manually and ending up losing large amounts of coins.

That's why I'm coding, it's easier to learn when I actually work on it and building it
legendary
Activity: 2268
Merit: 18771
This is very very helpful. I did not know blockchain works like that. It's not like I have an address A with 1 BTC and I want to send 0.5BTC to address B, so after that address A will be left with 0.5BTC, what actually happens is that address A is left with 0BTC and 0.5BTC goes to fee
I would recommend having a read of this page: https://learnmeabitcoin.com/beginners/outputs. It very clearly breaks down the concepts I described above, that you can only spend an entire output (or multiple outputs), if you don't want to spend the full value to the other party then you need to specify to send some back to yourself as change, and whatever is left over that you haven't specified a destination for gets used as the fee.

I would also suggest, though, that since you don't have a firm grasp yet on how outputs and transactions work, that you should use a client such as Electrum which will do all this for you in the background, rather than trying to build a transaction manually and ending up losing large amounts of coins.
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
-snip- I did not know blockchain works like that. It's not like I have an address A with 1 BTC and I want to send 0.5BTC to address B, so after that address A will be left with 0.5BTC, what actually happens is that address A is left with 0BTC and 0.5BTC goes to fee
A well-written single-address client will do that (send the change to the same address), but most wallets will use a "change address" for the remaining 0.5BTC.

I guess that API works like coinb.in which requires you to manually add a 'change address', or it'll use the remaining funds as fee.
member
Activity: 276
Merit: 23
Isn't fee the difference between the sum of inputs and sum of outputs?
Correct. Whatever amount of bitcoin you don't specify an output for will be consumed as a fee.

In the first transaction you linked, your input was 8000 sats and you only specified a single output of 2000 sats, so the remaining 6000 sats was used as a fee. If you did not want to spend all that on a fee, then you should have specified an additional output to a change address of say 5500 sats, leaving 500 sats unaccounted for which would have been taken as the fee.

Remember that if you try to send 2000 sats, bitcoin cannot "skim" 2000 sats from an available input. It must spend the entire input, and so you must specify a destination for all the coins in that input you do not wish to be spent as a fee.

This is very very helpful. I did not know blockchain works like that. It's not like I have an address A with 1 BTC and I want to send 0.5BTC to address B, so after that address A will be left with 0.5BTC, what actually happens is that address A is left with 0BTC and 0.5BTC goes to fee
legendary
Activity: 2212
Merit: 7064
One is Tatum.io wallet builder, the other is some app on Google Play for testnet
I never heard about Tatum wallet but from what I see this is not free service or it can be free but with some limitations, and one of them is that you can't adjust fees.
You would need to purchase Enterprise package to get this option enabled (that is more than 49$ per month you need to pay for Basic package).
You can use Electrum wallet with testnet with manual fees, other wallets with this option are Coinomi and Trezor hardware wallet.
If you want to check fees for Bitcoin testnet before sending transaction check out mempool.space website:
https://mempool.space/testnet
legendary
Activity: 2268
Merit: 18771
Isn't fee the difference between the sum of inputs and sum of outputs?
Correct. Whatever amount of bitcoin you don't specify an output for will be consumed as a fee.

In the first transaction you linked, your input was 8000 sats and you only specified a single output of 2000 sats, so the remaining 6000 sats was used as a fee. If you did not want to spend all that on a fee, then you should have specified an additional output to a change address of say 5500 sats, leaving 500 sats unaccounted for which would have been taken as the fee.

Remember that if you try to send 2000 sats, bitcoin cannot "skim" 2000 sats from an available input. It must spend the entire input, and so you must specify a destination for all the coins in that input you do not wish to be spent as a fee.
member
Activity: 276
Merit: 23
Most likely: you (or your wallet) choose that fee. Just like in Bitcoin, there's no upper limit in the fee you can pay, and considering you're sending a small amount, the required fee can be higher if the network is congested.
I was thinking it could be because of the transaction weight before but by tracking the txid, you are very right,  adamcro definitely customized the fee.

Or maybe he is using a non-reputable testnet wallet, but I doubt that because the fee using testnet is very low.

I wish I customized the fee. I guess Tatum.io customized, because I'm using their API



Isn't fee the difference between the sum of inputs and sum of outputs?
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
Most likely: you (or your wallet) choose that fee. Just like in Bitcoin, there's no upper limit in the fee you can pay, and considering you're sending a small amount, the required fee can be higher if the network is congested.
I was thinking it could be because of the transaction weight before but by tracking the txid, you are very right,  adamcro definitely customized the fee.

Or maybe he is using a non-reputable testnet wallet, but I doubt that because the fee using testnet is very low.



Using testnet means you are not using real bitcoin, real (mainnet) bitcoin addresses start from only bc1, 3 or 1.
member
Activity: 276
Merit: 23
I created this transaction with different wallet and fee is different
Which wallets are you using? See if they allow to customize the fee.

One is Tatum.io wallet builder, the other is some app on Google Play for testnet
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
I created this transaction with different wallet and fee is different
Which wallets are you using? See if they allow to customize the fee.
member
Activity: 276
Merit: 23
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Most likely: you (or your wallet) choose that fee. Just like in Bitcoin, there's no upper limit in the fee you can pay, and considering you're sending a small amount, the required fee can be higher if the network is congested.
member
Activity: 276
Merit: 23

I was wondering why is fee higher than sent amount https://www.blockchain.com/btc-testnet/tx/079b8071417b0f1ae6a859fdbba11dfa0df99c96101b80dbff054ec687beebac

I sent 0.00002 and fee was 0.00006, why is that?
Jump to: