# OP\_CHECKCONTRACTVERIFY and its amount semantic

**URL:** <https://delvingbitcoin.org/t/op-checkcontractverify-and-its-amount-semantic/1527>\
**Category:** Protocol Design\
**Tags:** softfork, bitcoin-core\
**Created:** [March 17, 2025, 5:57am UTC](https://delvingbitcoin.org/t/op-checkcontractverify-and-its-amount-semantic/1527 "2025-03-17T05:57:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![salvatoshi](https://delvingbitcoin.org/user_avatar/delvingbitcoin.org/salvatoshi/32/72_2.png) [@salvatoshi](https://delvingbitcoin.org/u/salvatoshi)\
**Post date:** [March 17, 2025, 6:49pm UTC](https://delvingbitcoin.org/t/op-checkcontractverify-and-its-amount-semantic/1527/5 "2025-03-17T18:49:16Z")

</div>

Output Scripts in CCV-based state machines are more often than not completely unrelated scripts; however, you can obtain “same script as the input” by combining CCV on the input with CCV on the output; I use this for example in vaults for the partial revault).

So I think the answer is yes for all the variations you mentioned - except that in the _Fan-out_ case, for it to make sense, you’d probably still need to introspect the various output amounts.

> [@Chris\_Stewart\_5](#):
>
> In the case where you have a transaction that takes a single OP\_CCV input and a single OP\_CCV output, how is fee handling expected to work? Is the idea that you just add an anchor output and the CPFP the parent?

CCV doesn’t put any limitation on the inputs/outputs that it doesn’t introspect, so you can have separate input just for the fees, and a separate output just for the change. Or you could also use anchor outputs, package relay, or whatever is compatible with the relay policies.

> [@Chris\_Stewart\_5](#):
>
> Or can you use the “deduct” feature to slice off a portion of the OP\_CCV amount to use for a fee?

The amount you can use for fees is by definition not bound by the covenant restrictions, so I think either exogenous fees or anchors are inherent with any covenant construction.

---

_[View the full topic](https://delvingbitcoin.org/t/op-checkcontractverify-and-its-amount-semantic/1527)._
