<h2>OP_RETURN</h2>
<p>The generally approved way to include arbitrary content in a transaction is by use of an OP_RETURN script. See <a href="https://bitcoin.stackexchange.com/q/29554/13866">Explanation of what an OP_RETURN transaction looks like</a></p>
<p>There is nothing you can write in a Bitcoin script that checks the number of other transactions in a block. The only way to ensure exclusivity is to make the transaction sufficiently large.</p>
<h2>Transaction size</h2>
<p>To be sure your transaction is the only non-coinbase transaction in a block it would have to be large enough to almost fill the block. See <a href="https://bitcoin.stackexchange.com/q/1823/13866">What is the maximum size of a transaction?</a></p>
<p>Personally, I don't see how the presence of other transactions could in any way affect the perceived importance of a transaction, but I'll disregard that aspect.</p>
<h2>Payment Conditions</h2>
<p>To be sure that you only pay the miner after the transaction is included in a valid block, you only have to use one output of your transaction to pay the miner a large transaction fee. For example with inputs of 1.0001 BTC and an output to yourself of 0.0001 BTC. leaving 1.0000 BTC to be collected by the miner.</p>
<h2>Minimum relay fee</h2>
<p>Large transactions will not be relayed by many intermediary nodes unless the mining fee exceeds a minimum amount. I believe initially this was 1000 satoshis per vkByte. This could mean that you either need to pay more than 1 BTC or need to make a special arrangement with a miner to deliver your unconfirmed transaction to them using some direct method.</p>

CC BY-SA 4.0
2022-04-14T18:27:59.073Z
2022-04-14T18:35:05.977Z
2022-04-14T18:35:05.977Z
RedGrittyBrick
<p>Theoretically you could just jam some string as a &quot;message&quot; in the Tx Witness.</p>
<p>To answer your question though, if you're willing to pay the miner a whopping 1BTC fee they'd probably accept it, but if you want to claim the whole block to yourself the transaction's weight will have to be heavy enough that the miner is forced accept your transaction into their block exclusively should they choose to incorporate it.</p>
<p>Nonetheless though, unless the fee is huge, virtually no miner will accept the transaction.</p>
<blockquote>
<p>I am willing to pay an additional fee of 1BTC but only after the
block is mined.</p>
</blockquote>
<p>Fees are always &quot;paid&quot; after the block is mined. A miner cant claim the fee if its an unmined block.</p>

CC BY-SA 4.0
2022-04-14T14:20:11.093Z
2022-04-14T14:20:11.093Z
bitcash complex
<p>I am thinking of broadcasting a Bitcoin transaction with a very important message. The message is so important that I want it to be the only transaction (other than coinbase) in the block.</p>
<p>For example if my transaction were to be included in block 740000 than the block should contain only the</p>
<ol>
<li>Coinbase Transaction</li>
<li>My Transaction with message.</li>
</ol>
<p>I am willing to pay an additional fee of 1BTC but only after the block is mined.</p>
<p>Is there a way to make sure this?</p>

<transactions><block><miner-configuration>
Only My Transaction in a block
transaction0
# Only My Transaction in a block

(Asked by: username_0 on 2022-04-14)

I am thinking of broadcasting a Bitcoin transaction with a very important message. The message is so important that I want it to be the only transaction (other than coinbase) in the block.

For example if my transaction were to be included in block 740000 than the block should contain only the

1. Coinbase Transaction
2. My Transaction with message.

I am willing to pay an additional fee of 1BTC but only after the block is mined.

Is there a way to make sure this?

**Tags:** transactions, block, miner-configuration


---

## 2 answers

### Answer by username_1 on 2022-04-14. Score: 1

## OP\_RETURN

The generally approved way to include arbitrary content in a transaction is by use of an OP\_RETURN script. See [Explanation of what an OP\_RETURN transaction looks like](https://bitcoin.stackexchange.com/q/29554/13866)

There is nothing you can write in a Bitcoin script that checks the number of other transactions in a block. The only way to ensure exclusivity is to make the transaction sufficiently large.

## Transaction size

To be sure your transaction is the only non-coinbase transaction in a block it would have to be large enough to almost fill the block. See [What is the maximum size of a transaction?](https://bitcoin.stackexchange.com/q/1823/13866)

Personally, I don't see how the presence of other transactions could in any way affect the perceived importance of a transaction, but I'll disregard that aspect.

## Payment Conditions

To be sure that you only pay the miner after the transaction is included in a valid block, you only have to use one output of your transaction to pay the miner a large transaction fee. For example with inputs of 1.0001 BTC and an output to yourself of 0.0001 BTC. leaving 1.0000 BTC to be collected by the miner.

## Minimum relay fee

Large transactions will not be relayed by many intermediary nodes unless the mining fee exceeds a minimum amount. I believe initially this was 1000 satoshis per vkByte. This could mean that you either need to pay more than 1 BTC or need to make a special arrangement with a miner to deliver your unconfirmed transaction to them using some direct method.


---

### Answer by username_2 on 2022-04-14. Score: 0

Theoretically you could just jam some string as a "message" in the Tx Witness.

To answer your question though, if you're willing to pay the miner a whopping 1BTC fee they'd probably accept it, but if you want to claim the whole block to yourself the transaction's weight will have to be heavy enough that the miner is forced accept your transaction into their block exclusively should they choose to incorporate it.

Nonetheless though, unless the fee is huge, virtually no miner will accept the transaction.

> I am willing to pay an additional fee of 1BTC but only after the
> block is mined.

Fees are always "paid" after the block is mined. A miner cant claim the fee if its an unmined block.


---

