<p>I wrote <a href="https://github.com/mcdallas/cryptotools" rel="nofollow noreferrer">this</a> python library since pybitcointools is no longer supported. You can check testnet balances like this (it pulls data from blockchain.info)</p>

<pre><code>import os
os.environ['CRYPTOTOOLS_NETWORK'] = 'test'

from btctools import Address

address = Address('n2NGrooSecJaiD6ssp4YqFoj9eZ7GrCJ66')

&gt;&gt;&gt; address.balance()
0.55
</code></pre>

CC BY-SA 4.0
2018-06-19T07:33:47.300Z
i rephrased my question here: https://bitcoin.stackexchange.com/questions/76398/how-to-recover-wallet-by-importing-private-key-on-testnet any chance you could answer me there?
Endogen
CC BY-SA 4.0
2018-06-18T23:07:56.113Z
2018-06-18T23:07:56.113Z
Mike D
<p>I have a <a href="https://github.com/primal100/pybitcointools" rel="nofollow noreferrer">python library</a> to create wallets and play around with private key generation and stuff like that.</p>

<p>But i can't find any service / wallet - preferably online - where i could import my generated testnet-private-key and check the balance...</p>

<p>I can get coins thru <a href="https://testnet.manu.backend.hamburg/faucet" rel="nofollow noreferrer">Testnet Faucet</a> and see the balance of an address on testnet via <a href="https://live.blockcypher.com/btc-testnet/" rel="nofollow noreferrer">Blockcypher</a> but where can i test importing private keys on the testnet?</p>

<p>EDIT: I don't really want to download the whole blockchain so some online service would really be great!</p>

CC BY-SA 4.0
2018-06-18T23:04:04.003Z
You shouldn't be importing private keys into any service to check balances. You should calculate the address locally, and then query explorer APIs for the balance.
Raghav Sood
CC BY-SA 4.0
2018-06-19T07:33:14.690Z
i rephrased my question here: https://bitcoin.stackexchange.com/questions/76398/how-to-recover-wallet-by-importing-private-key-on-testnet any chance you could answer me there?
Endogen
<testnet><private-key-import>
How to import private key on testnet and verify balance of wallet?
Endogen
# How to import private key on testnet and verify balance of wallet?

(Asked by: username_0 on 2018-06-18)

I have a [python library](https://github.com/primal100/pybitcointools) to create wallets and play around with private key generation and stuff like that.

But i can't find any service / wallet - preferably online - where i could import my generated testnet-private-key and check the balance...

I can get coins thru [Testnet Faucet](https://testnet.manu.backend.hamburg/faucet) and see the balance of an address on testnet via [Blockcypher](https://live.blockcypher.com/btc-testnet/) but where can i test importing private keys on the testnet?

EDIT: I don't really want to download the whole blockchain so some online service would really be great!

**Tags:** testnet, private-key-import

> **Comments:**
> **username_1**: You shouldn't be importing private keys into any service to check balances. You should calculate the address locally, and then query explorer APIs for the balance.  
> **username_0**: i rephrased my question here: https://bitcoin.stackexchange.com/questions/76398/how-to-recover-wallet-by-importing-private-key-on-testnet any chance you could answer me there?  

---

## 1 answers

### Answer by username_2 on 2018-06-18. Score: 1 | Accepted answer

I wrote this python library since pybitcointools is no longer supported. You can check testnet balances like this (it pulls data from blockchain.info)
import os
os.environ['CRYPTOTOOLS_NETWORK'] = 'test'

from btctools import Address

address = Address('n2NGrooSecJaiD6ssp4YqFoj9eZ7GrCJ66')

>>> address.balance()
0.55

> **Comments:**
> **username_0**: i rephrased my question here: https://bitcoin.stackexchange.com/questions/76398/how-to-recover-wallet-by-importing-private-key-on-testnet any chance you could answer me there?  

---

