<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sanket</title>
    <description>The latest articles on DEV Community by Sanket (@sankettt).</description>
    <link>https://dev.to/sankettt</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4252501%2F848da147-8de0-430f-93f3-7e600cee63b2.jpg</url>
      <title>DEV Community: Sanket</title>
      <link>https://dev.to/sankettt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sankettt"/>
    <language>en</language>
    <item>
      <title>How to Create a Solana Token: With Code (TypeScript CLI) or Without</title>
      <dc:creator>Sanket</dc:creator>
      <pubDate>Sat, 21 Nov 2026 12:34:04 +0000</pubDate>
      <link>https://dev.to/sankettt/how-to-create-a-solana-token-with-code-typescript-cli-or-without-lf3</link>
      <guid>https://dev.to/sankettt/how-to-create-a-solana-token-with-code-typescript-cli-or-without-lf3</guid>
      <description>&lt;p&gt;I created the same token twice on devnet this week. The classic SPL version cost 0.0163 SOL. The Token-2022 version cost 0.0043 SOL. Most of that gap is one 0.01 SOL fee that most tutorials skip.&lt;/p&gt;

&lt;p&gt;I have been building token tooling since late 2020, Solidity first and mostly Solana now. The question I still get most is the simple one: how do I create a Solana token that shows up in a wallet with a name, a symbol and a logo, and not as a bare mint address? My answer depends on whether you want to write code.&lt;/p&gt;

&lt;p&gt;If you just want the token, use &lt;a href="https://tokenry.tools/solana-token-creator" rel="noopener noreferrer"&gt;Tokenry's Solana Token Creator&lt;/a&gt;. You set the name, symbol, logo and supply, choose whether to revoke the mint and freeze authorities, and sign from your browser wallet. No code. (I build Tokenry, so that one is my own tool.)&lt;/p&gt;

&lt;p&gt;If you would rather write code, the rest of this post is for you. One TypeScript command creates the mint, the metadata, the supply and the optional revokes in a single transaction, on devnet by default. The code is in &lt;a href="https://github.com/TokenryTools/create-solana-token" rel="noopener noreferrer"&gt;the create-solana-token repo&lt;/a&gt;, and every cost in this post comes from my own devnet runs of it. (If a bare mint is all you need, the official &lt;a href="https://solana.com/docs/tokens/quickstart" rel="noopener noreferrer"&gt;CLI quickstart&lt;/a&gt; with &lt;code&gt;spl-token&lt;/code&gt; is shorter. It adds metadata as an optional Token-2022 step, but it has no Metaplex path and no cost breakdown.)&lt;/p&gt;

&lt;h2&gt;
  
  
  What the script does in one transaction
&lt;/h2&gt;

&lt;p&gt;For a classic SPL token, the script builds these instructions, in this order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create the mint account (82 bytes).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;InitializeMint2&lt;/code&gt;, with your wallet as mint and freeze authority.&lt;/li&gt;
&lt;li&gt;Metaplex &lt;code&gt;CreateV1&lt;/code&gt;, which creates the metadata account with the name, symbol and URI.&lt;/li&gt;
&lt;li&gt;Create your associated token account (idempotent).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;MintToChecked&lt;/code&gt; for the supply.&lt;/li&gt;
&lt;li&gt;Optional: &lt;code&gt;SetAuthority&lt;/code&gt; to null, once for minting and once for freezing.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;All of it goes into one v0 transaction. Before anything is signed, the script simulates the transaction and sets the compute unit limit to what the simulation used. If any program fails in the simulation, the run stops there and nothing gets signed or sent, so you never end up with a mint that exists but has no metadata. Here is the bit of &lt;code&gt;src/create-token.ts&lt;/code&gt; that does it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;  &lt;span class="c1"&gt;// Simulates the transaction (any program error stops here, before sending)&lt;/span&gt;
  &lt;span class="c1"&gt;// and sets the compute unit limit to what it really uses.&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;estimateAndSetLimits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;estimateAndSetResourceLimitsFactory&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;estimateResourceLimitsFactory&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;rpc&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;estimateAndSetLimits&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pricedMessage&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The order matters more than it looks. &lt;code&gt;CreateV1&lt;/code&gt; must run while your wallet is still the mint authority, so the revokes have to come last. I learned this the annoying way. The first time I scripted a Solana token with metadata end to end, in 2025 when I moved most of my work to Solana, I sent the mint, the revoke and the metadata as separate transactions. The metadata call failed because the mint authority was already gone, and I was left with a nameless token on devnet. Since then everything goes into one transaction, with the revoke at the end.&lt;/p&gt;

&lt;p&gt;With &lt;code&gt;--program token-2022&lt;/code&gt; the flow changes. There is no separate metadata account: the name, symbol and URI are written into the mint itself through the metadata pointer and token metadata extensions. The order is strict. &lt;code&gt;InitializeMetadataPointer&lt;/code&gt; must come before &lt;code&gt;InitializeMint2&lt;/code&gt; (see the &lt;a href="https://solana.com/developers/guides/token-extensions/metadata-pointer" rel="noopener noreferrer"&gt;metadata pointer guide&lt;/a&gt;), and &lt;code&gt;InitializeTokenMetadata&lt;/code&gt; comes after it and grows the account. The script creates the mint with space for the pointer only, but funds it with rent for the final size, because growing the account adds no lamports (&lt;a href="https://solana.com/docs/tokens/extensions/metadata" rel="noopener noreferrer"&gt;Token-2022 metadata docs&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Cost is only one input when you pick a program. This &lt;a href="https://tokenry.tools/blog/spl-token-vs-token-2022" rel="noopener noreferrer"&gt;comparison of SPL Token and Token-2022&lt;/a&gt; covers the rest.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup: Node, a throwaway keypair and devnet SOL
&lt;/h2&gt;

&lt;p&gt;You need Node.js 22 or newer and npm. I ran everything on Node 24.13.1 with npm 11.8.0. Clone the create-solana-token repo linked above, then install and typecheck:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; create-solana-token
npm install
npm run typecheck
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The typecheck runs &lt;code&gt;tsc --noEmit&lt;/code&gt; and should finish with no errors. These are the versions the repo pins, and they were also the latest on npm when I checked on 21 November 2026:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Package&lt;/th&gt;
&lt;th&gt;Version&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;a class="mentioned-user" href="https://dev.to/solana"&gt;@solana&lt;/a&gt;/kit&lt;/td&gt;
&lt;td&gt;8.6.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;a class="mentioned-user" href="https://dev.to/solana"&gt;@solana&lt;/a&gt;/sysvars&lt;/td&gt;
&lt;td&gt;8.6.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@solana-program/system&lt;/td&gt;
&lt;td&gt;0.16.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@solana-program/token&lt;/td&gt;
&lt;td&gt;0.18.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;@solana-program/token-2022&lt;/td&gt;
&lt;td&gt;0.20.1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;typescript / tsx&lt;/td&gt;
&lt;td&gt;7.0.2 / 4.23.15&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Next, a keypair. The script reads a keypair file that pays and signs: &lt;code&gt;--keypair &amp;lt;path&amp;gt;&lt;/code&gt;, then the &lt;code&gt;KEYPAIR_PATH&lt;/code&gt; variable, then &lt;code&gt;~/.config/solana/id.json&lt;/code&gt;. Use a throwaway keypair made only for devnet, never your main wallet. The repo's README says to make it with the Solana CLI, &lt;code&gt;solana-keygen new&lt;/code&gt;, and to keep keypair files out of git. The script reads the file locally and never uploads it. Do not paste its contents anywhere.&lt;/p&gt;

&lt;p&gt;Then devnet SOL. As of 21 November 2026, the public devnet RPC refuses airdrops. My request came back with HTTP 410 and "The RPC faucet is closed on this cluster. Request test SOL at &lt;a href="https://faucet.solana.com" rel="noopener noreferrer"&gt;https://faucet.solana.com&lt;/a&gt;". So use the &lt;a href="https://faucet.solana.com" rel="noopener noreferrer"&gt;devnet faucet&lt;/a&gt; in the browser: 2 requests every 8 hours by default, more if you sign in with GitHub. For scale, 0.05 devnet SOL covered both tokens in this post with plenty left.&lt;/p&gt;

&lt;p&gt;The default RPC endpoints are public and rate limited, and I got &lt;code&gt;HTTP error (429): Too Many Requests&lt;/code&gt; while setting up. If that happens, set &lt;code&gt;RPC_URL&lt;/code&gt; to your own endpoint. If &lt;code&gt;RPC_URL&lt;/code&gt; points at a different cluster than your flags, the script stops before doing anything, which has saved me from my own typos.&lt;/p&gt;

&lt;h2&gt;
  
  
  The metadata JSON
&lt;/h2&gt;

&lt;p&gt;On chain, the token carries a name, a symbol and a URI. The URI points to a JSON file with everything else. This is the repo's &lt;code&gt;examples/metadata.json&lt;/code&gt;, with the image URL swapped for a placeholder because you will host your own:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Demo Token"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"symbol"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"DEMO"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"A test token created on devnet with create-solana-token."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"image"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;URL of your token image&amp;gt;"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The on-chain name and symbol come from your &lt;code&gt;--name&lt;/code&gt; and &lt;code&gt;--symbol&lt;/code&gt; flags, and the JSON should repeat them exactly. Host the file, and the image, at a public URL that will still be there in a year.&lt;/p&gt;

&lt;p&gt;The repetition matters because Phantom &lt;a href="https://docs.phantom.com/best-practices/tokens/home-tab-fungibles" rel="noopener noreferrer"&gt;prioritizes on-chain metadata&lt;/a&gt; that follows the Token Metadata Standard. When a name and symbol exist both on chain and in the JSON, the on-chain ones win. If your flags say one thing and your JSON says another, people see a mix and get confused.&lt;/p&gt;

&lt;p&gt;Mind the limits. Metaplex allows a name of 32 bytes, a symbol of 10 bytes and a URI of 200 bytes. The limits count bytes, so a name with non-ASCII characters hits them sooner than its length suggests. The script checks before it connects to anything:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Error: --symbol is 12 bytes; Metaplex metadata allows at most 10&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Run it
&lt;/h2&gt;

&lt;p&gt;The classic SPL token with Metaplex metadata, 1,000,000 supply, default 9 decimals. Replace &lt;code&gt;&amp;lt;URL of your metadata.json&amp;gt;&lt;/code&gt; with the URL of your hosted JSON, and drop the angle brackets: bash reads them as redirection. The keypair path is mine; use the path to your own throwaway file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run create -- --keypair ../keys/devnet-throwaway-keypair.json --name &lt;span class="s2"&gt;"Demo Token"&lt;/span&gt; --symbol DEMO --uri &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;URL of your metadata.json&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; --supply 1000000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My run, trimmed (npm header, URI line and links cut):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Creating a token on devnet

  Cluster         devnet (api.devnet.solana.com)
  Program         Token (classic SPL) with Metaplex metadata
  Name            Demo Token
  Symbol          DEMO
  ...
  Decimals        9
  Supply          1,000,000 to CuapNURrm3jsqWsrLWzCw8q2EwCfRwKpmYGRH8cLRjBS
  Revoke mint     no
  Revoke freeze   no
  Wallet balance  0.05 SOL
  Estimated cost  0.01629904 SOL

Sending 2Xg3kCgEcVpCwy6AXHjomubrGzE2rPAaQyE3a5t1QQAUpcz4xrvfXc883GgXnom9agPXpbwbXGdL91QP9B1MdSmh ...

Token created on devnet

  Program                    Token (classic SPL) with Metaplex metadata
  Mint                       5wQ7Hk7zBg7bB8ubZALkMiBtBUahFQZw8VGkCLC3cDGs
  Token account              B2z3NodxA5QRNGufitghkYsTZjtnMTY2cNbbRSxToG73
  Metadata account           3aLMZcgaLWPY7ATciYNF1XLHJNtRPrJgiVEm39cEQXfy
  Supply                     1,000,000 DEMO
  Decimals                   9
  Mint authority             CuapNURrm3jsqWsrLWzCw8q2EwCfRwKpmYGRH8cLRjBS
  Freeze authority           CuapNURrm3jsqWsrLWzCw8q2EwCfRwKpmYGRH8cLRjBS
  Metadata update authority  CuapNURrm3jsqWsrLWzCw8q2EwCfRwKpmYGRH8cLRjBS (metadata can still be edited)

Cost
  Mint account rent   0.0010668 SOL
  Token account rent  0.00148844 SOL
  Metadata account    0.0137338 SOL
  Transaction fee     0.00001 SOL
  Total spent         0.01629904 SOL
...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The estimate and the final cost match to the lamport. You can check the &lt;a href="https://explorer.solana.com/tx/2Xg3kCgEcVpCwy6AXHjomubrGzE2rPAaQyE3a5t1QQAUpcz4xrvfXc883GgXnom9agPXpbwbXGdL91QP9B1MdSmh?cluster=devnet" rel="noopener noreferrer"&gt;transaction on Solana Explorer&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Now the Token-2022 version, this time with both revokes. The output below starts at the result; the plan part looks like the one above:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run create -- --keypair ../keys/devnet-throwaway-keypair.json --program token-2022 --name &lt;span class="s2"&gt;"Demo Token"&lt;/span&gt; --symbol DEMO --uri &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;URL of your metadata.json&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; --supply 1000000 --revoke-mint --revoke-freeze
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;...
Token created on devnet

  Program                    Token-2022 with the metadata extension
  Mint                       4bkjvqa52bFWRG8wwtdm5b8YybZM4k2PgWyjtr2TEKzQ
  Token account              CfhNZ4MGYw4bz9wb7wyEzmfTQBuacDKk5EfuazbuVKTs
  Supply                     1,000,000 DEMO
  Decimals                   9
  Mint authority             none (revoked)
  Freeze authority           none (revoked)
  Metadata update authority  CuapNURrm3jsqWsrLWzCw8q2EwCfRwKpmYGRH8cLRjBS (metadata can still be edited)

Cost
  Mint account rent   0.00281432 SOL
  Token account rent  0.00151384 SOL
  Transaction fee     0.00001 SOL
  Total spent         0.00433816 SOL
...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is no metadata account line this time, because the metadata lives on the mint. Here is the &lt;a href="https://explorer.solana.com/tx/4eWvKV5foUDizb6es23zUhbvhRab9ENr4MGkxmAGDba993QWGidAgTRuGXnYDmvMHo2VSGe9752S9CJScz2nAv9r?cluster=devnet" rel="noopener noreferrer"&gt;Token-2022 transaction&lt;/a&gt;: create, metadata, mint and both revokes in one go.&lt;/p&gt;

&lt;p&gt;The flags you will actually use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;--decimals&lt;/code&gt;: 0 to 19, default 9.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--supply&lt;/code&gt;: in whole tokens, minted to your wallet.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--program&lt;/code&gt;: &lt;code&gt;token&lt;/code&gt; (default) or &lt;code&gt;token-2022&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--revoke-mint&lt;/code&gt; and &lt;code&gt;--revoke-freeze&lt;/code&gt;: permanent, more on that below.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--priority-fee&lt;/code&gt;: micro-lamports per compute unit, default 0.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--mainnet&lt;/code&gt;: use mainnet instead of devnet.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I did not run mainnet for this post. With &lt;code&gt;--mainnet&lt;/code&gt; the script prints "This spends real SOL on mainnet. Revoked authorities can never be restored." and waits for you to type &lt;code&gt;yes&lt;/code&gt;. It refuses to run at all when its input is not a terminal, so a script or a pipe cannot answer for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the SOL goes (as of November 2026)
&lt;/h2&gt;

&lt;p&gt;Measured on devnet on 21 November 2026, from the payer's balance before and after each transaction. Devnet and mainnet returned the same rent minimums that day.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fidrh302cpqaj3tbelepx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fidrh302cpqaj3tbelepx.png" title="Rent at 5,080 lamports per byte. Rent is a deposit; the Metaplex fee is not." alt="Cost of creating a Solana token on devnet: classic SPL with Metaplex 0.01629904 SOL, Token-2022 with metadata 0.00433816 SOL" width="800" height="629"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Rent is (account bytes + 128) x 5,080 lamports. The 82-byte mint: 210 x 5,080 = 1,066,800 lamports, or 0.0010668 SOL. Rent is a deposit that comes back when an account is closed. In this setup the mint account cannot be closed, so its rent stays locked. The token account rent comes back if you empty and close that account.&lt;/p&gt;

&lt;p&gt;The biggest line of the classic bill is the Metaplex metadata account: 0.0137338 SOL. Only 0.0037338 SOL of that is rent for 607 bytes. The other 0.01 SOL is the &lt;a href="https://metaplex.com/docs/protocol-fees" rel="noopener noreferrer"&gt;Metaplex protocol fee&lt;/a&gt; for a Token Metadata Create, and that one fee is more than 60% of the total. Token-2022 skips both the separate account and the fee. Its mint is bigger (426 bytes in my run) because it carries the metadata, and its rent grows by 0.00000508 SOL for every byte of name, symbol and URI. Even so, the whole Token-2022 token cost a little over a quarter of the classic one.&lt;/p&gt;

&lt;p&gt;The network fee is the &lt;a href="https://solana.com/docs/core/fees/fee-structure" rel="noopener noreferrer"&gt;base fee&lt;/a&gt; of 5,000 lamports per signature. This transaction has two signatures (your wallet and the new mint), so 0.00001 SOL. A priority fee is ceil(compute unit price x compute unit limit / 1,000,000) lamports, charged on the requested limit, not on what was used. Since the script sets the limit to the simulated usage, the two match. My runs used 61,028 compute units (classic) and 34,618 (Token-2022), with the default price of 0. The revoke flags added nothing to the bill.&lt;/p&gt;

&lt;p&gt;If older guides show higher numbers, they were right for their time. &lt;a href="https://github.com/solana-foundation/solana-improvement-documents/blob/main/proposals/0437-incremental-rent-reduction.md" rel="noopener noreferrer"&gt;SIMD-0437&lt;/a&gt; cuts the rent rate in steps: 6,960, then 6,333, then 5,080 lamports per byte, with more steps planned down to 696. When I read the rent on mainnet on 21 November 2026, it was already 5,080 lamports per byte (see Solana's &lt;a href="https://solana.com/upgrades/reduced-rent" rel="noopener noreferrer"&gt;reduced rent page&lt;/a&gt;). Rent will drop again when the next steps activate, so treat every number here as dated.&lt;/p&gt;

&lt;h2&gt;
  
  
  Revoking is permanent, and what it does not lock
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;--revoke-mint&lt;/code&gt; and &lt;code&gt;--revoke-freeze&lt;/code&gt; set those authorities to null in the same transaction. No instruction brings them back. After &lt;code&gt;--revoke-mint&lt;/code&gt;, the supply is fixed forever, and after &lt;code&gt;--revoke-freeze&lt;/code&gt;, nobody can freeze a holder's account.&lt;/p&gt;

&lt;p&gt;In my experience from the BNB Chain years, buyers checked whether the owner could still mint before they looked at anything else. On Solana that check is the mint authority, so I revoke it on launch tokens. But I still run the exact command on devnet first, because there is no undo.&lt;/p&gt;

&lt;p&gt;Neither flag locks the name, symbol or URI. The classic path creates the Metaplex metadata as mutable, with your wallet as update authority. On Token-2022 the metadata update authority is your wallet too. You can see it in the output above: both authorities revoked, and still "metadata can still be edited". If you want the metadata locked as well, that is a separate step, covered in this guide on &lt;a href="https://tokenry.tools/blog/how-to-revoke-update-authority-on-solana" rel="noopener noreferrer"&gt;revoking update authority on Solana&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Errors I would expect you to hit
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Airdrop refused (410) or 429.&lt;/strong&gt; See Setup: use the web faucet or your own &lt;code&gt;RPC_URL&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Not enough SOL.&lt;/strong&gt; The script compares your balance with the estimate before it sends anything. On a fresh, empty keypair I got this, with nothing sent:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Error: Not enough SOL: need about 0.01629904 SOL, wallet has 0 SOL. Get devnet SOL at https://faucet.solana.com.
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;No name or logo in the wallet.&lt;/strong&gt; Check that the JSON URL loads in a browser, that the &lt;code&gt;image&lt;/code&gt; URL inside it loads too, and that the name and symbol in the JSON match your flags.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;A Token-2022 rent error in your own code.&lt;/strong&gt; If you write the metadata yourself, fund the mint for its final size up front. Growing the account does not add lamports. The repo already does this.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Bad flags.&lt;/strong&gt; These fail before any network call, for example &lt;code&gt;Error: --decimals must be a whole number from 0 to 19&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I would do next
&lt;/h2&gt;

&lt;p&gt;Run both programs on devnet with your real name, symbol and JSON. Open both mints in the explorer and in your wallet, compare what you see, then decide. Only after that add &lt;code&gt;--mainnet&lt;/code&gt;. The code is all in &lt;a href="https://github.com/TokenryTools/create-solana-token" rel="noopener noreferrer"&gt;the create-solana-token repo&lt;/a&gt; if you want to read it before you trust it. If you go the no-code way instead, this &lt;a href="https://tokenry.tools/blog/how-to-create-solana-token" rel="noopener noreferrer"&gt;walkthrough of creating a Solana token&lt;/a&gt; shows every screen.&lt;/p&gt;

&lt;p&gt;For a new token today, would you go with classic SPL plus Metaplex, or Token-2022 with the metadata extension? I am curious what decides it for you.&lt;/p&gt;

</description>
      <category>solana</category>
      <category>web3</category>
      <category>typescript</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
