<p>If we take the transaction's structure :</p>
<ul>
<li>00000000 (version)</li>
<li>00 (nInputs)</li>
<li>00 (nOutputs)</li>
<li>00000000 (locktime)</li>
</ul>
<p>Of course, that's a good question, and your transaction's structure is correct. But,this transaction is going to be rejected. This transaction must have a version equals to 1. This must be required. In Bitcoin, it doesn't exist a transaction with a version equals to 0. In addition, a transaction must have 1 input and 1 output at last.</p>
<p>Have a nice day.</p>

CC BY-SA 4.0
2022-04-24T08:29:37.990Z
2022-04-24T08:29:37.990Z
Loopite
<p>No, it would be invalid. Every transaction must have at least one input and at least one output.</p>

CC BY-SA 4.0
2022-04-24T01:33:51.443Z
2022-04-24T01:33:51.443Z
Murch
<pre><code>$ bitcoin-cli decoderawtransaction 00000000000000000000
{
  &quot;txid&quot;: &quot;f702453dd03b0f055e5437d76128141803984fb10acb85fc3b2184fae2f3fa78&quot;,
  &quot;hash&quot;: &quot;f702453dd03b0f055e5437d76128141803984fb10acb85fc3b2184fae2f3fa78&quot;,
  &quot;version&quot;: 0,
  &quot;size&quot;: 10,
  &quot;vsize&quot;: 10,
  &quot;weight&quot;: 40,
  &quot;locktime&quot;: 0,
  &quot;vin&quot;: [
  ],
  &quot;vout&quot;: [
  ]
}
</code></pre>
<p>I assume this wouldn't make it into the mempool or be relayed, but if a miner decided for some odd reason to mine a transaction like this, would it be valid? or would other miners reject it?</p>
<p>Thanks</p>

<transactions><mining-theory><transaction-verification>
Curiosity, Minimal transaction accepted as valid? (zero input/ zero output)
Michael Tidwell
# Curiosity, Minimal transaction accepted as valid? (zero input/ zero output)

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

```
$ bitcoin-cli decoderawtransaction 00000000000000000000
{
  "txid": "f702453dd03b0f055e5437d76128141803984fb10acb85fc3b2184fae2f3fa78",
  "hash": "f702453dd03b0f055e5437d76128141803984fb10acb85fc3b2184fae2f3fa78",
  "version": 0,
  "size": 10,
  "vsize": 10,
  "weight": 40,
  "locktime": 0,
  "vin": [
  ],
  "vout": [
  ]
}

```

I assume this wouldn't make it into the mempool or be relayed, but if a miner decided for some odd reason to mine a transaction like this, would it be valid? or would other miners reject it?

Thanks

**Tags:** transactions, mining-theory, transaction-verification


---

## 2 answers

### Answer by username_1 on 2022-04-24. Score: 1 | Accepted answer

If we take the transaction's structure :

* 00000000 (version)
* 00 (nInputs)
* 00 (nOutputs)
* 00000000 (locktime)

Of course, that's a good question, and your transaction's structure is correct. But,this transaction is going to be rejected. This transaction must have a version equals to 1. This must be required. In Bitcoin, it doesn't exist a transaction with a version equals to 0. In addition, a transaction must have 1 input and 1 output at last.

Have a nice day.


---

### Answer by username_2 on 2022-04-24. Score: 1

No, it would be invalid. Every transaction must have at least one input and at least one output.


---

