Opcodes · token · habilitado

OP_UTXOTOKENCATEGORY (0xce)

Apila la categoría de token del UTXO gastado por la entrada i, con un byte de capacidad añadido al final para los NFTs mutables (0x01) o con capacidad de acuñación (0x02). Apila 0 si el UTXO no contiene tokens.

Verificado
Pila: entrada → salida
i → category[+cap] | 0
Costo
Base instruction cost 100 plus the byte length of the pushed result (2025 VM limits).
Estado en Bitcoin
No existe en Bitcoin (BTC)BTC has no native tokens. In Tapscript (BIP-342) this byte is an OP_SUCCESSx code reserved for future soft forks.

Ejemplo

OP_INPUTINDEX OP_UTXOTOKENCATEGORY OP_0 OP_OUTPUTTOKENCATEGORY OP_EQUAL

Recórrelo opcode por opcode en Bitauth IDE, el depurador de la VM de BCH en el navegador.

Fuentes

  1. CHIP-2022-02 CashTokens: Token Primitives for Bitcoin Cash
  2. Libauth BCH_2023_05 opcodes (bch-2023-opcodes.ts)