STAS token

STAS

A token whose amount is the output's sats, held by a contract that keeps it a token on every spend.

What it is

A STAS output starts as a P2PKH lock: the owner's pubkey hash. A fixed contract follows that reads the spending transaction, so the sats can only move on to outputs with the same contract and the same token. After OP_RETURN come the token's data: the issuer's redemption pubkey hash, which is the token's id, a flag byte (00 splittable, 01 not), then the symbol and any other data. Each satoshi is one unit of the token, so the amount is the output's value.

Script pattern

  1. OP_DUP OP_HASH160 <owner pubkey hash> OP_EQUALVERIFY OP_CHECKSIG A P2PKH lock: who holds the tokens.
  2. <contract> 1,384 bytes of fixed contract code that checks the spending transaction's outputs.
  3. OP_RETURN <redemption pubkey hash> 20 bytes: the issuer's key, and the token's id.
  4. <flags> One byte: 00 when the token may be split, 01 when it may not.
  5. <symbol and data> What the issuer wrote, such as the symbol.

The contract is the same byte for byte in every STAS output; only the owner and the token data change.

How it is spent

The owner's signature, in a transaction whose outputs carry the same STAS contract and token data on to the next owners, or back to the issuer to redeem.

Background

TAAL published STAS with the stas-js library and a white paper in 2021. The tokens WhatsOnChain lists were issued from September 2021, around block 706,000.

On chain

None in our index yet.

Transactions with an output of exactly this script shape, by template hash 1ece0a0b2555… Transaction pages need sign-in.

Specification