Opcodes · token · enabled
OP_UTXOTOKENCOMMITMENT (0xcf)
Pushes the NFT commitment of the UTXO spent by input i. Pushes 0 if there is no NFT or the commitment is empty.
Verified
- Stack in → out
- i → commitment | 0
- Cost
- Base instruction cost 100 plus the byte length of the pushed result (2025 VM limits).
- Bitcoin status
- Not in Bitcoin (BTC)BTC has no native tokens. In Tapscript (BIP-342) this byte is an OP_SUCCESSx code reserved for future soft forks.
Example
OP_INPUTINDEX OP_UTXOTOKENCOMMITMENT OP_0 OP_OUTPUTTOKENCOMMITMENT OP_EQUAL Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.