How to import private key on testnet and verify balance of wallet?

0

I have a python library 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 and see the balance of an address on testnet via Blockcypher 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!

Endogen

Posted 2018-06-18T22:28:50.047

Reputation: 113

2You 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 2018-06-18T23:04:04.003

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 2018-06-19T07:33:14.690

Answers

1

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

Mike D

Posted 2018-06-18T22:28:50.047

Reputation: 1 571

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 2018-06-19T07:33:47.300