<p>If you use Descriptor wallets, you can get the descriptors used by the wallet with the <code>listdescriptors</code> RPC. These descriptors will contain xpubs that you can import.</p>
<p>Without descriptor wallets, you can only get individual pubkeys from Bitcoin Core by using <code>getaddressinfo</code> for an address in the wallet.</p>

CC BY-SA 4.0
2022-06-17T15:23:00.447Z
2022-06-17T15:23:00.447Z
Ava Chow
<h2>Background</h2>
<p>I have a service running on a server using bitcoin core that is signing transactions from a Bitcoin wallet automatically. However, if anyone were to get access to this server, they'd have access to the full Bitcoin keys.</p>
<p>Hence, I was trying to create a multi-sig setup using Electrum on bitcoin core as follows:</p>
<ul>
<li>I started to create a 2 of 3 multi-sig in Electrum where my plan was to have 1 key in the server (bitcoin core) and 2 keys are in Electrum instances, i.e., I'd always have to come online to verify that the transaction is made correctly.</li>
<li>I managed to create two Electrum wallets and export their pubkeys to add them to the 2 of 3 multi-sig.</li>
<li>I got stuck on importing a pubkey from bitcoin core into Electrum. As far as I understand, bitcoin core does not support extended pub keys (<a href="https://bitcoin.stackexchange.com/questions/90135/how-do-i-export-an-xpub-from-bitcoin-core-for-use-in-btcpayserver">How do I export an xpub from Bitcoin Core for use in BTCPayServer?</a>).</li>
</ul>
<h2>Question</h2>
<p>Is there any way to import a pubkey for a single address from bitcoin core into Electrum?</p>
<h2>Related</h2>
<p>I found posts on how to import xpub keys into core (<a href="https://bitcoin.stackexchange.com/questions/86059/create-multisignature-wallet-from-xpub-keys-in-bitcoin-core">Create multisignature wallet from xpub keys in bitcoin core</a>) but I'm trying to do the opposite (pubkey from bitcoin core into Electrum).</p>

<electrum><multi-signature><public-key>
Import Bitcoin core pubkey into Electrum for multisig setup
Dominik Harz
# Import Bitcoin core pubkey into Electrum for multisig setup

(Asked by: username_0 on 2022-06-17)

## Background

I have a service running on a server using bitcoin core that is signing transactions from a Bitcoin wallet automatically. However, if anyone were to get access to this server, they'd have access to the full Bitcoin keys.

Hence, I was trying to create a multi-sig setup using Electrum on bitcoin core as follows:

* I started to create a 2 of 3 multi-sig in Electrum where my plan was to have 1 key in the server (bitcoin core) and 2 keys are in Electrum instances, i.e., I'd always have to come online to verify that the transaction is made correctly.
* I managed to create two Electrum wallets and export their pubkeys to add them to the 2 of 3 multi-sig.
* I got stuck on importing a pubkey from bitcoin core into Electrum. As far as I understand, bitcoin core does not support extended pub keys ([How do I export an xpub from Bitcoin Core for use in BTCPayServer?](https://bitcoin.stackexchange.com/questions/90135/how-do-i-export-an-xpub-from-bitcoin-core-for-use-in-btcpayserver)).

## Question

Is there any way to import a pubkey for a single address from bitcoin core into Electrum?

## Related

I found posts on how to import xpub keys into core ([Create multisignature wallet from xpub keys in bitcoin core](https://bitcoin.stackexchange.com/questions/86059/create-multisignature-wallet-from-xpub-keys-in-bitcoin-core)) but I'm trying to do the opposite (pubkey from bitcoin core into Electrum).

**Tags:** electrum, multi-signature, public-key


---

## 1 answers

### Answer by username_1 on 2022-06-17. Score: 2

If you use Descriptor wallets, you can get the descriptors used by the wallet with the `listdescriptors` RPC. These descriptors will contain xpubs that you can import.

Without descriptor wallets, you can only get individual pubkeys from Bitcoin Core by using `getaddressinfo` for an address in the wallet.


---

