Skip to content

Commit

Permalink
refactor: editorial changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfrosty committed Dec 14, 2023
1 parent f78313d commit 95ba9e6
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions content/guides/token-extensions/default-account-state.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
date: Dec 06, 2023
seoTitle: "Token Extensions: Default Account State"
title: How to use the Default Account State extension
description:
"A token creator may want to restrict who can access and use their token.
While several approaches exist, many involve an initial reliance on
centralized services. Considering that anyone can create a token account for a
given mint, the current solutions are not comprehensive."
"Configure all new Token Accounts to be frozen by default, then requiring all
tokens to be unfrozen by the authority before they can be usable."
keywords:
- token 2022
- token extensions
Expand All @@ -14,8 +13,6 @@ difficulty: beginner
tags:
- token 2022
- token extensions
altRoutes:
- /developers/guides/default-account-state
---

The `DefaultAccountState` extension provides the option to have all new Token
Expand Down Expand Up @@ -43,6 +40,14 @@ console.log(`My balance: ${balance / web3.LAMPORTS_PER_SOL} SOL`);
If it is your first time using Solana Playground, you'll first need to create a
Playground Wallet and fund the wallet with devnet SOL.

<Callout type="info">

If you do not have a Playground wallet, you may see a type error within the
editor on all declarations of `pg.wallet.publicKey`. This type error will clear
after you create a Playground wallet.

</Callout>

To get devnet SOL, run the `solana airdrop` command in the Playground's
terminal, or visit this [devnet faucet](https://faucet.solana.com/).

Expand Down

0 comments on commit 95ba9e6

Please sign in to comment.