user42021: $ 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

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

user133916: 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.

42021: <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>
 5406: <p>No, it would be invalid. Every transaction must have at least one input and at least one output.</p>
 133916: <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>
