<p>As of Bitcoin Core v18 and later, it is possible to create a blank wallet with no keys in it. You can then import the single key you wish to use. It can be imported as a descriptor (with <code>importdescriptors</code>), via the <code>importprivkey</code> RPC, or via the <code>importmulti</code> RPC.</p>

CC BY-SA 4.0
2021-12-10T11:18:54.570Z
2021-12-10T13:03:45.747Z
2021-12-10T13:03:45.747Z
meshcollider
<p>No, there is no such option.</p>

<p>You can do what you want with the raw transaction RPC interface (<code>createrawtransaction</code>, <code>fundrawtransaction</code>, <code>signrawtransaction</code>, <code>sendrawtransaction</code>), though.</p>

CC BY-SA 4.0
2018-11-25T17:48:23.637Z
2018-11-25T17:48:23.637Z
Pieter Wuille
<p>I'm running a private regtest network on GCP. I generated a list of 2000 vanity testnet addresses ordered sequentially from prefixes <code>mooo1</code> to <code>n2ooo</code> with their respective pub/priv key pairs, and to prevent complications, I want to only have one private key for each node (change in outgoing transactions are sent to the original address). Because there's no security concern in my setting (it's just a performance test, no money or attacker is involved), I want to make each bitcoind instance only use a single private key for all transactions, and not generate new addresses through an HD wallet. This is because viewing transactions is much more streamlined. I can tell which node is sending bitcoins to which other node, and diagnose issues more easily. Is there an option in bitcoind to only use a single private key?</p>

<bitcoind><private-key><regtest><vanity-address>
Private key only wallet for Bitcoin Core regtest
Expectator
# Private key only wallet for Bitcoin Core regtest

(Asked by: username_0 on 2018-11-25)

I'm running a private regtest network on GCP. I generated a list of 2000 vanity testnet addresses ordered sequentially from prefixes `mooo1` to `n2ooo` with their respective pub/priv key pairs, and to prevent complications, I want to only have one private key for each node (change in outgoing transactions are sent to the original address). Because there's no security concern in my setting (it's just a performance test, no money or attacker is involved), I want to make each bitcoind instance only use a single private key for all transactions, and not generate new addresses through an HD wallet. This is because viewing transactions is much more streamlined. I can tell which node is sending bitcoins to which other node, and diagnose issues more easily. Is there an option in bitcoind to only use a single private key?

**Tags:** bitcoind, private-key, regtest, vanity-address


---

## 2 answers

### Answer by username_1 on 2021-12-10. Score: 1 | Accepted answer

As of Bitcoin Core v18 and later, it is possible to create a blank wallet with no keys in it. You can then import the single key you wish to use. It can be imported as a descriptor (with `importdescriptors`), via the `importprivkey` RPC, or via the `importmulti` RPC.


---

### Answer by username_2 on 2018-11-25. Score: 0

No, there is no such option.

You can do what you want with the raw transaction RPC interface (`createrawtransaction`, `fundrawtransaction`, `signrawtransaction`, `sendrawtransaction`), though.


---

