Give Bitcoin Cash transactions clear rules.

Covenants let a BCH product define the paths controlled funds may take. Use them when a workflow needs more than a signature—such as escrow, staged payouts, recovery, or restricted spending.

Transaction requestAn application or wallet proposes a spend
↓
Transaction inspectionInputs and outputs are checked against the rule
↓
Permitted outcomeValid transaction proceeds; invalid paths fail

Reference covenant flow · Implementations vary

Build guardrails into the transaction itself.

With the right script and transaction design, spend conditions are checked at the BCH transaction boundary instead of living only in an application server or an operator checklist.

Recipients

Restrict where a controlled output can send value next.

Amounts

Enforce per-payment, cumulative, or remaining-value limits.

Successor state

For stateful designs, a valid successor advances the workflow; a transaction that violates the rule fails.

Recovery

Make the return or recovery path explicit in the transaction rules.

Turn a business rule into a permitted path.

A covenant evaluates the actual transaction that attempts to spend the controlled input. The builder assembles the transaction; the covenant checks whether it follows the permitted path.

1
Lock

Place BCH or CashToken funds under a covenant rule.

2
Build

Assemble the intended inputs, outputs, state, and fee.

3
Validate

The script checks the transaction against the permitted path.

4
Continue

For stateful designs, a valid successor advances the workflow; a transaction that violates the rule fails.

Authorization and covenant rules answer different questions.

A signature proves that an authorized key approved a transaction. A covenant can additionally require the spending transaction itself to satisfy rules about outputs, values, tokens, or continuation state. Many designs use both.

Use covenants where the transaction path matters.

1

Escrow

Release value only when the transaction satisfies the agreed conditions.

2

Staged distribution

Move grants, treasury funds, or payouts through defined successor states.

3

Restricted spend

Limit recipients or transaction shapes for a software-operated workflow.

4

Token state

Combine CashToken categories, commitments, or capabilities with covenant rules to constrain token-aware state transitions.

Design for explicit transaction paths.

Covenants work well when a financial workflow can be expressed as explicit rules about transaction inputs, outputs, values, tokens, or continuation state. The surrounding wallet or application still constructs the transaction and manages the user experience.

Scope each covenant intentionally

Covenant rules apply to funds deliberately placed under them; they do not govern unrelated assets or an entire wallet.

Define expressible transaction rules

A covenant enforces conditions expressible using the BCH VM and transaction information available to the script.

Build the surrounding transaction flow

A wallet or backend constructs the intended outputs, handles fees and change, and preserves or intentionally transforms token state.

Design and test recovery

Include a recovery path in the transaction design and test it; incomplete designs can make funds difficult or impossible to move.

Move from covenant concepts to OPTN’s platform, CashTokens, engineering, or developer resources.

Have a covenant pattern in mind?

Bring the transaction path, recovery behavior, and product context. We can help scope the implementation.

Contact us