STAS protocol spending-type parameter.
Every STAS unlocking script includes a spending-type value that tells the locking script which operation is being performed. This is a protocol-level concept shared across all STAS templates (standard, BTG, STAS 3.0).
Values
| Value | Atom | Operation |
|---|---|---|
| 1 | :transfer | Regular spending (transfer/split/merge/redeem) |
| 2 | :freeze_unfreeze | Freeze or unfreeze a token UTXO |
| 3 | :confiscation | Forcible reassignment of ownership |
| 4 | :swap_cancellation | Cancel a standing swap offer |
Summary
Functions
Convert a wire-format byte value to a spend type atom.
Convert a spend type atom to its wire-format byte value.