<p>Take a look at the private keys from your Bitcoin Core client. They should look like mine (the following are keys from the testnet):</p>
<pre><code>cQHjhLkGQHQZUZFZYHfXjsXkfdNPoAd2X58sa2x95vEWssrvpPLi 
cVXThnV4XgJP7q1v3aVQacTkxHq96BpyoSCGPqMAyyJcVaGn93Zh 
cVCAYjR4E5qvzCa3f6VYZhsZNCgWQUDikfFCg4Fom6fnecRXxKM5 

</code></pre>
<p>Now go to your Electrum and take a look at your keys there (<strong>Wallet</strong>&gt;&gt;<strong>Private keys</strong>&gt;&gt;<strong>Export</strong>, you will find them to the right from your addresses). The should look more or less like mine:</p>
<pre><code>p2wpkh:cNs6rHM6cd7iY3YizmpG2GHxctjKxFtLV9WANCLgtcCRzcQ8AC1b
p2wpkh:cSGaa8sWKSvSty6bR36XZzEQsMr5bNW78XYCaTs3h4xqbsoLGghx
p2wpkh:cTERSrc4euSox7Wtk75vVFwLBpf7oqbpwQPTxNGoEjLxjwL8JrMJ
</code></pre>
<p>They look like of a different type than the ones from your Bitcoin Core wallet.
<a href="https://bitcoin.stackexchange.com/questions/92615/why-is-p2pkh-prepended-at-the-beginning-of-private-key-addresses-in-electrum">A single private key can lead to different addresses</a>, depending on the script it is used in - these include p2pkh, p2wpkh, p2sh-p2wpkh. To realize that it is true create a new wallet in Electrum (File&gt;&gt;New/Restore&gt;&gt;Create..,choose option <em>Import Bitcoin addresses or private keys</em>) paste the unprepended private key from your Bitcoin Core wallet. Electrum should create a new non-HD wallet for you with only one address. This adrress will be a different one from the one from which you derrived your private key in Bitcoin Core client
Electrum prepends the script type to the private key during export and import so that it knows which address to derive and check for outputs on.</p>
<p>Before sweeping prepend the private key from your Bitcoin Core wallet, that you got from the output of <code>dumpprivkey &quot;address&quot;</code>, with <code>p2wpkh:</code>, like so: <code>p2wpkh:cNbxok3SkFuSsbiiTqLj56Hp6bAhr2uJtr8aTkViBB3ghBMzQH3Y</code>. Such prepended key paste into the sweep box and follow the instructions. You can replace the address given to you by Electrum with the one of your choice - it will work as well.</p>
<p>What is convenient in sweeping is that it will work even if you do not have any Bitcoin in your destination wallet. The fee will be taken from the source, in your case the UTXO from the address of your Bitcoin Core client.</p>

CC BY-SA 4.0
2021-07-18T20:52:07.140Z
2021-07-20T09:53:31.437Z
2021-07-20T09:53:31.437Z
John Smith
<p>Your coins are likely in a change address. You could do a <code>dumpwallet</code> in bitcoin core and then sweep all the private keys. But this is going to be slow going in electrum and you're going to have to do it in batches. Instead I suggest extracting the addresses which have unspent outputs in them by using the <code>listunspent</code> command in bitcoin core and then sweeping only those addresses' private keys. You can also do this via the cli and then use standard text processing commands to extract the addresses (jq, grep). To get it via the cli run <code>bitcoind -daemon</code> and then use <code>bitcoin-cli listunspent</code></p>

CC BY-SA 4.0
2021-07-18T16:39:10.047Z
Why would the coins being in the change address matter? Do I have to have a balance in Electrum in order to pay the fee? Or can the key be subtracted from the Bitcoin Core's UTXOs?
John Smith
CC BY-SA 4.0
2021-07-19T18:30:37.107Z
@JerzyBrzóska Change addresses don't show up under receiving addresses in the GUI which is what the OP was using. The fee will come from the bitcoin core UTXOs.
Abdussamad
CC BY-SA 4.0
2021-07-20T09:44:53.267Z
Change addresses may not be given to the user when they do in the GUI:  **Receive>>New Address**. Nevertheless, they are readily available for the user in the **Addresses tab**, below receiving addresses. Nevertheless, if the swiping attempted by @h0dges succeded he would not have received `No inputs found.` from Electrum, and the transaction would have increased their wallet's balance. From my understanding of their question none of the two was the case.
John Smith
CC BY-SA 3.0
2018-03-14T12:20:23.683Z
2018-03-14T12:20:23.683Z
Abdussamad
<p>Adding complementary information :
If the address which holds the amount starts with a &quot;3&quot;, therefore the script to perform the sweep shall be &quot;p2wpkh-p2sh:&quot; followed by the private key.
As long as the script is not correct, you get either &quot;No Input Found&quot; or &quot;Unknown script&quot;.
I've struggled several hours to found out in the Electrum user manuel.</p>

CC BY-SA 4.0
2023-08-01T16:08:35.440Z
2023-08-01T16:08:35.440Z
Patrick Bussi
<p>I'm trying to move my bitcoins from Bitcoin Core to Electrum in order to not have to store the blockchain. My starting position is a fully synced Bitcoin Core and a newly created standard Electrum wallet (without any imports).</p>

<p>I'm using the debug console in Bitcoin Core to execute <code>walletpassphrase</code> to unlock my wallet, and <code>dumpprivkey</code> together with the address obtained from <code>File &gt; Receiving addresses...</code></p>

<p>Once Bitcoin Core spits out a private key I'm following the instructions here <a href="http://docs.electrum.org/en/latest/faq.html#can-i-sweep-private-keys-from-other-bitcoin-clients" rel="nofollow noreferrer">http://docs.electrum.org/en/latest/faq.html#can-i-sweep-private-keys-from-other-bitcoin-clients</a> and pasting into the sweep input box and leaving the default address intact.</p>

<p>The exact error message I receive is:</p>

<pre><code>No inputs found. (Note that inputs need to be confirmed)
</code></pre>

<p>Am I doing something stupid here? Is this even the best migration procedure?</p>

CC BY-SA 3.0
2018-03-12T12:25:58.047Z
The process looks okay. Not all receiving the addresses will necessarily have a current balance if that is what Electrum means to tell you. It is not necessarily necessary to use Sweep if your Bitcoin Core wallet addresses are not compromised (and your private keys continue to be protected in the future) then you can just use Import which will save paying transaction fees, although, if you do use sweep it is better to put all private keys in the box, one per line with enter in between, so that only one transaction is necessary.
Willtech
CC BY-SA 3.0
2018-03-12T21:30:31.283Z
what version of bitcoin core are you using? can you share the address and transaction?
Tailer
CC BY-SA 3.0
2018-03-14T12:02:50.500Z
@willtech sweeping is better because you can easily backup your wallet by writing down the seed.
Abdussamad
<bitcoin-core><electrum><sweep>
No inputs found when using Electrum to sweep private key from Bitcoin Core
h0dges
# No inputs found when using Electrum to sweep private key from Bitcoin Core

(Asked by: username_0 on 2018-03-12)

I'm trying to move my bitcoins from Bitcoin Core to Electrum in order to not have to store the blockchain. My starting position is a fully synced Bitcoin Core and a newly created standard Electrum wallet (without any imports).

I'm using the debug console in Bitcoin Core to execute `walletpassphrase` to unlock my wallet, and `dumpprivkey` together with the address obtained from `File > Receiving addresses...`

Once Bitcoin Core spits out a private key I'm following the instructions here <http://docs.electrum.org/en/latest/faq.html#can-i-sweep-private-keys-from-other-bitcoin-clients> and pasting into the sweep input box and leaving the default address intact.

The exact error message I receive is:

```
No inputs found. (Note that inputs need to be confirmed)

```

Am I doing something stupid here? Is this even the best migration procedure?

**Tags:** bitcoin-core, electrum, sweep

> **Comments:**
> **username_1**: The process looks okay. Not all receiving the addresses will necessarily have a current balance if that is what Electrum means to tell you. It is not necessarily necessary to use Sweep if your Bitcoin Core wallet addresses are not compromised (and your private keys continue to be protected in the future) then you can just use Import which will save paying transaction fees, although, if you do use sweep it is better to put all private keys in the box, one per line with enter in between, so that only one transaction is necessary.  
> **username_2**: what version of bitcoin core are you using? can you share the address and transaction?  
> **username_3**: @username_1 sweeping is better because you can easily backup your wallet by writing down the seed.  

---

## 3 answers

### Answer by username_4 on 2021-07-18. Score: 1 | Accepted answer

Take a look at the private keys from your Bitcoin Core client. They should look like mine (the following are keys from the testnet):

```
cQHjhLkGQHQZUZFZYHfXjsXkfdNPoAd2X58sa2x95vEWssrvpPLi 
cVXThnV4XgJP7q1v3aVQacTkxHq96BpyoSCGPqMAyyJcVaGn93Zh 
cVCAYjR4E5qvzCa3f6VYZhsZNCgWQUDikfFCg4Fom6fnecRXxKM5 

```

Now go to your Electrum and take a look at your keys there (**Wallet**>>**Private keys**>>**Export**, you will find them to the right from your addresses). The should look more or less like mine:

```
p2wpkh:cNs6rHM6cd7iY3YizmpG2GHxctjKxFtLV9WANCLgtcCRzcQ8AC1b
p2wpkh:cSGaa8sWKSvSty6bR36XZzEQsMr5bNW78XYCaTs3h4xqbsoLGghx
p2wpkh:cTERSrc4euSox7Wtk75vVFwLBpf7oqbpwQPTxNGoEjLxjwL8JrMJ

```

They look like of a different type than the ones from your Bitcoin Core wallet.
[A single private key can lead to different addresses](https://bitcoin.stackexchange.com/questions/92615/why-is-p2pkh-prepended-at-the-beginning-of-private-key-addresses-in-electrum), depending on the script it is used in - these include p2pkh, p2wpkh, p2sh-p2wpkh. To realize that it is true create a new wallet in Electrum (File>>New/Restore>>Create..,choose option *Import Bitcoin addresses or private keys*) paste the unprepended private key from your Bitcoin Core wallet. Electrum should create a new non-HD wallet for you with only one address. This adrress will be a different one from the one from which you derrived your private key in Bitcoin Core client
Electrum prepends the script type to the private key during export and import so that it knows which address to derive and check for outputs on.

Before sweeping prepend the private key from your Bitcoin Core wallet, that you got from the output of `dumpprivkey "address"`, with `p2wpkh:`, like so: `p2wpkh:cNbxok3SkFuSsbiiTqLj56Hp6bAhr2uJtr8aTkViBB3ghBMzQH3Y`. Such prepended key paste into the sweep box and follow the instructions. You can replace the address given to you by Electrum with the one of your choice - it will work as well.

What is convenient in sweeping is that it will work even if you do not have any Bitcoin in your destination wallet. The fee will be taken from the source, in your case the UTXO from the address of your Bitcoin Core client.


---

### Answer by username_3 on 2018-03-14. Score: 2

Your coins are likely in a change address. You could do a `dumpwallet` in bitcoin core and then sweep all the private keys. But this is going to be slow going in electrum and you're going to have to do it in batches. Instead I suggest extracting the addresses which have unspent outputs in them by using the `listunspent` command in bitcoin core and then sweeping only those addresses' private keys. You can also do this via the cli and then use standard text processing commands to extract the addresses (jq, grep). To get it via the cli run `bitcoind -daemon` and then use `bitcoin-cli listunspent`

> **Comments:**
> **username_4**: Why would the coins being in the change address matter? Do I have to have a balance in Electrum in order to pay the fee? Or can the key be subtracted from the Bitcoin Core's UTXOs?  
> **username_3**: @JerzyBrzóska Change addresses don't show up under receiving addresses in the GUI which is what the OP was using. The fee will come from the bitcoin core UTXOs.  
> **username_4**: Change addresses may not be given to the user when they do in the GUI:  **Receive>>New Address**. Nevertheless, they are readily available for the user in the **Addresses tab**, below receiving addresses. Nevertheless, if the swiping attempted by @username_0 succeded he would not have received `No inputs found.` from Electrum, and the transaction would have increased their wallet's balance. From my understanding of their question none of the two was the case.  

---

### Answer by username_5 on 2023-08-01. Score: 0

Adding complementary information :
If the address which holds the amount starts with a "3", therefore the script to perform the sweep shall be "p2wpkh-p2sh:" followed by the private key.
As long as the script is not correct, you get either "No Input Found" or "Unknown script".
I've struggled several hours to found out in the Electrum user manuel.


---

