Opcodes · token · enabled
OP_OUTPUTTOKENAMOUNT (0xd3)
Pushes the fungible token amount of output i, or 0 if it holds none.
Verified
- Stack in → out
- i → amount
- 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_0 OP_OUTPUTTOKENAMOUNT Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.