CAsoon

A new token standard for Solana

Transfer hooks are played out. They can only say no. Ours say how much.

Launch a token

A new token standard for Solana

Hooks: on chain
Chain: Solana

Fig. 1

One transfer, two standards

A · Token-2022 transfer hook

Approves or blocks

100 sent

  • 100 arrive

100 arrive, untouched, or it all reverts

Runs
After the balances have changed. Transfers only.
Sees
The transfer, read-only. Not why: no buy or sell, no price, no pool.
Answers
Let it stand, or revert. It can’t change the amount.
Read the standard

B · A hook on this standard

Decides the amount

100 sent

  • 90 arrive
  • 6 cut
  • 4 burned

90 arrive; 64 bytes kept in the holding

Runs
Before and after every transfer, mint and burn, and on every swap.
Sees
Owners, balances, supply and who signed; on a swap, the whole trade.
Answers
Cuts and state on any transfer; a burn and the fee on a swap.
Launch a token

Build with the SDK

The TypeScript SDK builds every instruction, decodes every account and event, and resolves a hook's accounts. The hook interface is open: anyone can write one.