> For the complete documentation index, see [llms.txt](https://rhys-nemo.gitbook.io/tokenomics-bible/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rhys-nemo.gitbook.io/tokenomics-bible/protocols-and-utility/spl-token-freezing.md).

# SPL-token Freezing

"Freezing all token accounts for an SPL-token mint"

![](https://3505330573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F17Y4ZB0dl280NH9CAMkR%2Fuploads%2FjTXSp68uwmRhzvhhtT07%2Fimage.png?alt=media\&token=6047ee2c-da8d-4dda-b282-2504d2d6c22d)

* When creating a wallet you can set a freeze authority (see below)
* Unsure if you can add a freeze authority after token is created&#x20;
* Freeze authority has the ability to freeze/unfreeze all token accounts at any time&#x20;
* Freezing an SPL
* Token prohibits receiving or transferring SPL
* tokens from a token account

### **Q & A**

**Question Answer** **Q -** "As an example: If the token is frozen, can you buy a lottery ticket/mint, can you earn more tokens through staking etc?"&#x20;

**A -** Once a token account is frozen, staking/purchasing/transferring of tokens will fail&#x20;

### Commands

**Personal notes/commands** spl-token create-token --decimals 6 --enable-freeze Adding the —

enable-freeze flag enables the mint authority to freeze associated token accounts. Updating Freeze Authority spl-token authorize -h

### Freezing a token account

{% embed url="<https://spl.solana.com/token>" %}
