<p>Testnet uses a different address format than mainnet, you can not view or verifying anything about the mainnet on testnet, they are separate. </p>

<p>You can test your method from the origin by using testnet funds instead. </p>

<p>Alternatively, you can test on mainnet with a small amount of funds to confirm your recovery method is working the same as it did on testnet (which it should).</p>

CC BY-SA 4.0
2018-06-19T18:47:43.767Z
Why do you think that i want to view / verify something from the mainnet on testnet? I created a wallet on testnet out of some Python code and want to recover that wallet on testnet from the private key i got while creating the wallet. If that works, i will use mainnet.
I fail to see why i should test my implementation on mainnet with a small amount of BTC if there is explicitly testnet for such things
Endogen
CC BY-SA 4.0
2018-06-19T21:49:16.543Z
Please see additional comment in the question.
Willtech
CC BY-SA 4.0
2018-06-20T04:17:07.797Z
Endogen, you will need to provide more details on what you mean by recover a wallet with a private key. A private key is only a private key to a single bitcoin address, not a wallet. A wallet holds many private keys. Are you referring to your recovery words or an extended private key? Additionally I'm not sure why you are set on using an online service for your implementation, private keys should never be shared. You can recreate most wallet features through available libraries on your own, there's no need to use an online service for wallet recovery.
m1xolyd1an
CC BY-SA 4.0
2018-06-20T18:58:02.857Z
Thanks for the comment. 1) I would want to use the private key for an address 2) Online Service: Because for testnet, i find it convinient. Just want to verify that the key can recover the address, i don't want to download the chain. I want to verify just this one time that it works, never again. No need for privacy here 3) Recreating with libs: ok but how to be sure that i recovered the address correctly? Thus i wanted to hopefully see the correct balance for that address - doesn't work without downloading the chain?
Endogen
CC BY-SA 4.0
2018-06-19T13:30:25.520Z
2018-06-19T13:30:25.520Z
m1xolyd1an
<p>You can code some function as fund transfer, from which library you're using in python you have to sign the transaction through private key, create two testnet addresses and transfer some funds by using a faucet like <a href="https://testnet-faucet.mempool.co/" rel="nofollow noreferrer">testnet-faucet</a></p>
<p>to one of them, then code a function for transferring funds to another address, this method should return a raw transaction hex, if you able to generate transaction hex then you can confirm that your private key recovery functionality works</p>

CC BY-SA 4.0
2021-04-02T18:10:03.410Z
2021-04-02T18:10:03.410Z
farzin fattahi
<p>I want to test the functionality of wallet recovery via private key import on the testnet. Preferably thru an online service.</p>

<p>I only want to test the functionality so that I can verify that it's basically working since I'm working on some Python code that I want to use on the mainnet later.</p>

<p>So for that, I don't want to download the whole blockchain but instead, want to verify that my private key is generated correctly and I can access the funds that way. But I can't find any possibility to do that on testnet...</p>

<p>EDIT: <strong>I did not use mainnet for anything yet. I'm exclusively used testnet to create the wallet and get some coins and want to verify on testnet the wallet recovery thru private key</strong></p>

<python><private-key-import>
How to recover wallet by importing private key on testnet?
Endogen
# How to recover wallet by importing private key on testnet?

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

I want to test the functionality of wallet recovery via private key import on the testnet. Preferably thru an online service.

I only want to test the functionality so that I can verify that it's basically working since I'm working on some Python code that I want to use on the mainnet later.

So for that, I don't want to download the whole blockchain but instead, want to verify that my private key is generated correctly and I can access the funds that way. But I can't find any possibility to do that on testnet...

EDIT: **I did not use mainnet for anything yet. I'm exclusively used testnet to create the wallet and get some coins and want to verify on testnet the wallet recovery thru private key**

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


---

## 2 answers

### Answer by username_1 on 2018-06-19. Score: 0

Testnet uses a different address format than mainnet, you can not view or verifying anything about the mainnet on testnet, they are separate.

You can test your method from the origin by using testnet funds instead.

Alternatively, you can test on mainnet with a small amount of funds to confirm your recovery method is working the same as it did on testnet (which it should).

> **Comments:**
> **username_0**: Why do you think that i want to view / verify something from the mainnet on testnet? I created a wallet on testnet out of some Python code and want to recover that wallet on testnet from the private key i got while creating the wallet. If that works, i will use mainnet. I fail to see why i should test my implementation on mainnet with a small amount of BTC if there is explicitly testnet for such things  
> **username_2**: Please see additional comment in the question.  
> **username_1**: username_0, you will need to provide more details on what you mean by recover a wallet with a private key. A private key is only a private key to a single bitcoin address, not a wallet. A wallet holds many private keys. Are you referring to your recovery words or an extended private key? Additionally I'm not sure why you are set on using an online service for your implementation, private keys should never be shared. You can recreate most wallet features through available libraries on your own, there's no need to use an online service for wallet recovery.  
> **username_0**: Thanks for the comment. 1) I would want to use the private key for an address 2) Online Service: Because for testnet, i find it convinient. Just want to verify that the key can recover the address, i don't want to download the chain. I want to verify just this one time that it works, never again. No need for privacy here 3) Recreating with libs: ok but how to be sure that i recovered the address correctly? Thus i wanted to hopefully see the correct balance for that address - doesn't work without downloading the chain?  

---

### Answer by username_3 on 2021-04-02. Score: 0

You can code some function as fund transfer, from which library you're using in python you have to sign the transaction through private key, create two testnet addresses and transfer some funds by using a faucet like [testnet-faucet](https://testnet-faucet.mempool.co/)

to one of them, then code a function for transferring funds to another address, this method should return a raw transaction hex, if you able to generate transaction hex then you can confirm that your private key recovery functionality works


---

