Skip to content
Developer Handbook

CashVM and transactions

Transaction Validation

On this page

Transaction rules on mainnet

For transactions validated under the May 2023 rules onward, the version must be 1 or 2 and the full serialized transaction must be at least 65 bytes. Version 2 can activate relative locktimes via the input sequence field. Older blocks remain subject to the rules at their height. Restrict transaction version · Minimum transaction size · 2023 activation specification

Transaction validation in Bitcoin Cash involves a variety of checks that determine what happens to a transactions that has been received by a given node. Some transactions may be considered invalid and rejected outright, others may be considered valid by some nodes but invalid by other nodes, and some valid transactions may not be distributed throughout the network as readily as others. Each of these cases culminate in a network consensus by way of the blockchain. That is to say that although these rules clearly impact what transactions appears in blocks, any uncertainty about the validity of a transaction are quickly be resolved as new blocks are mined.

Transaction validation can be broken down into three major categories:

  • Script Execution Rules which determine whether the inputs of a transaction are considered spendable by the transaction
  • Block-Level Validation Rules which determine whether transactions are valid in a given blockchain context (i.e. in a given block with a given history)
  • Network-Level Validation Rules which determine whether transactions are relayed from node to node

The three of these are closely intertwined but often result in different behavior when they are violated. For details, see the linked pages for definitions of each.

Miscellaneous Validation Rules

Bitcoin also has some miscellaneous rules for validation, which include exceptions or oddities. The following are miscellaneous rules.

Genesis Block Coinbase

The genesis block's coinbase may not be spent. Furthermore, this coinbase's output is not considered an unspent transaction output.

Extra Coinbase Validation Rules

Coinbases may only have one transaction input.

The coinbase unlocking script must be between 2 and 100 bytes (inclusive) in size.

Source and attribution

Documentation.cash (source repository) · Reference.cash (source repository)
Software Verde, Bitcoin Unlimited and the project contributors. Collection license CC BY 3.0 US. Individual notices are retained.
Source snapshot from November 29, 2026. BCH Ninja combined the community editions and updated navigation. BCH Ninja added the mainnet notes at the start of the article.