<?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: Vyntura Digital</title>
    <description>The latest articles on DEV Community by Vyntura Digital (@vyntura-digital).</description>
    <link>https://dev.to/vyntura-digital</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%2F4249926%2Ff5c20691-d61d-465f-8954-ba87c1b26ca5.png</url>
      <title>DEV Community: Vyntura Digital</title>
      <link>https://dev.to/vyntura-digital</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vyntura-digital"/>
    <language>en</language>
    <item>
      <title>What an SPL Token Airdrop on Solana Really Costs (and Why Rent Is Most of It)</title>
      <dc:creator>Vyntura Digital</dc:creator>
      <pubDate>Tue, 17 Nov 2026 13:26:32 +0000</pubDate>
      <link>https://dev.to/vyntura-digital/what-an-spl-token-airdrop-on-solana-really-costs-and-why-rent-is-most-of-it-2p8i</link>
      <guid>https://dev.to/vyntura-digital/what-an-spl-token-airdrop-on-solana-really-costs-and-why-rent-is-most-of-it-2p8i</guid>
      <description>&lt;p&gt;Sending a token to one wallet on Solana costs a fraction of a cent. Sending it to 2,000 wallets can cost almost 6 SOL. Almost none of that is the network fee.&lt;/p&gt;

&lt;p&gt;I build &lt;a href="https://solana.airdropsender.com" rel="noopener noreferrer"&gt;AirdropSender.com&lt;/a&gt;, a multisender for SOL and SPL tokens, so I look at these numbers every day. This post explains where the cost comes from, what limits how many transfers fit in one transaction, and what to watch for if you write the script yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three costs
&lt;/h2&gt;

&lt;p&gt;An airdrop has three kinds of cost:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Rent&lt;/strong&gt; for token accounts that don't exist yet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network fees&lt;/strong&gt; for the transactions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A service fee&lt;/strong&gt;, if you use a tool instead of your own script.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For a list of wallets that have never held your token, rent is by far the largest.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rent: 0.002 SOL per new holder
&lt;/h2&gt;

&lt;p&gt;A wallet doesn't hold SPL tokens directly. It holds them in a token account, one per token. If the recipient has no account for your token yet, someone has to create it, and that someone is the sender.&lt;/p&gt;

&lt;p&gt;A token account takes 165 bytes, and an account must hold enough SOL to be rent-exempt. For 165 bytes that is 0.00203928 SOL. The sender pays it, and it stays in the recipient's token account. The recipient can get it back by closing the account.&lt;/p&gt;

&lt;p&gt;Two details:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Token-2022&lt;/strong&gt; accounts can be larger than 165 bytes when the mint uses extensions, so the rent can be higher.&lt;/li&gt;
&lt;li&gt;If the recipient &lt;strong&gt;already has&lt;/strong&gt; a token account for your mint, there is no rent at all.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That second point matters for planning. An airdrop to people who already hold your token costs a fraction of an airdrop to people who don't.&lt;/p&gt;

&lt;h2&gt;
  
  
  Network fees: almost nothing
&lt;/h2&gt;

&lt;p&gt;The base fee is 5,000 lamports (0.000005 SOL) per signature. A transaction that carries many transfers still has one signature from the sender, so batching makes this cost smaller still.&lt;/p&gt;

&lt;p&gt;Even at one transfer per transaction, 2,000 transfers would cost 0.01 SOL in base fees. With batching it is a small part of that. A priority fee comes on top when the network is busy, and it is usually small as well.&lt;/p&gt;

&lt;h2&gt;
  
  
  The numbers for 2,000 wallets
&lt;/h2&gt;

&lt;p&gt;Assume 2,000 recipients and none of them holds the token yet.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;th&gt;Calculation&lt;/th&gt;
&lt;th&gt;SOL&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Rent&lt;/td&gt;
&lt;td&gt;2,000 × 0.00203928&lt;/td&gt;
&lt;td&gt;4.08&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Network fees&lt;/td&gt;
&lt;td&gt;under 2,000 × 0.000005&lt;/td&gt;
&lt;td&gt;under 0.01&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Service fee (AirdropSender.com)&lt;/td&gt;
&lt;td&gt;1,000 × 0.001 + 1,000 × 0.00075&lt;/td&gt;
&lt;td&gt;1.75&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;about 5.8&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Rent is about 70% of the total. If all 2,000 recipients already held the token, the rent would be zero and the total would be about 1.75 SOL.&lt;/p&gt;

&lt;p&gt;With your own script you skip the service fee and pay the 4.08 SOL of rent plus network fees. What you take on instead is everything in the next sections.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why you can't put 2,000 transfers in one transaction
&lt;/h2&gt;

&lt;p&gt;A Solana transaction is limited to 1,232 bytes. Every account a transaction touches takes 32 bytes, and each recipient adds at least one account, or more when a token account has to be created. So only a limited number of transfers fit in one transaction.&lt;/p&gt;

&lt;p&gt;A multisender packs transfers into a transaction until it is full, then starts the next one. Here is the idea, with &lt;code&gt;@solana/spl-token&lt;/code&gt;:&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="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;createAssociatedTokenAccountIdempotentInstruction&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;createTransferCheckedInstruction&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;getAssociatedTokenAddressSync&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@solana/spl-token"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;instructionsFor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;recipient&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;PublicKey&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;bigint&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;destination&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;getAssociatedTokenAddressSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;recipient&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="c1"&gt;// Creates the token account if it is missing, does nothing if it exists&lt;/span&gt;
    &lt;span class="nf"&gt;createAssociatedTokenAccountIdempotentInstruction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="n"&gt;sender&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;destination&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;recipient&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mint&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="nf"&gt;createTransferCheckedInstruction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;destination&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sender&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;decimals&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="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;You add the instructions for one recipient at a time, serialize the transaction, and close the batch when the next recipient would push it over 1,232 bytes. The compute budget is the second limit: creating an account costs far more compute units than a transfer, so a batch with many new accounts needs a higher limit.&lt;/p&gt;

&lt;h2&gt;
  
  
  What goes wrong, and what a tool has to handle
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A transaction is all or nothing.&lt;/strong&gt; If one instruction in a batch fails, the whole batch fails and nobody in it receives anything. That is useful: you never have a half-sent batch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Not confirmed is not the same as failed.&lt;/strong&gt; A transaction is only valid for a short time, roughly a minute, because of the recent blockhash. If you don't see a confirmation in time, the transaction may still have landed. Sending that batch again without checking first can pay the same wallets twice. Look up the signature before you retry.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sending SOL to a wallet that doesn't exist yet.&lt;/strong&gt; A new system account needs at least 0.00089088 SOL to be rent-exempt. Send less than that to a brand-new wallet and the transfer fails, and it takes the rest of its batch with it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Wallets that aren't on the curve.&lt;/strong&gt; Some recipient addresses are program-derived addresses. The helper that derives the token account address rejects those unless you allow it explicitly, which is the &lt;code&gt;true&lt;/code&gt; in the snippet above.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Duplicates and invalid addresses.&lt;/strong&gt; A list of 2,000 lines pasted from a spreadsheet nearly always has a few. Validate before you build the first transaction.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to lower the cost
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Send to wallets that already hold the token when you can. No rent.&lt;/li&gt;
&lt;li&gt;Check how many recipients need a new token account before you fund the sending wallet, so you don't run out halfway.&lt;/li&gt;
&lt;li&gt;Remove exchange deposit addresses and wallets you know to be bots. Each one costs you 0.002 SOL for nothing.&lt;/li&gt;
&lt;li&gt;Test the whole flow on Devnet first.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Script or tool
&lt;/h2&gt;

&lt;p&gt;Writing the script is a good exercise, and for a one-off airdrop to a few hundred wallets it is not much work. The work is in the parts around it: packing batches to the byte limit, estimating compute, tracking each signature, deciding what is safe to retry, and producing a record of who received what.&lt;/p&gt;

&lt;p&gt;That is what &lt;a href="https://solana.airdropsender.com" rel="noopener noreferrer"&gt;AirdropSender.com&lt;/a&gt; does. It shows the full cost, including the rent for new token accounts, before you sign anything. If you want the steps, there is a guide: &lt;a href="https://airdropsender.com/guides/how-to-easily-airdrop-tokens-on-solana-with-solana-airdropsender" rel="noopener noreferrer"&gt;how to airdrop tokens on Solana&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you have run a large airdrop with your own script, I would like to hear what tripped you up.&lt;/p&gt;

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