I wanted a token that takes a small fee on every transfer and also grows over time. In a normal backend I would write a bunch of code. On Solana I found I could get both features just by flipping a few switches when creating the token. No smart contract needed.
Here's exactly what I did.
First I created a token called ArcCoin with a 1% transfer fee and an interest rate of 5 basis points. I used the Token‑2022 program because it supports these extra features (called extensions).
spl-token --program-id TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb create-token --decimals 2 --transfer-fee-basis-points 100 --interest-rate 5 --enable-metadata
Enter fullscreen mode










