Skip to content
Developer Handbook

CashVM and transactions

Network-Level Validation Rules

On this page

Relay policies since May 2021

Standard transactions can carry multiple OP_RETURN data outputs within an aggregate data-carrier budget. BCHN’s default budget is 223 bytes across data-output locking scripts, including the OP_RETURN bytes. BCHN also removed its default unconfirmed chain and descendant-count limits. P2S changed standard locking and unlocking bytecode criteria in May 2026. These are relay and mining policies. Consensus determines whether a transaction can appear in a valid block. Multiple OP_RETURNs · Unconfirmed transaction chains · 2026 script policy

In some cases, transactions may be rejected by the network despite the fact that they successfully unlock their inputs, spend valid UTXOs, and do not conflict with other transactions. That is, a node may receive the transaction and consider it valid, but it may choose not to relay it to its peers or reject it outright. In particular, custom, or non-standard, transactions are often treated this way by the Bitcoin Cash network at large. Custom transactions are defined as those which are not considered standard.

Standard Transactions

Standard transactions are those that:

  • Only have outputs whose locking scripts are either at most 201 bytes long or are data outputs (since HF-20260515, see CHIP-2024-12 P2S: Pay to Script; before that, outputs had to use one of the standard locking scripts)
  • Are below the maximum transaction size of 100,000 bytes
  • Have a version 1 or version 2 (also a consensus rule since HF-20230515)
  • Have input scripts that only contain push operations (also a consensus rule since HF-20181115)
  • Have unlocking scripts less or equal to 10,000 bytes in length, the same as the consensus limit (since HF-20260515; 1,650 bytes before that, see scriptSig limit below)
  • Have the total size of data output locking scripts no larger than 223 bytes (see data output size limit below)
  • For multisig outputs, must have at most 3 parties and at least 1 required party (i.e. 1-of-1 through 3-of-3).
  • Have non-data outputs with amount above the dust threshold
  • Each input of the transaction, must require no more than ((scriptLength + 60) / 43) SigChecks

Be aware, however, that these rules may vary from node-to-node as they are often configurable. Some nodes may also accept and relay non-standard transactions. For this reason, among others, it is always wise to send transactions to multiple nodes.

The input scriptSig limit

Note: since HF-20260515 (CHIP-2024-12 P2S: Pay to Script), this standardness limit has been removed and the standard unlocking script limit is equal to the consensus limit of 10,000 bytes. The text below describes the limit as it applied before that upgrade.

The transaction input scriptSig limit must be less or equal to 1650 bytes to be considered standard. The rationale for the number 1650 byte limit was described in the code base as:

Biggest 'standard' txin is a 15-of-15 P2SH multisig with compressed keys. (remember the 520 byte limit on redeemScript size) That works out to a (15*(33+1))+3=513 byte redeemScript, 513+1+15*(73+1)+3=1627 bytes of scriptSig, which we round off to 1650 bytes for some minor future-proofing. That's also enough to spend a 20-of-20 CHECKMULTISIG scriptPubKey, though such a scriptPubKey is not considered standard)

Data Output Size Limit

The data output size limit is calculated as follows:

  • 1 byte for the OP_RETURN op code
  • 2 bytes for a push operation
  • Up to 220 bytes of data to be "pushed"

In HF-20210515 this size limit was kept the same but allowed to apply to any number of data outputs in the transaction, provided the total size of data output locking scripts does not exceed the limit. For example, a transaction is now allowed to have three locking scripts that are each 74 bytes in length. However, a transaction with two data outputs each with 112-byte locking scripts would be nonstandard under this relay policy because 112 * 2 = 224 exceeds the 223-byte limit.

Dust

In order to limit the propagation of transactions with limited utility, outputs that would be cost-prohibitive to spend are rejected as "dust." Dust is defined differently for different node implementations but in the simplest cases a threshold of 546 satoshis is used. Outputs with fewer satoshis than the dust threshold are rejected, along with the transaction they are a part of. The exception to this is provably unspendable outputs (e.g. data outputs), which always have a dust threshold of zero satoshis.

Node-Specific Behavior

bchd

bchd provides the following comment regarding its dust calculation:

The output is considered dust if the cost to the network to spend the coins is more than 1/3 of the minimum free transaction relay fee. minFreeTxRelayFee is in Satoshi/KB, so multiply by 1000 to convert to bytes.

Using the typical values for a pay-to-pubkey-hash transaction from the breakdown above and the default minimum free transaction relay fee of 1000, this equates to values less than 546 satoshi being considered dust.

Bitcoin Cash Node

Bitcoin ABC provides the following description of its dust threshold calculation:

"Dust" is defined in terms of dustRelayFee, which has units satoshis-per-kilobyte. If you'd pay more than 1/3 in fees to spend something, then we consider it dust. A typical spendable txout is 34 bytes big, and will need a CTxIn of at least 148 bytes to spend: so dust is a spendable txout less than 546*dustRelayFee/1000 (in satoshis).

The output size used in this calculation is the full serialized output size, including any token prefix.

Bitcoin Unlimited

Bitcoin Unlimited uses a static threshold of 546 satoshis (except provably non-spendable outputs which are zero).

Bitcoin Verde

Bitcoin Verde performs a similar calculation to Bitcoin ABC but with two differences:

  1. If the address used is uncompressed, the input size is increase to 180 bytes.
  2. The output length used is always 34 bytes, instead of serializing the output.

This is accompanied by the comment:

For the common default _satoshisPerByteFee (1), the dust threshold is 546 satoshis.

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 corrected outdated descriptions using the upgrade specifications. BCH Ninja added the mainnet notes at the start of the article.