@scrypt-inc/cat-token
v0.2.10
Published
A demo sCrypt smart contract.
Downloads
5
Readme
sCrypt Cat Token
Build
npm run build
Testing Locally
npm run test
Testnet Sample Transactions
A transaction with 3 token UTXO inputs and 1 token UTXO output, with a virtual size (vsize) of 6.2k. The transaction ID (txid) is 918ce5eb57aea8ee0ccd9c4815610385247d42f9cff06f086ed6d9e936992783.
A transaction with 1 token UTXO input and 2 token UTXO outputs, with a virtual size (vsize) of 2.9k. The transaction ID (txid) is ec1b80405b8b2027a1143a836375657843f53b1873832afe9c005b9cf5859479.
Cat Token Transaction Limits
For a Cat Token protocol transaction, the maximum number of inputs is 6, and the maximum number of outputs is also 6.
Since we need to calculate the txid of the previous transaction, we must ensure that the number of bytes in the previous transaction’s data is less than 520.
This is because the maximum byte limit for an element on the Bitcoin Virtual Machine (BVM) stack is 520. The corresponding variable name is MAX_SCRIPT_ELEMENT_SIZE
.