<p>This is expected.</p>

<p>You don't appear to be accounting for fees.</p>

<p>If you account for them, you get:</p>

<pre><code>+0.0005 386d83da01218ca74cbe72b19a6814293b98357921042a9b03ab39706fef8736
+0.0001 8e95c68f524e557a9b42d11207effae89c4e61913c5c4758adb142a6cdd03848
-0.00001 with -0.00034408 as Fees 91224995f2c240159141a499b91db8d26f0a6425fb12f5277d2f735576596aa7
-0.00001 with -0.00020792 as Fees  92287c75721563643f8dbf9ee5fff59abe1c9b6b36a638daa05c35d5fea981d0
</code></pre>

<p>This gives you a final balance of <code>+0.0005 + 0.0001 -0.00001 -0.00034408 -0.00001 -0.00020792</code>, which is <code>0.000028</code></p>

CC BY-SA 4.0
2019-06-21T16:47:03.457Z
Thanks for your reply! I was looking for tx fees in the pages I included but it slipped past me, so I assumed testnet transactions didn’t have fees at all.
Rodrigo Veiga
CC BY-SA 4.0
2019-06-21T03:30:22.840Z
2019-06-21T03:30:22.840Z
Raghav Sood
<p>Today I took some time to mess around with the <a href="https://github.com/ofek/bit" rel="nofollow noreferrer">bit</a> Python library, which I find pretty easy to use. I have been wanting to do some Bitcoin programming for a while, so I decided to create a simple web wallet to test creating and broadcasting transactions. I'm obviously using testnet for this.</p>

<p>I initially used a testnet faucet to send two transactions to a main <a href="https://live.blockcypher.com/btc-testnet/address/mxdnjqD875oeVGzc88z3vmpL6MmimdWAZr/" rel="nofollow noreferrer">address</a>, 0.0005 and 0.0001 tBTC to get started. I used my code to check for this address' balance and got 0.0006, cool. I then proceeded to used my newly developed web wallet to send two transactions to another <a href="https://live.blockcypher.com/btc-testnet/tx/91224995f2c240159141a499b91db8d26f0a6425fb12f5277d2f735576596aa7/" rel="nofollow noreferrer">address</a>, both with a value of 0.00001 tBTC. I immediately noticed the balance from my main address was off, showing me 0.000028 tBTC which to me makes no sense, it should have been something close to 0.00058. I used blockcypher to check on those transactions (which are unconfirmed, but I believe this is irrelevant) to make sure my code was ok. Sure enough, 0.00001 tBTC was sent twice to the correct address, but the change sent back to the sender address is way off. What exactly happened here?</p>

<p>I include the transactions <a href="https://live.blockcypher.com/btc-testnet/tx/91224995f2c240159141a499b91db8d26f0a6425fb12f5277d2f735576596aa7/" rel="nofollow noreferrer">here</a> and <a href="https://live.blockcypher.com/btc-testnet/tx/92287c75721563643f8dbf9ee5fff59abe1c9b6b36a638daa05c35d5fea981d0/" rel="nofollow noreferrer">here</a>.</p>

<p>Thanks in advance!</p>

<bitcoin-core><testnet><python>
These testnet outputs are not making sense to me
Rodrigo Veiga
# These testnet outputs are not making sense to me

(Asked by: username_0 on 2019-06-21)

Today I took some time to mess around with the [bit](https://github.com/ofek/bit) Python library, which I find pretty easy to use. I have been wanting to do some Bitcoin programming for a while, so I decided to create a simple web wallet to test creating and broadcasting transactions. I'm obviously using testnet for this.

I initially used a testnet faucet to send two transactions to a main [address](https://live.blockcypher.com/btc-testnet/address/mxdnjqD875oeVGzc88z3vmpL6MmimdWAZr/), 0.0005 and 0.0001 tBTC to get started. I used my code to check for this address' balance and got 0.0006, cool. I then proceeded to used my newly developed web wallet to send two transactions to another [address](https://live.blockcypher.com/btc-testnet/tx/91224995f2c240159141a499b91db8d26f0a6425fb12f5277d2f735576596aa7/), both with a value of 0.00001 tBTC. I immediately noticed the balance from my main address was off, showing me 0.000028 tBTC which to me makes no sense, it should have been something close to 0.00058. I used blockcypher to check on those transactions (which are unconfirmed, but I believe this is irrelevant) to make sure my code was ok. Sure enough, 0.00001 tBTC was sent twice to the correct address, but the change sent back to the sender address is way off. What exactly happened here?

I include the transactions [here](https://live.blockcypher.com/btc-testnet/tx/91224995f2c240159141a499b91db8d26f0a6425fb12f5277d2f735576596aa7/) and [here](https://live.blockcypher.com/btc-testnet/tx/92287c75721563643f8dbf9ee5fff59abe1c9b6b36a638daa05c35d5fea981d0/).

Thanks in advance!

**Tags:** bitcoin-core, testnet, python


---

## 1 answers

### Answer by username_1 on 2019-06-21. Score: 2 | Accepted answer

This is expected.

You don't appear to be accounting for fees.

If you account for them, you get:

```
+0.0005 386d83da01218ca74cbe72b19a6814293b98357921042a9b03ab39706fef8736
+0.0001 8e95c68f524e557a9b42d11207effae89c4e61913c5c4758adb142a6cdd03848
-0.00001 with -0.00034408 as Fees 91224995f2c240159141a499b91db8d26f0a6425fb12f5277d2f735576596aa7
-0.00001 with -0.00020792 as Fees  92287c75721563643f8dbf9ee5fff59abe1c9b6b36a638daa05c35d5fea981d0

```

This gives you a final balance of `+0.0005 + 0.0001 -0.00001 -0.00034408 -0.00001 -0.00020792`, which is `0.000028`

> **Comments:**
> **username_0**: Thanks for your reply! I was looking for tx fees in the pages I included but it slipped past me, so I assumed testnet transactions didn’t have fees at all.  

---

