<p>No, there is no restriction. Any transaction (including coinbase transactions) can create any output type. The block reward can be spent to P2PK, P2PKH, P2SH, P2SH-P2WPKH, P2SH-P2WSH, P2WPKH, P2WSH, P2TR, or even a bare script regardless of the version of the block.</p>

CC BY-SA 4.0
2023-01-10T15:46:50.607Z
wdym sir? sorry, i dont understand
just.callme.client
CC BY-SA 4.0
2023-01-10T16:22:08.967Z
The answer to your question is "no": there is no restriction on the type of outputs/ardresses a coinbase transaction can pay to, in BIP34 or elsewhere.
Pieter Wuille
CC BY-SA 4.0
2023-01-11T06:54:21.697Z
so thats mean i can only use P2PKH only right?
just.callme.client
CC BY-SA 4.0
2023-01-11T13:17:36.783Z
No, you can use any type of address.
Murch
CC BY-SA 4.0
2023-01-10T15:20:35.000Z
2023-01-11T13:16:56.420Z
2023-01-11T13:16:56.420Z
Murch
<p>I've been working on a bitcoin miner that uses BIP-0034 (block v2).</p>
<p>I'm confused about the coinbase transaction of block v2. Does block v2 only accept P2PKH type of address to allow me to receive a reward for solving a block? Because the <a href="https://www.blockchain.com/explorer/blocks/btc/227836" rel="nofollow noreferrer">first block v2</a> uses P2PKH address on the coinbase tx.</p>
<p>So my question is can I use other types of address for coinbase transaction inside block v2 or I can only use the P2PKH address?</p>

<coinbase-transaction><output><address-format>
Can a coinbase adhering to BIP-0034 (block v2) only pay P2PKH addresses?
just.callme.client
# Can a coinbase adhering to BIP-0034 (block v2) only pay P2PKH addresses?

(Asked by: username_0 on 2023-01-10)

I've been working on a bitcoin miner that uses BIP-0034 (block v2).

I'm confused about the coinbase transaction of block v2. Does block v2 only accept P2PKH type of address to allow me to receive a reward for solving a block? Because the [first block v2](https://www.blockchain.com/explorer/blocks/btc/227836) uses P2PKH address on the coinbase tx.

So my question is can I use other types of address for coinbase transaction inside block v2 or I can only use the P2PKH address?

**Tags:** coinbase-transaction, output, address-format


---

## 1 answers

### Answer by username_1 on 2023-01-10. Score: 2 | Accepted answer

No, there is no restriction. Any transaction (including coinbase transactions) can create any output type. The block reward can be spent to P2PK, P2PKH, P2SH, P2SH-P2WPKH, P2SH-P2WSH, P2WPKH, P2WSH, P2TR, or even a bare script regardless of the version of the block.

> **Comments:**
> **username_0**: wdym sir? sorry, i dont understand  
> **username_2**: The answer to your question is "no": there is no restriction on the type of outputs/ardresses a coinbase transaction can pay to, in BIP34 or elsewhere.  
> **username_0**: so thats mean i can only use P2PKH only right?  
> **username_1**: No, you can use any type of address.  

---

