<p>It is not possible to do this in Bitcoin Core. If you want to have control over the coinbase transaction, you will need to use external mining software that allows you to do that.</p>

<p>Since the difficulty on regtest is so low, you could have a simple python script that produces blocks with your specific coinbase. You don't need actual mining software as the difficulty is low enough to be found almost instantaneously with a naive mining implementation.</p>

CC BY-SA 4.0
2020-02-19T20:02:14.697Z
2020-02-19T20:02:14.697Z
Ava Chow
<p>I am talking about when using regtest or simnet modes.</p>

<p>For context, it is so that I can create coinbase transactions with reproducible txids.</p>

CC BY-SA 4.0
2020-02-18T16:07:09.093Z
By "reproducible txids" do you mean that you want to know the txid before the transaction is created, or you want the same coinbase txid in multiple blocks?
Ava Chow
CC BY-SA 4.0
2020-02-18T19:30:48.523Z
I want to be able to start the blockchain from scratch, mine a block with just one coinbase transaction that has a specific scriptSig and address, so that it will produce the same txid each time. Thanks
Darius
<bitcoin-core><mining-reward><coinbase-transaction><input-script><btcd>
Is it possible, with bitcoin-core or btcd, to manually set the scriptSig field in a coinbase transaction?
Darius
# Is it possible, with bitcoin-core or btcd, to manually set the scriptSig field in a coinbase transaction?

(Asked by: username_0 on 2020-02-17)

I am talking about when using regtest or simnet modes.

For context, it is so that I can create coinbase transactions with reproducible txids.

**Tags:** bitcoin-core, mining-reward, coinbase-transaction, input-script, btcd

> **Comments:**
> **username_1**: By "reproducible txids" do you mean that you want to know the txid before the transaction is created, or you want the same coinbase txid in multiple blocks?  
> **username_0**: I want to be able to start the blockchain from scratch, mine a block with just one coinbase transaction that has a specific scriptSig and address, so that it will produce the same txid each time. Thanks  

---

## 1 answers

### Answer by username_1 on 2020-02-19. Score: 1 | Accepted answer

It is not possible to do this in Bitcoin Core. If you want to have control over the coinbase transaction, you will need to use external mining software that allows you to do that.

Since the difficulty on regtest is so low, you could have a simple python script that produces blocks with your specific coinbase. You don't need actual mining software as the difficulty is low enough to be found almost instantaneously with a naive mining implementation.


---

