<?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: 100 Days of Solana</title>
    <description>The latest articles on DEV Community by 100 Days of Solana (@100daysofsolana).</description>
    <link>https://dev.to/100daysofsolana</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.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F12963%2F62b6ce6d-db04-444b-88d1-4bea32484faa.png</url>
      <title>DEV Community: 100 Days of Solana</title>
      <link>https://dev.to/100daysofsolana</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/100daysofsolana"/>
    <language>en</language>
    <item>
      <title>The Rust You Actually Need to Write Your First Anchor Program</title>
      <dc:creator>Vincent Jande</dc:creator>
      <pubDate>Sat, 13 Jun 2026 12:25:48 +0000</pubDate>
      <link>https://dev.to/100daysofsolana/the-rust-you-actually-need-to-write-your-first-anchor-program-4klc</link>
      <guid>https://dev.to/100daysofsolana/the-rust-you-actually-need-to-write-your-first-anchor-program-4klc</guid>
      <description>&lt;p&gt;If you have made it this far in 100 Days of Solana, you have been working in JavaScript and on the command line. You have been calling RPC methods, building instructions, signing transactions, and reading and writing account data in JavaScript, and most recently minting and sending tokens and NFTs from the CLI. Either way, you have been driving Solana with tools that let you assign a value and move on with your life. Soon the ground shifts. You are going to open a file called &lt;code&gt;lib.rs&lt;/code&gt;, and it is going to be Rust, and for a day or two it is going to feel like you forgot how to program.&lt;/p&gt;

&lt;p&gt;That feeling is normal, it is temporary, and it is not a sign you are in the wrong place. Here is the thing nobody says out loud: you do not need to learn all of Rust to write Solana programs. Rust is a big language with a steep reputation, but the slice of it that shows up in an Anchor program is small and repetitive. You will see the same handful of patterns on almost every line. Learn those patterns and the wall turns back into a floor.&lt;/p&gt;

&lt;p&gt;This post is that handful. Not a Rust course, just the parts you need to read your first Anchor program and understand what every line is doing. Next week we start Arc 9, the Anchor introduction, where this all becomes real. This week is about making the language stop being scary before you get there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it feels like a wall
&lt;/h2&gt;

&lt;p&gt;JavaScript is dynamically typed and garbage collected. You write &lt;code&gt;const x = 5&lt;/code&gt;, you never tell anyone it is a number, and when you are done with it the runtime quietly cleans up. The language trusts you and sorts out the consequences at runtime, which is why a typo surfaces as &lt;code&gt;undefined is not a function&lt;/code&gt; three minutes into a demo.&lt;/p&gt;

&lt;p&gt;Rust is the opposite philosophy. It is compiled and statically typed, so every value has a type the compiler knows about before the program ever runs, and it has no garbage collector, so it tracks who is responsible for every piece of memory through a system called ownership. The trade is blunt: Rust makes you front-load the thinking. The compiler refuses to build until the types line up and the ownership rules are satisfied. That is why the first day feels slow. You are paying upfront for something JavaScript billed you for later, usually in production.&lt;/p&gt;

&lt;p&gt;The reassuring part, and this is real, is that the Rust compiler is the most helpful error reporter you have ever worked with. A JavaScript bug explodes at runtime with a vague message and no map. A Rust bug stops at compile time with an error that names the file, the line, the types involved, and very often the exact fix to type. You will spend the Anchor arc reading compiler errors. Get good at reading them slowly instead of panicking at the red text, because nine times out of ten the answer is sitting right there in the message.&lt;/p&gt;

&lt;h2&gt;
  
  
  The anatomy of the file you are about to meet
&lt;/h2&gt;

&lt;p&gt;Before the individual pieces, here is the shape of a minimal Anchor program, taken straight from the &lt;a href="https://www.anchor-lang.com/docs/basics/program-structure" rel="noopener noreferrer"&gt;Anchor program structure docs&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nn"&gt;anchor_lang&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nn"&gt;prelude&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nd"&gt;declare_id!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"11111111111111111111111111111111"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nd"&gt;#[program]&lt;/span&gt;
&lt;span class="k"&gt;mod&lt;/span&gt; &lt;span class="n"&gt;hello_anchor&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="k"&gt;super&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;pub&lt;/span&gt; &lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;initialize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Context&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;Initialize&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;u64&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Result&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="py"&gt;.accounts.new_account.data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nd"&gt;msg!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Changed data to: {}!"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="nf"&gt;Ok&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="nd"&gt;#[derive(Accounts)]&lt;/span&gt;
&lt;span class="k"&gt;pub&lt;/span&gt; &lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="n"&gt;Initialize&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;'info&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nd"&gt;#[account(init,&lt;/span&gt; &lt;span class="nd"&gt;payer&lt;/span&gt; &lt;span class="nd"&gt;=&lt;/span&gt; &lt;span class="nd"&gt;signer,&lt;/span&gt; &lt;span class="nd"&gt;space&lt;/span&gt; &lt;span class="nd"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt; &lt;span class="err"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="nd"&gt;)]&lt;/span&gt;
    &lt;span class="k"&gt;pub&lt;/span&gt; &lt;span class="n"&gt;new_account&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Account&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;'info&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;NewAccount&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nd"&gt;#[account(mut)]&lt;/span&gt;
    &lt;span class="k"&gt;pub&lt;/span&gt; &lt;span class="n"&gt;signer&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Signer&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;'info&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="k"&gt;pub&lt;/span&gt; &lt;span class="n"&gt;system_program&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Program&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;'info&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nd"&gt;#[account]&lt;/span&gt;
&lt;span class="k"&gt;pub&lt;/span&gt; &lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="n"&gt;NewAccount&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;u64&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;Every Anchor program you write next week is a variation on those four blocks. The rest of this post walks through the Rust you need to read them without flinching.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. &lt;code&gt;use&lt;/code&gt; and the import line
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nn"&gt;anchor_lang&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nn"&gt;prelude&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the Rust version of an import. &lt;code&gt;use&lt;/code&gt; brings names into scope so you do not have to write the full path every time, and the &lt;code&gt;*&lt;/code&gt; is a glob that pulls in everything from Anchor's &lt;code&gt;prelude&lt;/code&gt;, a curated bundle of the types and macros nearly every program needs. It is the same instinct as importing from a package in JavaScript, just with a &lt;code&gt;::&lt;/code&gt; path separator instead of a dot and slashes. When you later see errors about a type "not found in this scope," a missing &lt;code&gt;use&lt;/code&gt; line is the usual cause. You can read more in the &lt;a href="https://doc.rust-lang.org/book/ch07-00-managing-growing-projects-with-packages-crates-and-modules.html" rel="noopener noreferrer"&gt;Rust book chapter on packages and modules&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Macros: the lines with &lt;code&gt;!&lt;/code&gt; and &lt;code&gt;#[...]&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;This is the single biggest "what am I looking at" moment for a JavaScript developer, so it gets the most space.&lt;/p&gt;

&lt;p&gt;Rust has macros, which are code that writes code at compile time. They are not functions. You can spot them two ways. A &lt;code&gt;!&lt;/code&gt; after a name, like &lt;code&gt;declare_id!(...)&lt;/code&gt;, &lt;code&gt;msg!(...)&lt;/code&gt;, or &lt;code&gt;require!(...)&lt;/code&gt;, means a macro call. And the bracketed attributes sitting above things, like &lt;code&gt;#[program]&lt;/code&gt;, &lt;code&gt;#[derive(Accounts)]&lt;/code&gt;, and &lt;code&gt;#[account]&lt;/code&gt;, are also macros, the attribute kind, that transform the item directly below them.&lt;/p&gt;

&lt;p&gt;Why this matters: Anchor is mostly macros. The whole point of the framework is that those attributes expand, at compile time, into the hundreds of lines of account-validation and serialization boilerplate that a raw Solana program makes you write by hand. The &lt;a href="https://www.anchor-lang.com/docs/basics/program-structure" rel="noopener noreferrer"&gt;Anchor docs&lt;/a&gt; describe the four you will see constantly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;declare_id!&lt;/code&gt; sets your program's on-chain address.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;#[program]&lt;/code&gt; marks the module that holds your instruction handlers. Each public function inside it becomes a callable instruction.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;#[derive(Accounts)]&lt;/code&gt; goes on a struct to declare the list of accounts an instruction needs, and generates the validation for them.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;#[account]&lt;/code&gt; goes on a struct to mark it as a custom account type your program stores data in. Among other things it stamps an 8-byte discriminator on the account so the program can later prove the account is really one of its own.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You do not need to know how to write a macro. You need to recognize that when you see &lt;code&gt;#[derive(Accounts)]&lt;/code&gt;, an enormous amount of code you did not write is being generated for you, and that this is the framework doing its job. Treat the attributes as configuration you are declaring, not logic you are reading. The &lt;a href="https://doc.rust-lang.org/book/ch20-05-macros.html" rel="noopener noreferrer"&gt;Rust book's macro chapter&lt;/a&gt; is there if you get curious, but it is genuinely optional for the Anchor arc.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Structs: your data shapes
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="nd"&gt;#[account]&lt;/span&gt;
&lt;span class="k"&gt;pub&lt;/span&gt; &lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="n"&gt;NewAccount&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;u64&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;A &lt;code&gt;struct&lt;/code&gt; is just a named bundle of fields, the same idea as a plain JavaScript object with a fixed shape, except the shape is declared and the compiler enforces it. &lt;code&gt;NewAccount&lt;/code&gt; has one field, &lt;code&gt;data&lt;/code&gt;, of type &lt;code&gt;u64&lt;/code&gt;, an unsigned 64-bit integer. You will define a struct for every kind of account your program stores, and another struct for every instruction's account list (those are the &lt;code&gt;#[derive(Accounts)]&lt;/code&gt; ones). When you read an Anchor program, structs are where you learn what data exists and what each instruction touches.&lt;/p&gt;

&lt;p&gt;A note on number types, because JavaScript hides this from you. JavaScript has one &lt;code&gt;number&lt;/code&gt;. Rust makes you pick: &lt;code&gt;u64&lt;/code&gt; is an unsigned (non-negative) 64-bit integer, &lt;code&gt;i64&lt;/code&gt; is signed, &lt;code&gt;u8&lt;/code&gt; is a byte, and so on. On Solana, &lt;code&gt;u64&lt;/code&gt; is everywhere because token amounts and counts are 64-bit. Picking the type is part of declaring your data, and it is why a counter's field is &lt;code&gt;count: u64&lt;/code&gt; and not just "a number."&lt;/p&gt;

&lt;h2&gt;
  
  
  4. &lt;code&gt;pub&lt;/code&gt;: who can see this
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;pub&lt;/code&gt; means public. By default everything in Rust is private to its module, and &lt;code&gt;pub&lt;/code&gt; opts an item into being visible outside it. In Anchor you will see &lt;code&gt;pub fn&lt;/code&gt; on instruction handlers (the framework needs to call them from outside the module) and &lt;code&gt;pub&lt;/code&gt; on struct fields you want readable. It is access control at the language level, closer to &lt;code&gt;export&lt;/code&gt; in JavaScript modules than to anything in a plain object.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Functions and the return type
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;pub&lt;/span&gt; &lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;initialize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Context&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;Initialize&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;u64&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Result&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// ...&lt;/span&gt;
    &lt;span class="nf"&gt;Ok&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;&lt;code&gt;fn&lt;/code&gt; declares a function. The parameters list their types after a colon, &lt;code&gt;data: u64&lt;/code&gt;, the same "name then type" order you have already seen in the struct. The part that is new is &lt;code&gt;-&amp;gt; Result&amp;lt;()&amp;gt;&lt;/code&gt;, the return type, which leads straight into the most important Rust concept for the week ahead.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. &lt;code&gt;Result&lt;/code&gt;, &lt;code&gt;Ok&lt;/code&gt;, and the &lt;code&gt;?&lt;/code&gt; operator: error handling without try/catch
&lt;/h2&gt;

&lt;p&gt;JavaScript handles errors by throwing and catching. Something fails, it throws, and somewhere up the stack a &lt;code&gt;try/catch&lt;/code&gt; maybe deals with it, or maybe it crashes. Nothing in the type system forces you to handle it.&lt;/p&gt;

&lt;p&gt;Rust has no exceptions. Instead, a function that can fail returns a &lt;code&gt;Result&lt;/code&gt;, a type that is either &lt;code&gt;Ok(value)&lt;/code&gt; for success or &lt;code&gt;Err(error)&lt;/code&gt; for failure. Every Anchor instruction handler returns &lt;code&gt;Result&amp;lt;()&amp;gt;&lt;/code&gt;, which reads as "this either succeeds with nothing meaningful to return, the empty &lt;code&gt;()&lt;/code&gt;, or it fails with an error." That is why every successful handler ends with &lt;code&gt;Ok(())&lt;/code&gt;: you are explicitly returning the success case. The &lt;a href="https://www.anchor-lang.com/docs/basics/program-structure" rel="noopener noreferrer"&gt;Anchor docs&lt;/a&gt; note that all Anchor instruction handlers return this &lt;code&gt;Result&lt;/code&gt; type.&lt;/p&gt;

&lt;p&gt;The companion to &lt;code&gt;Result&lt;/code&gt; is the &lt;code&gt;?&lt;/code&gt; operator, and it is worth learning early because it is everywhere. When you call something that returns a &lt;code&gt;Result&lt;/code&gt; and write a &lt;code&gt;?&lt;/code&gt; after it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;counter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;something_that_can_fail&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;it means "if this is &lt;code&gt;Ok&lt;/code&gt;, unwrap the value and keep going; if it is &lt;code&gt;Err&lt;/code&gt;, stop this function right now and return that error to the caller." It is the same job a &lt;code&gt;try/catch&lt;/code&gt; does, compressed into one character, and it is how Anchor programs bubble failures up to the runtime cleanly. When you see &lt;code&gt;?&lt;/code&gt;, read it as "this line might bail out early, and that is intentional."&lt;/p&gt;

&lt;p&gt;You will also meet &lt;code&gt;Option&lt;/code&gt;, the cousin of &lt;code&gt;Result&lt;/code&gt;: it is &lt;code&gt;Some(value)&lt;/code&gt; or &lt;code&gt;None&lt;/code&gt;, and it is how Rust represents "this might be absent" instead of JavaScript's &lt;code&gt;null&lt;/code&gt; or &lt;code&gt;undefined&lt;/code&gt;. The reason Rust almost never has null-pointer surprises is that absence is a type you are forced to handle, not a landmine.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. References and &lt;code&gt;&amp;amp;mut&lt;/code&gt;: the ownership stuff
&lt;/h2&gt;

&lt;p&gt;Here is the concept with no JavaScript equivalent, and the one that produces the most head-scratching. Rust tracks ownership of data. Every value has one owner, and when you want to let other code use a value without handing over ownership, you lend it out with a reference, written &lt;code&gt;&amp;amp;&lt;/code&gt;. A plain &lt;code&gt;&amp;amp;&lt;/code&gt; is a read-only borrow. &lt;code&gt;&amp;amp;mut&lt;/code&gt; is a mutable borrow, meaning "I am lending you this and you are allowed to change it."&lt;/p&gt;

&lt;p&gt;You will see this constantly in handlers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;counter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="k"&gt;mut&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="py"&gt;.accounts.counter&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;counter&lt;/span&gt;&lt;span class="py"&gt;.count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read &lt;code&gt;&amp;amp;mut ctx.accounts.counter&lt;/code&gt; as "get a mutable borrow of the counter account so I can write to it." Without &lt;code&gt;&amp;amp;mut&lt;/code&gt;, you would have a read-only view and the compiler would reject the assignment. The rule the compiler enforces, and the source of most early borrow-checker errors, is that you can have many readers or one writer, but not both at once. That sounds restrictive until you realize it is the rule that makes whole categories of bugs impossible.&lt;/p&gt;

&lt;p&gt;For the Anchor arc you do not need the deep theory. You need to recognize that &lt;code&gt;&amp;amp;&lt;/code&gt; means "borrowed, look but do not take," &lt;code&gt;&amp;amp;mut&lt;/code&gt; means "borrowed, allowed to change," and that when the compiler complains about borrowing it is protecting you from two pieces of code stepping on the same data. When you genuinely want to understand it, the &lt;a href="https://doc.rust-lang.org/book/ch04-00-understanding-ownership.html" rel="noopener noreferrer"&gt;ownership chapter of the Rust book&lt;/a&gt; is the clearest explanation written, and the &lt;code&gt;Pubkey&lt;/code&gt; types being small and &lt;code&gt;Copy&lt;/code&gt; (cheap to duplicate, so you often pass them by value) is a footnote you will appreciate later.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Custom errors with enums
&lt;/h2&gt;

&lt;p&gt;When your program needs to reject something with a meaningful reason, you define an error type as an &lt;code&gt;enum&lt;/code&gt;, a type that is one of a fixed set of named variants:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="nd"&gt;#[error_code]&lt;/span&gt;
&lt;span class="k"&gt;pub&lt;/span&gt; &lt;span class="k"&gt;enum&lt;/span&gt; &lt;span class="n"&gt;CounterError&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nd"&gt;#[msg(&lt;/span&gt;&lt;span class="s"&gt;"The counter has reached its maximum value."&lt;/span&gt;&lt;span class="nd"&gt;)]&lt;/span&gt;
    &lt;span class="n"&gt;Overflow&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;An &lt;code&gt;enum&lt;/code&gt; in Rust is more powerful than a JavaScript constant list, but for now read it as "a closed set of named options." The &lt;code&gt;#[error_code]&lt;/code&gt; attribute is Anchor wiring it into the program's error system, and the &lt;code&gt;#[msg(...)]&lt;/code&gt; lines are the human-readable strings that show up in logs when that error fires. You then raise one with the &lt;code&gt;require!&lt;/code&gt; macro or by returning &lt;code&gt;Err(...)&lt;/code&gt;. The &lt;a href="https://www.anchor-lang.com/docs/features/errors" rel="noopener noreferrer"&gt;Anchor errors guide&lt;/a&gt; covers the full pattern, and you will use it the moment your program needs to say no to bad input.&lt;/p&gt;

&lt;h2&gt;
  
  
  Putting it together
&lt;/h2&gt;

&lt;p&gt;Read that minimal program one more time and notice you can now name every piece. &lt;code&gt;use&lt;/code&gt; pulls in Anchor. &lt;code&gt;declare_id!&lt;/code&gt; is a macro setting the address. &lt;code&gt;#[program]&lt;/code&gt; is an attribute macro marking the handler module. &lt;code&gt;initialize&lt;/code&gt; is a public function taking a &lt;code&gt;Context&lt;/code&gt; and some data, returning a &lt;code&gt;Result&lt;/code&gt;, ending in &lt;code&gt;Ok(())&lt;/code&gt;. The &lt;code&gt;#[derive(Accounts)]&lt;/code&gt; struct declares the accounts. The &lt;code&gt;#[account]&lt;/code&gt; struct declares the stored data shape, with a &lt;code&gt;u64&lt;/code&gt; field. None of it is mysterious anymore. It is the same eight ideas, arranged.&lt;/p&gt;

&lt;p&gt;That is the whole trick this week. You are not learning Rust the way a systems programmer learns Rust. You are learning to read a specific, repetitive dialect of it, and the vocabulary is small: imports, macros, structs, &lt;code&gt;pub&lt;/code&gt;, functions, &lt;code&gt;Result&lt;/code&gt; and &lt;code&gt;?&lt;/code&gt;, references, and enums. Every program in the arc ahead is built from those.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to actually get through the week
&lt;/h2&gt;

&lt;p&gt;A few habits that will save you real time.&lt;/p&gt;

&lt;p&gt;Read the compiler errors top to bottom, slowly. Rust errors are long because they are thorough, not because they are angry. The first error is usually the real one; later errors are often just fallout. Fix the top one, recompile, repeat.&lt;/p&gt;

&lt;p&gt;Compile early and often. Do not write thirty lines and then build. Write a few, run &lt;code&gt;anchor build&lt;/code&gt;, see if it is happy, continue. Short feedback loops turn a scary language into a conversation.&lt;/p&gt;

&lt;p&gt;When the borrow checker fights you, stop and ask who owns this and who is borrowing it, rather than randomly adding and removing &lt;code&gt;&amp;amp;&lt;/code&gt; until it builds. The error message almost always tells you which rule you broke.&lt;/p&gt;

&lt;p&gt;And keep one tab open on the &lt;a href="https://www.anchor-lang.com/docs/basics/program-structure" rel="noopener noreferrer"&gt;Anchor program structure page&lt;/a&gt; and one on the &lt;a href="https://doc.rust-lang.org/book/" rel="noopener noreferrer"&gt;Rust book&lt;/a&gt;. You will not read either cover to cover. You will look up exactly the thing in front of you, which is the right way to learn a language you are using rather than studying.&lt;/p&gt;

&lt;p&gt;Next week the challenges move into Arc 9, the Anchor introduction, and these blog posts move with them. We leave the language topic behind here, not the program itself, and dig into Anchor properly: how accounts really work, what a Program Derived Address is and why it changes everything, and how the constraint system turns a struct into a security model. The daily challenges keep going as always; it is just this post's focus on the Rust language that wraps up today. For now, the goal is smaller and more important. Open &lt;code&gt;lib.rs&lt;/code&gt;, recognize the pieces, and let the compiler teach you. You already did the hard part by getting here.&lt;/p&gt;

&lt;p&gt;And if you have not joined the challenge yet, this is the moment. We are about to start writing real Solana programs, which is the part everything so far has been building toward. Jump in at &lt;a href="https://mlh.link/solana-100" rel="noopener noreferrer"&gt;mlh.link/solana-100&lt;/a&gt; and build it with us.&lt;/p&gt;

</description>
      <category>100daysofsolana</category>
      <category>web3</category>
      <category>learning</category>
      <category>programming</category>
    </item>
    <item>
      <title>Arc 5 Catch-Up: Solana Token Fundamentals Explained for Web2 Developers</title>
      <dc:creator>Matthew Revell</dc:creator>
      <pubDate>Mon, 08 Jun 2026 12:21:27 +0000</pubDate>
      <link>https://dev.to/100daysofsolana/arc-5-catch-up-solana-token-fundamentals-explained-for-web2-developers-3hfn</link>
      <guid>https://dev.to/100daysofsolana/arc-5-catch-up-solana-token-fundamentals-explained-for-web2-developers-3hfn</guid>
      <description>&lt;p&gt;Arc 5 of &lt;a href="https://mlh.link/solana-100" rel="noopener noreferrer"&gt;100 Days of Solana&lt;/a&gt; opened Epoch 2 by moving from foundation work into programmable assets.&lt;/p&gt;

&lt;p&gt;Epoch 1 gave us the basics: wallets, reads, transactions, accounts, and raw on-chain data. Arc 5 put those ideas to work on one of Solana’s most important primitives: tokens.&lt;/p&gt;

&lt;p&gt;The arc theme was &lt;strong&gt;Token Fundamentals&lt;/strong&gt;. The Web2 bridge was incentive systems: reward points, marketplace credits, loyalty balances, badges, fees, and transfer rules.&lt;/p&gt;

&lt;p&gt;The whole arc hangs off one idea:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;On Solana, a token is not just a balance. It is a set of rules enforced by a shared on-chain program.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is the big shift for Web2 developers.&lt;/p&gt;

&lt;p&gt;In a normal app, token-like systems often live in your database and your backend logic. You design tables, write endpoints, check permissions, prevent double-spends, calculate fees, and decide which transfers are allowed.&lt;/p&gt;

&lt;p&gt;On Solana, much of that machinery already exists in audited token programs. Arc 5 was about learning to use those programs before trying to invent your own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tokens are incentive systems with stronger guarantees
&lt;/h2&gt;

&lt;p&gt;If you have built Web2 products, you have probably seen token-like systems already.&lt;/p&gt;

&lt;p&gt;A marketplace might have seller credits. A learning platform might have completion badges. A game might have in-app currency. A SaaS product might track usage credits. A community might issue reputation points or membership status.&lt;/p&gt;

&lt;p&gt;Those systems usually depend on application code.&lt;/p&gt;

&lt;p&gt;Your backend decides who has what. Your database stores the balances. Your API enforces the rules. If you want transfer fees, you write the fee logic. If you want a badge that cannot be transferred, you add checks in your application.&lt;/p&gt;

&lt;p&gt;That works, but the rules live in your system.&lt;/p&gt;

&lt;p&gt;Solana changes the shape of that design. With the SPL Token Program and Token-2022, many token rules can be enforced at the program level. That means clients, scripts, and other programs have to follow the same rules.&lt;/p&gt;

&lt;p&gt;That is what made Arc 5 interesting. We were not just creating balances. We were exploring what happens when economic rules become part of the asset itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  A mint defines the token
&lt;/h2&gt;

&lt;p&gt;The first token in Arc 5 was deliberately simple.&lt;/p&gt;

&lt;p&gt;Using the &lt;code&gt;spl-token&lt;/code&gt; CLI on devnet, we created a token, created an account to hold it, minted 100 units, and inspected the result.&lt;/p&gt;

&lt;p&gt;That sounds straightforward, but it introduces the most important token distinction:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A mint defines the token. A token account holds someone’s balance of that token.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you are coming from Web2, the mint is a little like the currency definition or product catalog entry. It says what the token is: its supply, decimals, and mint authority.&lt;/p&gt;

&lt;p&gt;A token account is more like an individual balance bucket. It says how many of that token a particular owner holds.&lt;/p&gt;

&lt;p&gt;That distinction matters because you do not receive tokens directly “into a wallet” in the way newcomers often imagine. For each token type, a wallet needs a token account to hold that specific token.&lt;/p&gt;

&lt;p&gt;A wallet is more like a filing cabinet. Each token account is a folder inside it.&lt;/p&gt;

&lt;p&gt;That is the first Solana token model to carry forward:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Mint account: what the token is.&lt;br&gt;
Token account: who holds how much of it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Once that clicks, token balances stop feeling like magic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Token-2022 makes the token itself more expressive
&lt;/h2&gt;

&lt;p&gt;Arc 5 then moved from the original SPL Token Program to Token-2022, also known as the Token Extensions Program.&lt;/p&gt;

&lt;p&gt;That distinction matters.&lt;/p&gt;

&lt;p&gt;The original SPL Token Program gives you the classic token basics: create a mint, create token accounts, mint supply, transfer, burn, inspect balances.&lt;/p&gt;

&lt;p&gt;Token-2022 keeps that familiar foundation but adds extensions: metadata, transfer fees, non-transferable tokens, and other features that would otherwise require more custom infrastructure.&lt;/p&gt;

&lt;p&gt;In Arc 5, the first Token-2022 step was a branded token.&lt;/p&gt;

&lt;p&gt;We created a mint with metadata enabled, set decimals, and wrote a name, symbol, and URI directly onto the mint.&lt;/p&gt;

&lt;p&gt;That is important because metadata gives a token identity. Without it, a token is mostly an address and some numbers. With it, the token becomes recognizable: name, symbol, and a pointer to more information.&lt;/p&gt;

&lt;p&gt;For Web2 developers, this is like moving from “database row with an ID” to “product with a name, SKU, description, and image.”&lt;/p&gt;

&lt;p&gt;The technical difference is that the identity lives with the token infrastructure, not just in an off-chain app database.&lt;/p&gt;

&lt;h2&gt;
  
  
  Associated Token Accounts are the default balance bucket
&lt;/h2&gt;

&lt;p&gt;Arc 5 also introduced Associated Token Accounts, or ATAs.&lt;/p&gt;

&lt;p&gt;An ATA is a deterministic token account derived from a wallet address and a mint address. In plain English:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;For this wallet and this token, there is a predictable default account that holds the balance.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is useful because it avoids the chaos of every wallet having arbitrary token accounts everywhere.&lt;/p&gt;

&lt;p&gt;In Web2 terms, imagine if every user/product pair had a predictable balance record:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;balance = getBalance(userId, tokenId)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You do not have to guess where the balance should live. You can derive it.&lt;/p&gt;

&lt;p&gt;That is why ATAs show up constantly in Solana token work. They are the standard place to look when asking:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;How much of this token does this wallet hold?
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Arc 5 used ATAs early because they are not an advanced detail. They are part of the everyday token model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Transfer fees move marketplace logic into the token program
&lt;/h2&gt;

&lt;p&gt;The most commercially familiar extension in Arc 5 was transfer fees.&lt;/p&gt;

&lt;p&gt;In a Web2 marketplace, a payment or transaction fee usually lives in backend code. Someone transfers value, your system calculates a percentage, applies a cap, updates balances, and records the fee.&lt;/p&gt;

&lt;p&gt;With Token-2022 transfer fees, that rule can live in the token itself.&lt;/p&gt;

&lt;p&gt;In Arc 5, we created a token with a transfer fee. When tokens moved, a percentage was withheld automatically in the recipient’s token account. The recipient could not spend those withheld tokens. The fee authority could later collect them.&lt;/p&gt;

&lt;p&gt;That is the important part:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The fee is enforced by the token program, not by a UI convention or backend middleware.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That changes the trust model. A different client, script, or integration cannot simply “forget” to charge the fee. The rule is part of the token’s transfer behavior.&lt;/p&gt;

&lt;p&gt;There was also a very real developer gotcha: decimals.&lt;/p&gt;

&lt;p&gt;Transfer fee maximums are specified in base units, not display units. If your token has decimals, the number you type may not mean what you think it means. That kind of detail bites everyone eventually, and Arc 5 surfaced it early.&lt;/p&gt;

&lt;p&gt;The broader lesson is simple: token economics are product design, but the implementation is exact. Percentages, caps, decimals, authorities, and units all matter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Non-transferable tokens are useful because they fail
&lt;/h2&gt;

&lt;p&gt;Arc 5 also explored non-transferable tokens, sometimes described as soulbound tokens.&lt;/p&gt;

&lt;p&gt;The exercise was intentionally odd: create a non-transferable token, mint it, then try to transfer it and watch the transfer fail.&lt;/p&gt;

&lt;p&gt;That failure was the point.&lt;/p&gt;

&lt;p&gt;A normal token is valuable partly because it can move. A non-transferable token is valuable because it cannot.&lt;/p&gt;

&lt;p&gt;That makes sense for things like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;verified badges&lt;/li&gt;
&lt;li&gt;course-completion certificates&lt;/li&gt;
&lt;li&gt;membership credentials&lt;/li&gt;
&lt;li&gt;KYC or compliance status&lt;/li&gt;
&lt;li&gt;reputation markers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In those cases, transferability would undermine the meaning of the token. A certificate is not useful if someone else can buy it from you. A verified badge loses value if it can be traded.&lt;/p&gt;

&lt;p&gt;The key lesson was that the restriction is enforced by the token program.&lt;/p&gt;

&lt;p&gt;You are not relying on your frontend to hide a transfer button. You are not relying on an API route to reject the request. The token itself cannot be transferred under the rules of the program.&lt;/p&gt;

&lt;p&gt;But it can still be burned.&lt;/p&gt;

&lt;p&gt;That distinction matters. Non-transferable does not mean indestructible. It means the holder cannot transfer it to someone else. Burning still lets supply be reduced or credentials be revoked, depending on how the system is designed.&lt;/p&gt;

&lt;h2&gt;
  
  
  The lifecycle is the skill
&lt;/h2&gt;

&lt;p&gt;Arc 5 was not only about individual token features. It also reinforced a repeatable lifecycle:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;create → configure → mint → transfer → collect
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That pattern showed up again and again.&lt;/p&gt;

&lt;p&gt;Create the mint. Configure its rules. Create the account that will hold the token. Mint supply. Transfer some tokens. Inspect what happened. Collect withheld fees if the extension uses them.&lt;/p&gt;

&lt;p&gt;That repetition matters because token work can feel fiddly at first.&lt;/p&gt;

&lt;p&gt;There are mints and token accounts. Original SPL Token and Token-2022. Display units and base units. Metadata and authorities. Transfer fees and withheld balances. Non-transferable rules and burn behavior.&lt;/p&gt;

&lt;p&gt;The way through that complexity is not to memorize every flag. It is to recognize the lifecycle.&lt;/p&gt;

&lt;p&gt;Once you can see where you are in the lifecycle, the commands start to make more sense.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building in public is part of the work
&lt;/h2&gt;

&lt;p&gt;Arc 5 ended, like the earlier arcs, by writing and sharing.&lt;/p&gt;

&lt;p&gt;But this week had more to show.&lt;/p&gt;

&lt;p&gt;By the end of the arc, we had created tokens, branded them, minted supply, applied fees, collected withheld tokens, and tested transfer restrictions. That is a proper artifact, not just a learning note.&lt;/p&gt;

&lt;p&gt;The writing prompt asked us to explain what clicked: why Token-2022 matters, why protocol-enforced rules are different from app-level checks, and what surprised us about token design.&lt;/p&gt;

&lt;p&gt;The sharing prompt pushed us to show one concrete moment: the first mint, metadata on Explorer, fees collected by the program, or a rejected non-transferable transfer.&lt;/p&gt;

&lt;p&gt;That is good developer storytelling because it gives people proof.&lt;/p&gt;

&lt;p&gt;Not “I learned tokens.”&lt;/p&gt;

&lt;p&gt;More like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;I created a Token-2022 mint with metadata.
I transferred it.
The program withheld the fee.
Here is the Explorer screenshot.
Here is what surprised me.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is much more useful to the next person trying to understand the same thing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Arc 5 sets up
&lt;/h2&gt;

&lt;p&gt;Strip Arc 5 back to its core and the main ideas are clear:&lt;/p&gt;

&lt;p&gt;A mint defines a token. Token accounts hold balances. Associated Token Accounts give wallets a predictable balance account for each token. Token-2022 adds extensions such as metadata, transfer fees, and non-transferable behavior. Those extensions move rules that often live in Web2 backend code into shared on-chain programs.&lt;/p&gt;

&lt;p&gt;That is the real shift.&lt;/p&gt;

&lt;p&gt;In Web2, token-like systems often depend on your app enforcing the rules.&lt;/p&gt;

&lt;p&gt;On Solana, token programs can enforce many of those rules directly.&lt;/p&gt;

&lt;p&gt;That is what makes tokens such a useful first step after the foundation epoch. They take identity, accounts, transactions, and state, then combine them into something you can actually design with: incentives, fees, credentials, rewards, and asset behavior.&lt;/p&gt;

&lt;p&gt;Arc 5 opened Epoch 2 by showing that tokens are not just things you hold. They are programmable assets with rules.&lt;/p&gt;

&lt;p&gt;Use this post as the map, revisit the Arc 5 challenges when you want the hands-on version, and carry the token model into the next arc.&lt;/p&gt;

</description>
      <category>100daysofsolana</category>
      <category>blockchain</category>
      <category>web3</category>
      <category>learning</category>
    </item>
    <item>
      <title>Arc 4 Catch-Up: Solana’s Account Model Explained for Web2 Developer</title>
      <dc:creator>Matthew Revell</dc:creator>
      <pubDate>Mon, 08 Jun 2026 12:06:13 +0000</pubDate>
      <link>https://dev.to/100daysofsolana/arc-4-catch-up-solanas-account-model-explained-for-web2-developer-1hh4</link>
      <guid>https://dev.to/100daysofsolana/arc-4-catch-up-solanas-account-model-explained-for-web2-developer-1hh4</guid>
      <description>&lt;p&gt;Arc 4 of &lt;a href="https://mlh.link/solana-100" rel="noopener noreferrer"&gt;100 Days of Solana&lt;/a&gt; was about the Solana account model: what state actually looks like on-chain, who can change it, and how developers read and decode it.&lt;/p&gt;

&lt;p&gt;Arc 3 gave us the transaction model. We learned that transactions are how Solana changes state.&lt;/p&gt;

&lt;p&gt;Arc 4 asked the next question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Where does that state live?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;On Solana, the answer is accounts.&lt;/p&gt;

&lt;p&gt;That sounds simple, but it is one of the biggest mental model shifts in the whole foundation epoch. A Solana account is not just a wallet. It is not just a user profile. It is not just a row in a database.&lt;/p&gt;

&lt;p&gt;On Solana, almost everything is an account: wallets, programs, token mints, token accounts, sysvars, and application state.&lt;/p&gt;

&lt;p&gt;The whole arc hangs off one idea:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;On Solana, accounts are the containers that hold state, code, ownership, and balance.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Once that clicks, the rest of Solana starts to fit together.&lt;/p&gt;

&lt;h2&gt;
  
  
  Accounts are where state lives
&lt;/h2&gt;

&lt;p&gt;In a Web2 app, state usually lives in places you control.&lt;/p&gt;

&lt;p&gt;User data might be in Postgres. Files might be in object storage. sessions might be in Redis. App code runs on your servers or serverless functions. Access control often lives in middleware, business logic, row-level security, or API permissions.&lt;/p&gt;

&lt;p&gt;Solana rearranges that picture.&lt;/p&gt;

&lt;p&gt;State lives in accounts. Programs are accounts too. Wallets are accounts. Token data is stored in accounts. Even bits of cluster state are exposed through special accounts.&lt;/p&gt;

&lt;p&gt;That is what people mean when they say “everything is an account.”&lt;/p&gt;

&lt;p&gt;It does not mean every account behaves the same way. A wallet account, a token mint, and an executable program account do different jobs. But they share the same basic structure, and that shared structure is what Arc 4 unpacked.&lt;/p&gt;

&lt;p&gt;A Solana account has five core fields:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;lamports&lt;/strong&gt;: how much SOL the account holds&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;data&lt;/strong&gt;: the bytes stored in the account&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;owner&lt;/strong&gt;: the program allowed to modify the account’s data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;executable&lt;/strong&gt;: whether the account contains runnable program code&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;rentEpoch&lt;/strong&gt;: a legacy rent-related field&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is the foundation. Different accounts become meaningful because those fields are set differently.&lt;/p&gt;

&lt;h2&gt;
  
  
  The owner field is the security model
&lt;/h2&gt;

&lt;p&gt;For Web2 developers, the &lt;code&gt;owner&lt;/code&gt; field is one of the most important ideas to get right.&lt;/p&gt;

&lt;p&gt;It does not mean “the human who owns this account.”&lt;/p&gt;

&lt;p&gt;It means:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Which program is allowed to change this account’s data?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That makes &lt;code&gt;owner&lt;/code&gt; much closer to a low-level access-control rule than a user-facing ownership label.&lt;/p&gt;

&lt;p&gt;In a Web2 app, you might enforce permissions in your API layer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Can this user update this row?
Can this service write to this bucket?
Can this job mutate this record?
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Solana, the runtime enforces a stricter version of that idea. Only the owning program can modify an account’s data. If a token account is owned by the Token Program, your random application code cannot just rewrite it. If your program owns a data account, then your program defines how that data can change.&lt;/p&gt;

&lt;p&gt;That is why the account model matters so much.&lt;/p&gt;

&lt;p&gt;Transactions may carry the instructions, but accounts define the state those instructions act on. The &lt;code&gt;owner&lt;/code&gt; field helps decide which program has authority over that state.&lt;/p&gt;

&lt;p&gt;That is not middleware. It is part of the runtime.&lt;/p&gt;

&lt;h2&gt;
  
  
  Programs are accounts too
&lt;/h2&gt;

&lt;p&gt;One of the more useful realizations in Arc 4 was that programs are not magical things floating somewhere outside the account model.&lt;/p&gt;

&lt;p&gt;Programs are accounts.&lt;/p&gt;

&lt;p&gt;The difference is that program accounts have &lt;code&gt;executable: true&lt;/code&gt;. Their data contains compiled program code, and their owner is a loader program rather than the System Program.&lt;/p&gt;

&lt;p&gt;That is a strange idea at first, but there is a useful Web2 analogy:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The code and the data are separate.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A web server might run application code, then read and write rows in a database. On Solana, a program account contains executable code, while separate data accounts hold the state that program works with.&lt;/p&gt;

&lt;p&gt;That separation becomes crucial later.&lt;/p&gt;

&lt;p&gt;When you write Solana programs, you are not usually storing mutable state inside the program itself. You are writing code that receives accounts, checks them, reads their data, and changes the accounts it is allowed to change.&lt;/p&gt;

&lt;p&gt;So Arc 4 quietly set up one of the most important Solana development habits:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Think in accounts, not objects.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Your program logic is only half the story. The accounts passed into that program are the other half.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading an account is like opening a file
&lt;/h2&gt;

&lt;p&gt;Arc 4 started with inspection.&lt;/p&gt;

&lt;p&gt;Using the Solana CLI, we looked at a normal wallet account, the SPL Token Program, and the System Program side by side. That made the shared structure visible.&lt;/p&gt;

&lt;p&gt;The Web2 analogy here is not perfect, but it helps:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Reading a Solana account is a bit like opening a file or inspecting a database row.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You can see its balance. You can see whether it has data. You can see who owns it. You can see whether it is executable.&lt;/p&gt;

&lt;p&gt;But unlike a normal database row, account data often starts as raw bytes. The network can give you the bytes, but it does not automatically know how you want to interpret them.&lt;/p&gt;

&lt;p&gt;That is where account decoding comes in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Raw bytes are where this gets real
&lt;/h2&gt;

&lt;p&gt;Arc 4 was the most “under the hood” week of Epoch 1, and the account decoding work was the reason.&lt;/p&gt;

&lt;p&gt;At first, an account’s &lt;code&gt;data&lt;/code&gt; field can look like base64 gibberish. That is not because it is meaningless. It is because you are looking at serialized bytes.&lt;/p&gt;

&lt;p&gt;The challenge was to decode those bytes and prove that the same account data could be understood in three ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;with a typed decoder from &lt;code&gt;@solana-program/token&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;manually, byte by byte, using &lt;code&gt;DataView&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;through the RPC’s &lt;code&gt;jsonParsed&lt;/code&gt; encoding&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is not just busywork. It is the moment where “on-chain data” stops being abstract.&lt;/p&gt;

&lt;p&gt;If you have ever parsed a binary file format, decoded a network packet, or mapped bytes into a struct, this is the same kind of work. The data is there. Your job is to know its layout.&lt;/p&gt;

&lt;p&gt;Arc 4 introduced several ideas that will keep coming back:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Borsh serialization&lt;/strong&gt;: how structured data becomes bytes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;little-endian numbers&lt;/strong&gt;: a common source of decoding bugs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;base64&lt;/strong&gt;: how RPC often returns account data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;hex&lt;/strong&gt;: useful for debugging raw bytes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;base58&lt;/strong&gt;: how Solana addresses are displayed&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This was the hardest part of the arc, but it was also the most transferable.&lt;/p&gt;

&lt;p&gt;If you can decode account data, you are no longer limited to what a block explorer chooses to show you. You can inspect state yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  The System Program is the account clerk
&lt;/h2&gt;

&lt;p&gt;Arc 4 also took us one layer deeper into the system itself.&lt;/p&gt;

&lt;p&gt;The System Program is one of the native programs that makes Solana work. A useful way to think about it is as the clerk that creates and labels accounts.&lt;/p&gt;

&lt;p&gt;It can create accounts. It can assign ownership. It can allocate space. It handles basic SOL transfers.&lt;/p&gt;

&lt;p&gt;That makes it feel a little like part of an operating system. Not your application logic, but the lower-level machinery that makes files, processes, permissions, and memory possible.&lt;/p&gt;

&lt;p&gt;Sysvar accounts are another useful piece of that system layer. They expose read-only cluster state, such as clock or rent information, through accounts.&lt;/p&gt;

&lt;p&gt;A rough Web2 analogy would be &lt;code&gt;/proc&lt;/code&gt; on Linux: system information exposed as readable data.&lt;/p&gt;

&lt;p&gt;Again, the analogy is not exact. But it helps place the idea. Solana’s account model is not only for application state. It is also how the system exposes information about itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Block explorers are blockchain DevTools
&lt;/h2&gt;

&lt;p&gt;After decoding account data by hand, Arc 4 stepped back and looked at Explorer again.&lt;/p&gt;

&lt;p&gt;That was useful because block explorers are not just places to paste transaction signatures. They are the debugging surface for a public blockchain.&lt;/p&gt;

&lt;p&gt;Solana Explorer, Solscan, and similar tools are basically UI wrappers around public chain data. They show accounts, transactions, owners, program logs, balances, token data, and instruction details.&lt;/p&gt;

&lt;p&gt;If you are used to browser DevTools, database consoles, or log dashboards, this is the role explorers play.&lt;/p&gt;

&lt;p&gt;They help you answer questions like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;What account am I looking at?
Who owns it?
Is it executable?
What data does it hold?
Which transaction changed it?
What logs were emitted?
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reading explorers fluently is a real Solana development skill. It lets you move between your code, RPC calls, transaction signatures, and on-chain state without guessing.&lt;/p&gt;

&lt;p&gt;Arc 4 made that explicit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Writing helps the model settle
&lt;/h2&gt;

&lt;p&gt;Arc 4 ended the same way the earlier arcs did: by writing and sharing.&lt;/p&gt;

&lt;p&gt;That matters especially for this arc because the account model is not something you fully absorb by reading one definition. It takes a few passes.&lt;/p&gt;

&lt;p&gt;You inspect an account. You compare it with another one. You decode bytes. You look at a program. You notice that the same five fields keep showing up. Then you try to explain it to someone else.&lt;/p&gt;

&lt;p&gt;That is when the model starts to stick.&lt;/p&gt;

&lt;p&gt;Writing about the account model forces useful questions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;What does owner really mean?
How is a program also an account?
Where does state live?
Why is account data raw bytes?
What does rent-exempt storage mean?
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Those questions are exactly the point.&lt;/p&gt;

&lt;p&gt;The goal is not polished certainty. The goal is a clearer map.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Arc 4 sets up
&lt;/h2&gt;

&lt;p&gt;Arc 4 closed Epoch 1 by giving us the data model underneath everything else.&lt;/p&gt;

&lt;p&gt;Strip it back to the core ideas:&lt;/p&gt;

&lt;p&gt;Accounts are where Solana state lives. Every account has the same basic fields. The &lt;code&gt;owner&lt;/code&gt; field controls who can change account data. Programs are executable accounts. Application state lives in separate data accounts. Raw account data is bytes, and decoding those bytes is a core developer skill.&lt;/p&gt;

&lt;p&gt;That brings the foundation epoch together.&lt;/p&gt;

&lt;p&gt;Arc 1 gave us identity: keys, wallets, addresses, and devnet SOL.&lt;/p&gt;

&lt;p&gt;Arc 2 gave us reads: RPC calls, balances, transaction history, and public blockchain data.&lt;/p&gt;

&lt;p&gt;Arc 3 gave us writes: signed transactions, confirmation, and failure modes.&lt;/p&gt;

&lt;p&gt;Arc 4 gave us state: accounts, ownership, executable programs, raw data, and decoding.&lt;/p&gt;

&lt;p&gt;From here, the next step is natural.&lt;/p&gt;

&lt;p&gt;Once you understand identity, reads, writes, and state, you are ready to build with the programs that own and modify those accounts.&lt;/p&gt;

&lt;p&gt;Use this post as the map, revisit the Arc 4 challenges when you want the hands-on version, and carry the account model into what comes next.&lt;/p&gt;

</description>
      <category>100daysofsolana</category>
      <category>web3</category>
      <category>blockchain</category>
      <category>learning</category>
    </item>
    <item>
      <title>Arc 2 Catch-Up: Reading Solana Like a Public Database</title>
      <dc:creator>Matthew Revell</dc:creator>
      <pubDate>Mon, 08 Jun 2026 11:59:40 +0000</pubDate>
      <link>https://dev.to/100daysofsolana/arc-2-catch-up-reading-solana-like-a-public-database-cn2</link>
      <guid>https://dev.to/100daysofsolana/arc-2-catch-up-reading-solana-like-a-public-database-cn2</guid>
      <description>&lt;p&gt;Arc 2 of &lt;a href="https://mlh.link/solana-100" rel="noopener noreferrer"&gt;100 Days of Solana&lt;/a&gt; was about learning to read from the blockchain.&lt;/p&gt;

&lt;p&gt;In Arc 1, we created wallets, worked with addresses, got devnet SOL, and started building the basic identity layer we need to interact with Solana. Arc 2 shifted the focus from identity to information.&lt;/p&gt;

&lt;p&gt;What can you read from Solana? How do you ask for it? What comes back? And how is that different from fetching data from a normal Web2 API or querying a database?&lt;/p&gt;

&lt;p&gt;The whole arc hangs off one useful mental model:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Solana is a massive public database where every table is readable and every query is free.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is not a perfect technical description, but it is a useful starting point. If you are coming from Web2, Arc 2 is where Solana starts to feel less like an abstract blockchain and more like a data source you can inspect, query, and build interfaces around.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading from Solana feels familiar
&lt;/h2&gt;

&lt;p&gt;Reading from Solana is the easy part to map onto Web2.&lt;/p&gt;

&lt;p&gt;You ask for a wallet balance. You fetch recent transactions for an address. You inspect account data. The network answers.&lt;/p&gt;

&lt;p&gt;That shape feels familiar if you have ever called a REST API, queried a database, or built a dashboard around backend data.&lt;/p&gt;

&lt;p&gt;In Arc 2, the first read was deliberately small: use &lt;code&gt;@solana/kit&lt;/code&gt;, connect to devnet, and call &lt;code&gt;getBalance&lt;/code&gt; for a wallet address.&lt;/p&gt;

&lt;p&gt;That one call teaches more than it first appears to.&lt;/p&gt;

&lt;p&gt;There is no user session. No API key. No private dashboard. No auth header. The address is public, the balance is public, and the network can return it directly.&lt;/p&gt;

&lt;p&gt;That is the first shift:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;On Solana, public data is public by default.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For Web2 developers, that can feel backwards. In most application databases, data starts private. You expose it through APIs, auth rules, dashboards, and permissions. On Solana, a lot of the base data is already out in the open. The job of your application is often not to unlock access, but to make public data understandable and useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  A wallet balance is just the first query
&lt;/h2&gt;

&lt;p&gt;Once you can fetch a balance, the next step is obvious: fetch activity.&lt;/p&gt;

&lt;p&gt;Arc 2 moved from &lt;code&gt;getBalance&lt;/code&gt; to recent transaction history. Using &lt;code&gt;getSignaturesForAddress&lt;/code&gt;, we queried the most recent transactions for an address and displayed the signature, slot, timestamp, and status.&lt;/p&gt;

&lt;p&gt;If &lt;code&gt;getBalance&lt;/code&gt; is like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GET /users/:id/balance
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;then recent transactions feel more like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GET /users/:id/transactions
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The pattern is familiar. The data is not.&lt;/p&gt;

&lt;p&gt;A transaction signature is not just a random ID. It is the identifier you can use to look up what happened. A slot is not quite a timestamp; it is Solana’s way of ordering batches of work over time. A block time gives you a familiar Unix timestamp when one is available.&lt;/p&gt;

&lt;p&gt;This is where Solana starts to feel like a database with its own vocabulary.&lt;/p&gt;

&lt;p&gt;You can query it. You can display the result. You can build UI around it. But the records you get back are blockchain records, not rows from your own application database.&lt;/p&gt;

&lt;p&gt;That distinction matters.&lt;/p&gt;

&lt;p&gt;You are not asking your backend, “What did this user do in my app?” You are asking the network, “What activity is visible for this address?”&lt;/p&gt;

&lt;h2&gt;
  
  
  A dashboard turns reads into something useful
&lt;/h2&gt;

&lt;p&gt;The first two reads happened in scripts. That is a good way to learn the API, but it is not how most users experience software.&lt;/p&gt;

&lt;p&gt;So Arc 2 moved the same read patterns into a small browser dashboard.&lt;/p&gt;

&lt;p&gt;The dashboard took an address, fetched its balance, pulled recent transactions, and displayed the results in a simple web interface. Same Solana calls. Different surface.&lt;/p&gt;

&lt;p&gt;That is a useful moment because it shows how normal this can feel.&lt;/p&gt;

&lt;p&gt;You are still doing familiar frontend work: input fields, loading states, error handling, formatted output. The Solana-specific part is the data source.&lt;/p&gt;

&lt;p&gt;A read-only dashboard is also a good early blockchain app because the risk is low. You are not signing anything. You are not moving funds. You are not changing state. You are just helping someone understand public data.&lt;/p&gt;

&lt;p&gt;That makes Arc 2 a good bridge for Web2 developers. You can use existing frontend instincts while slowly replacing “my backend API” with “the Solana RPC endpoint.”&lt;/p&gt;

&lt;h2&gt;
  
  
  Accounts are not tables, but the database analogy helps
&lt;/h2&gt;

&lt;p&gt;The conceptual center of Arc 2 was the comparison between Solana accounts and Web2 databases.&lt;/p&gt;

&lt;p&gt;The database analogy helps because it gives you a place to start. Solana stores state. You can read that state. Programs interact with that state. Accounts have owners. Data has structure.&lt;/p&gt;

&lt;p&gt;But the analogy breaks quickly.&lt;/p&gt;

&lt;p&gt;In a normal database, you might expect tables, schemas, indexes, joins, private rows, server-side filtering, and application middleware enforcing access control.&lt;/p&gt;

&lt;p&gt;Solana does not work like that.&lt;/p&gt;

&lt;p&gt;On Solana, everything is an account: wallets, programs, token accounts, program-owned data. Accounts do not query each other. There are no joins. You usually assemble what you need off-chain by making RPC calls, reading account data, and interpreting the results in your app.&lt;/p&gt;

&lt;p&gt;That is a major shift.&lt;/p&gt;

&lt;p&gt;In Web2, the database often sits behind your application. Your server decides what to query, what to hide, what to join, and what to return.&lt;/p&gt;

&lt;p&gt;On Solana, the data is public, the runtime enforces ownership and write rules, and your application often becomes the layer that makes raw public state usable.&lt;/p&gt;

&lt;p&gt;That is why “Solana is a public database” is helpful, but incomplete. It is not Postgres with a blockchain logo. It is a shared state layer with different rules about visibility, ownership, storage, and writes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Storage has a price tag
&lt;/h2&gt;

&lt;p&gt;Arc 2 also introduced a detail Web2 developers do not usually think about directly: storage cost.&lt;/p&gt;

&lt;p&gt;In most Web2 apps, storage cost is real, but abstracted. You pay a cloud bill. Your database grows. Maybe you worry about indexes, backups, or object storage. But individual records do not usually arrive with an obvious upfront storage deposit.&lt;/p&gt;

&lt;p&gt;Solana makes storage more explicit.&lt;/p&gt;

&lt;p&gt;Accounts need enough lamports to be rent-exempt. That deposit depends on the amount of data the account stores, and it can be returned if the account is closed.&lt;/p&gt;

&lt;p&gt;That is a very different mental model from “just insert another row.”&lt;/p&gt;

&lt;p&gt;It means storage is not just a backend implementation detail. It is part of the application model. If your app needs on-chain state, someone has to pay for the account space that holds it.&lt;/p&gt;

&lt;p&gt;Arc 2 did not require us to build with that model yet, but it planted the idea early: on Solana, reading is free, but storing state is not invisible.&lt;/p&gt;

&lt;h2&gt;
  
  
  Devnet and mainnet are separate worlds
&lt;/h2&gt;

&lt;p&gt;Arc 2 also made the network environment visible.&lt;/p&gt;

&lt;p&gt;In Web2, developers are used to staging and production. Same code, different database. Same API shape, different base URL. Different data, different risk.&lt;/p&gt;

&lt;p&gt;Solana has a similar idea with devnet and mainnet.&lt;/p&gt;

&lt;p&gt;The RPC calls can look identical. The address can be the same. But the network you query changes everything.&lt;/p&gt;

&lt;p&gt;A wallet might have devnet SOL and no mainnet SOL. It might have activity on one network and no history on the other. Devnet is not a sandboxed view of mainnet. It is a separate environment with separate data.&lt;/p&gt;

&lt;p&gt;That is a useful Web2 bridge:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Changing networks is like pointing the same app at a different database.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The code shape stays familiar. The data source changes. The consequences change too.&lt;/p&gt;

&lt;p&gt;Devnet is where you can experiment freely. Mainnet is where the real assets and real history live.&lt;/p&gt;

&lt;h2&gt;
  
  
  Writing turns learning into understanding
&lt;/h2&gt;

&lt;p&gt;Arc 2 ended by stepping away from the code and asking us to explain what we had learned.&lt;/p&gt;

&lt;p&gt;That was not filler. Writing is part of the learning loop.&lt;/p&gt;

&lt;p&gt;When you try to explain Solana accounts, RPC calls, devnet, public data, or transaction history to someone else, you quickly find the gaps in your own understanding. The rough edges become visible. The parts that felt “sort of clear” either sharpen or fall apart.&lt;/p&gt;

&lt;p&gt;That is valuable.&lt;/p&gt;

&lt;p&gt;A good technical learning journey is not just:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;read docs → copy code → move on
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It is closer to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;try something → build something → explain it → share it → notice what still feels unclear
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Arc 2 followed that pattern. We read on-chain data, turned it into a browser dashboard, compared it against Web2 databases, wrote about what clicked, and shared the work publicly.&lt;/p&gt;

&lt;p&gt;That turns a week of exercises into something more durable.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Arc 2 sets up
&lt;/h2&gt;

&lt;p&gt;Strip Arc 2 back to its core and the main ideas are clear:&lt;/p&gt;

&lt;p&gt;Solana data is public by default. You read it through RPC calls. Wallet balances, transaction history, programs, and data all live in accounts. Devnet and mainnet are separate environments. Reading is free, but storing state has a cost.&lt;/p&gt;

&lt;p&gt;That gives us the bridge into Arc 3.&lt;/p&gt;

&lt;p&gt;Once you understand how to read from Solana, the next question is obvious:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;How do you change it?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;On Solana, the answer is transactions.&lt;/p&gt;

&lt;p&gt;Arc 3 picks up there: signed requests to change on-chain state, SOL transfers, transaction anatomy, confirmation, failure modes, and the write path developers use to interact with the network.&lt;/p&gt;

&lt;p&gt;Use this post as the map, revisit the Arc 2 challenges when you want the hands-on version, and jump into Arc 3 with the read model already in place.&lt;/p&gt;

</description>
      <category>100daysofsolana</category>
      <category>web3</category>
      <category>blockchain</category>
      <category>learning</category>
    </item>
    <item>
      <title>Fungible and Non-Fungible Tokens on Solana: Same System, Different Rules</title>
      <dc:creator>Vincent Jande</dc:creator>
      <pubDate>Fri, 29 May 2026 18:40:51 +0000</pubDate>
      <link>https://dev.to/100daysofsolana/fungible-and-non-fungible-tokens-on-solana-same-system-different-rules-3h3</link>
      <guid>https://dev.to/100daysofsolana/fungible-and-non-fungible-tokens-on-solana-same-system-different-rules-3h3</guid>
      <description>&lt;p&gt;If you have been following the 100 Days of Solana challenges, you have already worked with tokens. You created mints, set up token accounts, transferred SOL, and explored token extensions. But there is a distinction that comes up constantly in web3, and understanding it properly will change how you think about everything you build going forward.&lt;/p&gt;

&lt;p&gt;Fungible and non-fungible tokens. You have probably heard these terms before, especially NFTs. But what do they actually mean on Solana, and how does the same token system handle two very different concepts?&lt;/p&gt;

&lt;h2&gt;
  
  
  What makes something fungible
&lt;/h2&gt;

&lt;p&gt;Fungible just means interchangeable. One unit is identical to another unit. If I have 10 USDC and you have 10 USDC, ours are exactly the same. It does not matter which specific USDC tokens I hold because they are all worth the same and behave the same way. We could swap them and nothing changes.&lt;/p&gt;

&lt;p&gt;This is how most things you are used to work. A dollar bill is fungible. A liter of petrol is fungible. One unit of SOL is the same as any other unit of SOL. When you built token transfers in the challenges, you were working with fungible tokens. You did not need to care about which specific tokens moved, just how many.&lt;/p&gt;

&lt;p&gt;Fungible tokens are used for currencies, stablecoins, utility tokens, governance tokens, loyalty points, in-game currencies, and anything where the quantity matters more than the individual unit.&lt;/p&gt;

&lt;h2&gt;
  
  
  What makes something non-fungible
&lt;/h2&gt;

&lt;p&gt;Non-fungible means unique. Each token is different from every other token, even if they come from the same collection. If I have NFT #42 from a collection and you have NFT #87, those are not interchangeable. They might have different images, different properties, different rarity, or different utility.&lt;/p&gt;

&lt;p&gt;Think of it like event tickets. Two tickets to the same concert are not the same if one is front row and the other is in the back. They came from the same event, but each one is distinct.&lt;/p&gt;

&lt;p&gt;Non-fungible tokens are used for digital art, collectibles, membership passes, certifications, domain names, gaming items, real estate deeds, event tickets, and anything where the individual item matters more than the quantity.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Solana handles both with the same system
&lt;/h2&gt;

&lt;p&gt;This is where Solana does something interesting. On some blockchains, fungible and non-fungible tokens are completely separate systems with different standards and different smart contracts. On Solana, both run through the same Token Program (or the newer Token Extensions program, also called Token-2022).&lt;/p&gt;

&lt;p&gt;The difference comes down to two configuration settings: decimals and supply.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A fungible token has a mint initialized with multiple decimals (typically 6 or 9) and a supply far greater than one. You can mint millions of fractional units from the same mint, and they are all interchangeable.&lt;/li&gt;
&lt;li&gt;A non-fungible token is a mint initialized with exactly 0 decimals, where exactly one token is minted and the mint authority is then permanently revoked.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That second part is worth being precise about, because there is no "maximum supply" field you set when you create a base SPL mint. A mint has a supply value that simply increments every time you mint into it. You create the mint with 0 decimals, mint exactly one token to a token account, and then set the mint authority to None. Revoking the authority is what locks the total supply at 1 forever, guaranteeing that no more units of this specific token can ever be printed.&lt;/p&gt;

&lt;p&gt;Same program, same mint account layout. The rules are enforced purely by how you configure the mint and what you do with the mint authority.&lt;/p&gt;

&lt;p&gt;One nuance: at this level you have created a non-fungible token. Wallets and marketplaces do not yet recognize it as an "NFT" in the way you would see it on a marketplace. That recognition comes from the metadata and standard layer, which is what we cover next.&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.amazonaws.com%2Fuploads%2Farticles%2Fi63bstmcy97uinwg7wgv.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.amazonaws.com%2Fuploads%2Farticles%2Fi63bstmcy97uinwg7wgv.png" alt=" Left panel " width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The role of metadata
&lt;/h2&gt;

&lt;p&gt;If a non-fungible token is just a mint with a supply of one, how do you know what it actually represents? How do you attach an image, a name, or specific traits to it?&lt;/p&gt;

&lt;p&gt;This is where metadata comes in. On-chain, a token mint is just a state account holding configuration details and balances. The metadata gives it context.&lt;/p&gt;

&lt;p&gt;The long-standing approach is the Metaplex Token Metadata standard, which creates a separate metadata account cryptographically linked to the token mint via a Program Derived Address (PDA). This account holds the token's name, symbol, and a URI pointing to an off-chain JSON file containing the image and attributes. That JSON is typically stored on decentralized storage like Arweave or IPFS, though some projects use centralized hosting such as AWS S3.&lt;/p&gt;

&lt;p&gt;Token Metadata is still widely used and is not deprecated. Interestingly, a large share of assets minted through it today are actually fungible tokens, since it is also the common way to give a fungible mint a name, symbol, and icon.&lt;/p&gt;

&lt;p&gt;For new NFT projects specifically, the current recommended standard is &lt;strong&gt;Metaplex Core&lt;/strong&gt;. Core uses a single-account design, storing all of an asset's data in one account instead of the separate mint, metadata, and token accounts the older model required. That cuts minting cost dramatically (on the order of 80 percent cheaper than Token Metadata) and ships with built-in features like enforced royalties and a plugin system for custom behavior. If you are starting a new NFT collection today, Core is usually where you should look first.&lt;/p&gt;

&lt;p&gt;There is also the &lt;strong&gt;Token Extensions (Token-2022)&lt;/strong&gt; path. By enabling the MetadataPointer and TokenMetadata extensions, you can store the name, symbol, and URI directly inside the mint account itself. The pointer says where the metadata lives, and the metadata extension holds the actual fields. In practice this is used most often for fungible and utility tokens, letting a stablecoin or reward token carry a native icon and tracking data without a separate metadata account or any cross-program coordination at creation.&lt;/p&gt;

&lt;p&gt;So the honest map of the landscape is: Token Metadata (legacy, still common, heavily used for fungibles), Core (the modern recommendation for new NFTs), Token-2022 metadata extensions (great for fungible and utility tokens), and compressed NFTs for high-volume cases, which we will get to in a moment.&lt;/p&gt;

&lt;p&gt;For fungible tokens, metadata is simple. You usually just need a name, symbol, and maybe an icon. For non-fungible tokens, metadata can be extensive because each token is unique and needs its own description, image, and properties.&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.amazonaws.com%2Fuploads%2Farticles%2F9kyia5kpp557f458zf5y.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.amazonaws.com%2Fuploads%2Farticles%2F9kyia5kpp557f458zf5y.png" alt="A horizontal flow: Token Account (balance: 1) → Mint Account → Metadata, where Metadata branches into two stacked boxes labeled " width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Token accounts work the same way
&lt;/h2&gt;

&lt;p&gt;Whether you are holding a fungible token or a non-fungible one, you need a token account for it. This is the same concept you learned in the challenges. Your wallet needs an Associated Token Account (ATA) for each mint you want to hold.&lt;/p&gt;

&lt;p&gt;For fungible tokens, your token account has a balance that can go up and down as you send and receive tokens. For non-fungible tokens, your token account has a balance of exactly one. You either have it or you do not.&lt;/p&gt;

&lt;p&gt;The mechanics are identical. Creating the account, paying rent, transferring tokens. The same code patterns you have been writing in the challenges apply to both. (Metaplex Core is the one exception worth noting, since its single-account model does not use a separate token account in the same way, but the fungible side and classic NFTs both follow the familiar ATA pattern.)&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.amazonaws.com%2Fuploads%2Farticles%2Fi5vo1woaf0xgovkuufuh.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.amazonaws.com%2Fuploads%2Farticles%2Fi5vo1woaf0xgovkuufuh.png" alt="Digital asset spectrum, ranging from pure fungible tokens to unique non-fungible assets," width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Editions, collections, and scale
&lt;/h2&gt;

&lt;p&gt;Not every NFT is a complete one-of-one. Sometimes you want to create multiple copies of the same item but still have each one be individually trackable. Think limited edition prints. There are 500 of them, each one is numbered, but they all share the same artwork.&lt;/p&gt;

&lt;p&gt;In the Token Metadata standard, this is handled through editions. A master edition can produce a set number of prints. Each print is its own mint with its own token, but they are all linked back to the original master edition.&lt;/p&gt;

&lt;p&gt;Collections group related NFTs together. A collection is itself an NFT that acts as a parent. Individual NFTs reference the collection in their metadata, which is how marketplaces know that 10,000 different mints all belong to the same project.&lt;/p&gt;

&lt;p&gt;Here is an important practical point that trips people up. Editions and one-mint-per-item NFTs do not scale cheaply. Each one is a real account that carries rent. So if your goal is something like 1,000 identical-but-individually-owned event tickets, minting a thousand separate full NFTs gets expensive fast.&lt;/p&gt;

&lt;p&gt;For that high-volume case, the modern answer is &lt;strong&gt;compressed NFTs&lt;/strong&gt; (the Metaplex Bubblegum standard). Compressed NFTs store ownership data in a Merkle tree rather than in a full account per token, which makes it possible to mint thousands or even millions of individually owned, transferable assets at a tiny fraction of the cost. This is the dominant approach for large drops on Solana today, and it is exactly what you would reach for in the 1,000-ticket scenario.&lt;/p&gt;

&lt;p&gt;So the decision for "many of the same thing" is really: a handful of numbered prints can use editions, but anything at real scale should use compression.&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.amazonaws.com%2Fuploads%2Farticles%2Fdzerb3a04x0nn7dxl89s.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.amazonaws.com%2Fuploads%2Farticles%2Fdzerb3a04x0nn7dxl89s.png" alt="A three-column comparison (table or cards): Token Metadata vs Core vs Bubblegum (compressed). Rows for " width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Fungible tokens with NFT properties
&lt;/h2&gt;

&lt;p&gt;The Token Extensions program blurs the traditional line between fungible and non-fungible tokens in powerful ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Non-Transferable Tokens&lt;/strong&gt;: By initializing a fungible mint with the NonTransferable extension, you create assets that are locked to the recipient's wallet the moment they are minted. If a user earns 50 reputation points, those points are structurally fungible but behave like "soulbound" credentials because the runtime blocks any transfer instruction.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mint-Linked Metadata&lt;/strong&gt;: Before Token Extensions, detailed metadata was largely reserved for NFTs via Metaplex. Now, you can inject rich metadata directly into a fungible utility token or stablecoin mint, allowing wallets to display custom icons and tracking data natively.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transfer Hooks&lt;/strong&gt;: You can attach a custom program to a fungible token mint that executes additional logic every time a transfer occurs. A fungible token that checks an allowlist or verifies a KYC credential before allowing a transfer begins to behave like a restricted real-world security, changing its economic behavior entirely through code.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The categories are not as rigid as they seem. Solana gives you the building blocks and you decide how to combine them.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to use which
&lt;/h2&gt;

&lt;p&gt;If you are building something where every unit is the same and users care about quantity, use a fungible token. Currencies, points, credits, governance votes.&lt;/p&gt;

&lt;p&gt;If you are building something where each item is unique and users care about the specific item they hold, use a non-fungible token. Art, collectibles, certificates, tickets, identity documents. For a brand-new collection, start with Metaplex Core. For high-volume drops, reach for compressed NFTs.&lt;/p&gt;

&lt;p&gt;If you are building something in between, like a limited-edition with 100 copies or a membership tier with different levels, look at editions and collections, or explore how Token-2022 extensions can give you the behavior you need.&lt;/p&gt;

&lt;p&gt;The good news is that the skills you are building in these challenges apply to all of it. The mint, token account, and transfer patterns are the same regardless of whether you are working with fungible or non-fungible tokens.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is coming next
&lt;/h2&gt;

&lt;p&gt;The upcoming challenges will take you deeper into how NFTs work on Solana, how to mint them, how metadata is structured, and how collections come together. Understanding the foundation covered here will make those challenges click faster.&lt;/p&gt;

&lt;p&gt;Keep building. See you in the Discord.&lt;/p&gt;

&lt;p&gt;100 Days of Solana is a free daily coding challenge: &lt;a href="https://mlh.link/solana-100" rel="noopener noreferrer"&gt;https://mlh.link/solana-100&lt;/a&gt;&lt;/p&gt;

</description>
      <category>100daysofsolana</category>
      <category>web3</category>
      <category>learning</category>
      <category>programming</category>
    </item>
    <item>
      <title>Web3 Apps You Can Build With Token Extensions</title>
      <dc:creator>Vincent Jande</dc:creator>
      <pubDate>Fri, 22 May 2026 20:07:47 +0000</pubDate>
      <link>https://dev.to/100daysofsolana/web3-apps-you-can-build-with-token-extensions-me8</link>
      <guid>https://dev.to/100daysofsolana/web3-apps-you-can-build-with-token-extensions-me8</guid>
      <description>&lt;p&gt;In our previous articles, we covered &lt;a href="https://dev.to/100daysofsolana/how-web3-tokens-get-their-value-3bbk"&gt;how Web3 tokens get their value&lt;/a&gt; and broke down the new standards in &lt;a href="https://dev.to/100daysofsolana/what-is-token-2022-and-why-solana-built-it-53io"&gt;What is Token 2022 and why Solana built it&lt;/a&gt;. You understand authorities, token accounts, and the extensions available.&lt;/p&gt;

&lt;p&gt;Now the question is what you actually build.&lt;/p&gt;

&lt;p&gt;Token extensions are building blocks for real products. Each extension solves a specific problem. By leveraging Token 2022 via modern client libraries, you can build applications from frontend or backend scripts that would have required custom smart contracts before.&lt;/p&gt;

&lt;p&gt;Here are some app ideas, the extensions they use, and the tools to start building them.&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.amazonaws.com%2Fuploads%2Farticles%2F6ugcjs97lcplom3rb7xp.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.amazonaws.com%2Fuploads%2Farticles%2F6ugcjs97lcplom3rb7xp.png" alt="A row of simple glowing tokens on the left flowing through thin light streams into a larger central platform with translucent floating cards arranged around it." width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Creator Subscription Platform
&lt;/h2&gt;

&lt;p&gt;Subscribers hold a token that grants monthly access to exclusive content. The token cannot be resold or moved between wallets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Extensions&lt;/strong&gt;: Non-transferable tokens prevent resale; metadata stores the creator name, tier, and subscription period.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it works&lt;/strong&gt;: Create one mint per creator per subscription period, one for "Creator X - January 2026," another for February. When a user subscribes, bundle a USDC payment with a non-transferable token mint into a single atomic transaction.&lt;/p&gt;

&lt;p&gt;Use one mint per period because Token-2022 metadata is mint-level, every holder of a given mint reads the same expiry. Gating access is then a direct read of the period from the mint's on-chain metadata against the current date.&lt;/p&gt;

&lt;p&gt;To reclaim or burn subscription tokens directly, add PermanentDelegate at mint creation. The extension itself can never be removed once the mint is initialized, though the delegate authority can be rotated or set to None via SetAuthority.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tools&lt;/strong&gt;: @solana/kit, @solana-program/token-2022, Next.js or React.&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.amazonaws.com%2Fuploads%2Farticles%2Fshg79r2jwx3fv3s1xqod.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.amazonaws.com%2Fuploads%2Farticles%2Fshg79r2jwx3fv3s1xqod.png" alt="Translucent token" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Loyalty Rewards Program
&lt;/h2&gt;

&lt;p&gt;A business issues loyalty points as tokens. Customers earn points on purchases and redeem them for discounts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Extensions&lt;/strong&gt;: Non-transferable tokens keep points tied to the customer; the business retains mint authority to issue new points; metadata displays the brand.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it works&lt;/strong&gt;: Each business gets its own token mint. The backend mints points directly into the customer's token account on purchase events. Customers connect their wallet to a redemption portal to spend points.&lt;/p&gt;

&lt;p&gt;On-chain identity here is pseudonymous, not private, wallet balances and minting activity are visible to anyone. Non-transferability stops third parties from trading or seizing the points, but doesn't hide them from view.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tools&lt;/strong&gt;: @solana/kit, @solana-program/token-2022, Node.js, React, Solana Pay.&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.amazonaws.com%2Fuploads%2Farticles%2F7qmoyorl0g3rsnjm4fl3.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.amazonaws.com%2Fuploads%2Farticles%2F7qmoyorl0g3rsnjm4fl3.png" alt="A glowing storefront-shaped block with small luminous tokens streaming out toward a translucent wallet card" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Regulated Investment Token
&lt;/h2&gt;

&lt;p&gt;A real estate company tokenizes a property. Only verified investors can hold the token, and the company needs a way to freeze accounts and recover tokens if compliance requires it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Extensions&lt;/strong&gt;: Default account state can be set to frozen so new holders start out locked until KYC clears. Freeze authority handles ongoing compliance actions, like freezing an account that falls out of good standing. A permanent delegate provides a recovery path for legal scenarios. Metadata stores property details and links to legal documentation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it works&lt;/strong&gt;: New investor token accounts start frozen and are thawed after the investor passes KYC. The freeze authority can re-freeze any account later if compliance requires it, and the permanent delegate handles court-ordered recovery if it ever comes to that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tools&lt;/strong&gt;: @solana/kit and @solana-program/token-2022 for the mint, freeze actions, and delegate operations, plus a KYC provider API for investor verification.&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.amazonaws.com%2Fuploads%2Farticles%2Fviovtbjzixdluf7jvfyt.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.amazonaws.com%2Fuploads%2Farticles%2Fviovtbjzixdluf7jvfyt.png" alt="A translucent building-shaped block split into glowing fragments, with a faint shield outline in front and a small padlock symbol floating beside it." width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. In-Game Currency with Transaction Fees
&lt;/h2&gt;

&lt;p&gt;Players earn an in-game currency through gameplay and trade it with each other. The studio automatically collects a small fee on every user-to-user transfer to generate ongoing revenue from the game economy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Extensions&lt;/strong&gt;: Transfer fees collect a percentage on every token movement; metadata handles branding like names, icons, and descriptions; mint authority is retained so the studio can inject new currency into the economy via gameplay achievements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it works&lt;/strong&gt;: Fees are configured at mint creation and collected automatically on token transfers with no custom program or market smart contract required. When players send tokens to each other, the configured fee is withheld directly inside the recipient's token account.&lt;/p&gt;

&lt;p&gt;Because fees accumulate quietly inside thousands of individual player accounts, the studio's withdraw-withheld authority can periodically collect these withheld amounts and pool them into a central treasury wallet, without touching player balances.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tools&lt;/strong&gt;: @solana/kit, @solana-program/token-2022, a game client SDK, and an administrative backend.&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.amazonaws.com%2Fuploads%2Farticles%2Fr7yc59n7a1qxo461hhtm.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.amazonaws.com%2Fuploads%2Farticles%2Fr7yc59n7a1qxo461hhtm.png" alt="Two translucent player avatars facing each other with glowing tokens flowing between them, small droplets falling into a luminous chest below." width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Patterns to Notice
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;@solana-program/token-2022 is often all you need&lt;/strong&gt;. For loyalty, subscriptions, in-game currencies, and yield-bearing wrappers, you can usually compose instructions against it from @solana/kit and skip Rust. Reach for Anchor when you need to build custom programs or manage complex state logic that standard extensions don't cover.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Plan compatibility before mint creation&lt;/strong&gt;. Not every extension pairs with every other extension. Some combinations are blocked because their behaviors conflict (for example, anything that gates or modifies transfers tends to clash with non-transferability). Most extensions can't be added after mint creation, so check the compatibility matrix in the Token-2022 docs before committing to a design.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"No Rust required" is not "no centralized authority required."&lt;/strong&gt; Permanent delegate, freeze authority, mint authority, and withdraw-withheld authority are centralized controls encoded in extension config. If any are live on your token, make sure to state them clearly in your project's docs or UI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start thinking about what you want to build
&lt;/h2&gt;

&lt;p&gt;You have the fundamentals. The app ideas above are starting points, take one, modify it, make it your own.&lt;/p&gt;

&lt;p&gt;Keep building. See you on Discord.&lt;/p&gt;

&lt;p&gt;100 Days of Solana is a free daily coding challenge: &lt;a href="https://mlh.link/solana-100" rel="noopener noreferrer"&gt;https://mlh.link/solana-100&lt;/a&gt;&lt;/p&gt;

</description>
      <category>100daysofsolana</category>
      <category>web3</category>
      <category>learning</category>
      <category>programming</category>
    </item>
    <item>
      <title>$500 Challenge Drop</title>
      <dc:creator>Matthew Revell</dc:creator>
      <pubDate>Fri, 22 May 2026 14:54:18 +0000</pubDate>
      <link>https://dev.to/100daysofsolana/500-challenge-drop-o9</link>
      <guid>https://dev.to/100daysofsolana/500-challenge-drop-o9</guid>
      <description>&lt;p&gt;If you’re taking part in &lt;strong&gt;100 Days of Solana&lt;/strong&gt;, look out for the  &lt;strong&gt;$500 Challenge Drop&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Complete &lt;strong&gt;Monday’s or Tuesday’s challenge&lt;/strong&gt; (Day 36 or 37) and you’ll be entered for a random chance to win &lt;strong&gt;$500&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That’s it: complete the challenge, submit your work, and you’re in the draw.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is 100 Days of Solana?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;100 Days of Solana&lt;/strong&gt; is a daily, hands-on learning challenge from MLH and Solana for Web2 developers who want to understand Solana by building with it.&lt;/p&gt;

&lt;p&gt;Each challenge introduces one practical concept at a time, using familiar JavaScript tooling while gradually moving from fundamentals like keypairs and transactions into tokens, accounts, and programmable assets.&lt;/p&gt;

&lt;p&gt;This week’s challenges continue the move into &lt;strong&gt;Token Extensions&lt;/strong&gt;, where Solana tokens start to feel less like static assets and more like programmable building blocks.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to enter
&lt;/h2&gt;

&lt;p&gt;To be entered for the &lt;strong&gt;$500 Challenge Drop&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Complete &lt;strong&gt;Monday’s or Tuesday’s 100 Days of Solana challenge&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Submit your work at the bottom of the challenge&lt;/li&gt;
&lt;li&gt;You’ll be entered for a random chance to win &lt;strong&gt;$500&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Start here: &lt;a href="https://mlh.link/solana-100" rel="noopener noreferrer"&gt;mlh.link/solana-100&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Complete the challenge, submit your work, and you’re in.&lt;/p&gt;

</description>
      <category>100daysofsolana</category>
      <category>web3</category>
      <category>learning</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>Arc 1 Recap: Keypairs, Wallets, and Solana Fundamentals</title>
      <dc:creator>Matthew Revell</dc:creator>
      <pubDate>Fri, 22 May 2026 10:16:13 +0000</pubDate>
      <link>https://dev.to/100daysofsolana/arc-1-recap-keypairs-wallets-and-solana-fundamentals-2hkj</link>
      <guid>https://dev.to/100daysofsolana/arc-1-recap-keypairs-wallets-and-solana-fundamentals-2hkj</guid>
      <description>&lt;p&gt;Typical web and mobile development often starts with a few familiar questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What's the data model going to look like?&lt;/li&gt;
&lt;li&gt;How am I going to handle user accounts and auth?&lt;/li&gt;
&lt;li&gt;Where am I going to host this thing?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Web3 development has its own set of "how do I start?" questions but they're not the same as what you'd expect if you're coming from a Web2 background.&lt;/p&gt;

&lt;p&gt;Arc 1 of &lt;a href="https://mlh.link/solana-100" rel="noopener noreferrer"&gt;100 Days of Solana&lt;/a&gt; was all about learning those fundamentals.&lt;/p&gt;

&lt;p&gt;What are the Solana equivalents of user accounts, dev/prod environments, data storage, and so on?&lt;/p&gt;

&lt;h2&gt;
  
  
  Identity starts with a keypair
&lt;/h2&gt;

&lt;p&gt;Identify works differently in the Web3 world. It starts with a keypair, rather than an account someone creates for you.&lt;/p&gt;

&lt;p&gt;But the similarities with typical user accounts break down once you look at the detail.&lt;/p&gt;

&lt;p&gt;A Solana keypair is created on your own computer.&lt;/p&gt;

&lt;p&gt;There is no signup request, no account creation API, and no backend service issuing you an identity. Your machine generates two linked pieces of data:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a public key &lt;/li&gt;
&lt;li&gt;a private key&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The public key is your Solana address. You can share it freely, paste it into a faucet, or look it up in a block explorer.&lt;/p&gt;

&lt;p&gt;The private key proves that you control that address. You keep it secret, just like you would keep an SSH private key secret.&lt;/p&gt;

&lt;p&gt;The important thing to understand is this:&lt;/p&gt;

&lt;p&gt;Creating a keypair gives you a valid Solana address, but it does not automatically create anything on-chain.&lt;/p&gt;

&lt;p&gt;That can feel strange if you are coming from Web2. In a normal web app, a user account usually appears only after a row is inserted into a database. On Solana, the address can exist before the network has stored any data for it.&lt;/p&gt;

&lt;p&gt;So there are two related ideas:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The address:&lt;/strong&gt;&lt;br&gt;
This exists as soon as your keypair exists. It is just derived from your public key.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The on-chain account:&lt;/strong&gt;&lt;br&gt;
This exists on a specific Solana cluster only once the network starts storing state for that address. For example, that might happen when you receive devnet SOL from a faucet.&lt;/p&gt;

&lt;p&gt;That means a brand-new address can be completely valid, even if Solana Explorer shows no account data for it yet.&lt;/p&gt;

&lt;p&gt;It is a bit like generating an SSH key. You can create the key locally before any server knows about it. The public key is real immediately, but it only becomes useful on a specific server once that server has been told about it. On Solana, your address is real immediately, but a particular cluster only stores account state for it once something happens there.&lt;/p&gt;

&lt;p&gt;This is one of the first places where the usual Web2 mental model starts to shift. In a Web2 app, an account usually begins as something a service creates and stores. On Solana, control is cryptographic: you control the wallet because you hold the key that can sign for it. No company needs to store your credentials before the address exists, and no admin panel can recover the private key for you.&lt;/p&gt;

&lt;p&gt;That is not the whole story of Solana, but it is one of the foundations everything else builds on. If you do not understand what controls an address, transactions, accounts, tokens, and programs all feel more mysterious than they need to.&lt;/p&gt;

&lt;h2&gt;
  
  
  From generated key to funded address
&lt;/h2&gt;

&lt;p&gt;If you know one thing about Web3, it might be that each blockchain has its own currency. On Solana, that currency is SOL.&lt;/p&gt;

&lt;p&gt;SOL is what pays for activity on the network. In Arc 1, though, we did not start by spending real money. We started with devnet SOL: free test tokens used on Solana’s developer network.&lt;/p&gt;

&lt;p&gt;A few lines of @solana/kit produced a brand-new keypair. The important call was small: generateKeyPairSigner() created a signer and returned an address that we could print straight to the terminal.&lt;/p&gt;

&lt;p&gt;That first step is intentionally plain. Before there is a wallet app, login screen, dashboard, or account setup flow, there is just a keypair:&lt;/p&gt;

&lt;p&gt;a public key, which gives you a Solana address&lt;br&gt;
a private key, which proves you control that address&lt;/p&gt;

&lt;p&gt;We then funded that address with free devnet SOL from the Solana faucet. More precisely, the faucet sent lamports to the address. Lamports are the smallest unit of SOL, a bit like cents are to dollars, except 1 SOL equals 1,000,000,000 lamports.&lt;/p&gt;

&lt;p&gt;After that, a balance check showed that the address now had account state on devnet.&lt;/p&gt;

&lt;p&gt;That is a useful break from the usual Web2 sequence.&lt;/p&gt;

&lt;p&gt;In a typical web app, the user account usually starts as a row in a database. The app creates the account, stores the user record, and then the user can do things.&lt;/p&gt;

&lt;p&gt;On Solana, the address can exist first. It is valid as soon as the keypair is generated. The network only starts storing account state for that address on a particular cluster once something happens there, such as receiving lamports.&lt;/p&gt;

&lt;p&gt;Arc 1 also introduced devnet, one of the most important environments for learning Solana. We were not using local mocks or screenshots of a production system. We were using a real Solana cluster with the same core APIs and concepts as mainnet, but with tokens that have no real-world value.&lt;/p&gt;

&lt;h2&gt;
  
  
  Persistence makes the key useful
&lt;/h2&gt;

&lt;p&gt;Generating a keypair is only the first step.&lt;/p&gt;

&lt;p&gt;If the keypair lives only in memory, it disappears when the script exits. That is fine for a quick demo, but it is not enough if we want to keep using the same Solana identity.&lt;/p&gt;

&lt;p&gt;So the next step was persistence. We saved the keypair to a local JSON file, then loaded it again each time the script ran.&lt;/p&gt;

&lt;p&gt;That gave us the same address across multiple runs.&lt;/p&gt;

&lt;p&gt;This is the point where Solana identity starts to feel less abstract. In a Web2 app, your identity is usually tied to something recoverable: an email address, a password reset flow, maybe a login provider.&lt;/p&gt;

&lt;p&gt;With a keypair, the private key is the thing that matters.&lt;/p&gt;

&lt;p&gt;If someone has the private key, they can sign transactions for that address. They do not need your password. They do not need your email account. They do not need approval from a backend service.&lt;/p&gt;

&lt;p&gt;For devnet, storing a keypair in a local JSON file is fine. There is no real value at stake. But the same approach would be a serious mistake for mainnet funds or production users.&lt;/p&gt;

&lt;p&gt;Arc 1 made that visible early:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Key storage affects security.&lt;/li&gt;
&lt;li&gt;Address reuse affects privacy.&lt;/li&gt;
&lt;li&gt;Signing is how authorization works.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Lamports make value precise
&lt;/h2&gt;

&lt;p&gt;Arc 1 also introduced the unit Solana programs actually work with: lamports.&lt;/p&gt;

&lt;p&gt;Wallets usually show balances in SOL because that is easier for humans to read. But Solana code works in lamports because programs need exact whole-number values.&lt;/p&gt;

&lt;p&gt;One SOL is 1,000,000,000 lamports.&lt;/p&gt;

&lt;p&gt;This should feel familiar if you have worked with payments APIs. Stripe does not ask you to send $19.99 as a decimal amount. It asks for 1999 cents, because money should not be handled with floating point arithmetic.&lt;/p&gt;

&lt;p&gt;Solana follows the same basic idea. The network needs every validator to calculate the same result exactly. That means balances, transfers, and fees are represented as integers, not rounded decimal values.&lt;/p&gt;

&lt;p&gt;So there are two units to keep straight:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SOL is the readable display unit.&lt;/li&gt;
&lt;li&gt;Lamports are the exact unit used by the network.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That small distinction teaches a bigger Solana lesson. What humans see is not always what programs store, sign, or verify. As a developer, you need to know when you are dealing with a friendly display value and when you are dealing with the precise value the network will actually use.&lt;/p&gt;

&lt;h2&gt;
  
  
  The app gets an address, not your private key
&lt;/h2&gt;

&lt;p&gt;After working with raw keypairs in scripts, we connected a real browser wallet.&lt;/p&gt;

&lt;p&gt;Using the Wallet Standard and @wallet-standard/app, we built a browser app that could detect installed wallets such as Phantom, Solflare, and Backpack. The app requested a connection, then displayed the selected address and its devnet balance.&lt;/p&gt;

&lt;p&gt;That is the important distinction: the app could show the address and read the balance, but it never handled the private key.&lt;/p&gt;

&lt;p&gt;The wallet kept custody of the key. The app only received the public address.&lt;/p&gt;

&lt;p&gt;For Web2 developers, this is closer to using an external identity provider than asking users to type their password into every app. The app delegates key management to the wallet. When it needs proof that the user controls an address, it asks the wallet to sign something.&lt;/p&gt;

&lt;p&gt;But connecting a wallet is not the same as a full login session.&lt;/p&gt;

&lt;p&gt;A wallet connection gives the app an address. It tells the app, “This is the address the user has chosen to share.” It does not automatically prove that the user should stay logged in, access a private account, or perform sensitive actions.&lt;/p&gt;

&lt;p&gt;For that, an app usually needs a separate signing step. The wallet signs a message or transaction, and that signature proves control of the address. The wallet should ask the user before signing anything meaningful.&lt;/p&gt;

&lt;p&gt;That is why real Solana apps should not ask users to paste secret keys into a form. The private key stays in the wallet. The app asks the wallet for addresses and signatures.&lt;/p&gt;

&lt;p&gt;Arc 1 covered both raw keypair management and browser wallet connection because they teach different parts of the same model:&lt;/p&gt;

&lt;p&gt;Raw keypairs show what is happening underneath.&lt;br&gt;
Wallet connections show how users should normally interact with apps.&lt;/p&gt;

&lt;p&gt;If you come from Web2, connecting a wallet can look a bit like “Sign in with Google.”&lt;/p&gt;

&lt;p&gt;Your app does not handle the user’s Google password. The user approves access through Google, and your app receives enough information to recognize them.&lt;/p&gt;

&lt;p&gt;A Solana wallet plays a similar role in the app experience. It holds the user’s keys, asks for approval, and gives the app a public address to work with.&lt;/p&gt;

&lt;p&gt;But the comparison only gets you so far.&lt;/p&gt;

&lt;p&gt;Google is an identity provider. It can reset access, suspend accounts, enforce policies, and sit between the user and the apps they use.&lt;/p&gt;

&lt;p&gt;A non-custodial wallet is different. It manages keys and asks the user to approve signatures, but it cannot recreate a lost private key. It also cannot invalidate a private key that still exists somewhere else.&lt;/p&gt;

&lt;p&gt;That changes the shape of identity.&lt;/p&gt;

&lt;p&gt;In a typical Web2 app, identity often starts with a database row. The app creates a user account, stores profile data, and provides recovery flows if something goes wrong.&lt;/p&gt;

&lt;p&gt;On Solana, the address is the durable identifier. A signature is the proof that someone controls that address.&lt;/p&gt;

&lt;p&gt;Your app can associate data with an address, but it does not own the user’s identity.&lt;/p&gt;

&lt;p&gt;That can feel like losing control if you are used to backend-owned accounts. But it is one of the tradeoffs Solana asks developers to understand. Users can bring the same address to different Solana apps. They can connect, approve, disconnect, and move on.&lt;/p&gt;

&lt;p&gt;That portability is powerful, but it has a privacy cost. If someone reuses the same address across many apps, their activity may be easier to link together.&lt;/p&gt;

&lt;p&gt;That is why the Web2 analogies in Arc 1 are useful, but only up to a point:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SSH keys help explain keypairs.&lt;/li&gt;
&lt;li&gt;Payments APIs help explain lamports.&lt;/li&gt;
&lt;li&gt;OAuth-style login helps explain wallet connection.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of those comparisons maps perfectly. But each gives Web2 developers a foothold before the Solana model starts to feel natural.&lt;/p&gt;

&lt;h2&gt;
  
  
  There is no ordinary password reset
&lt;/h2&gt;

&lt;p&gt;Arc 1 also introduced one of the harder parts of the Solana mental model:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;If you lose the private key, there is no ordinary password reset.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In a typical Web2 app, the service controls the account system. That is why it can offer recovery flows. You can reset a password, verify an email address, contact support, or use an identity provider to get back in.&lt;/p&gt;

&lt;p&gt;That convenience comes with a tradeoff. The same service can also lock you out, leak credential data, change the rules, or shut the account down.&lt;/p&gt;

&lt;p&gt;Solana works differently.&lt;/p&gt;

&lt;p&gt;On Solana, control comes from signing. If you can sign with the private key for an address, you control that address. If you cannot sign, the network does not know that you are “really” the owner.&lt;/p&gt;

&lt;p&gt;That makes key storage a real product decision, not just a technical detail.&lt;/p&gt;

&lt;p&gt;Different approaches make different tradeoffs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Browser wallets are convenient, but connected to everyday devices.&lt;/li&gt;
&lt;li&gt;Hardware wallets add protection, but introduce more friction.&lt;/li&gt;
&lt;li&gt;Custodial services can offer recovery, but someone else holds or manages the keys.&lt;/li&gt;
&lt;li&gt;Multisig tools can share control across multiple people or devices.&lt;/li&gt;
&lt;li&gt;Cold storage can improve security, but is less practical for frequent use.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The rule for real apps is simple:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do not ask users to paste secret keys or seed phrases into your app.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A Solana app should connect to a wallet and ask for signatures. The wallet keeps the private key. The user approves or rejects the request. The app receives only what it needs.&lt;/p&gt;

&lt;p&gt;Recovery also has to be designed deliberately. It is not a default support flow you get for free. Seed phrases, hardware wallets, multisig setups, and custody providers all exist because key loss, key theft, and shared control are real product problems.&lt;/p&gt;

&lt;p&gt;Once that clicks, self-custody stops sounding like a slogan. It becomes a set of design choices about security, usability, and recovery.&lt;/p&gt;

&lt;p&gt;You are building around a different foundation: control is proven by signatures, not granted by a service.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Arc 1 sets up
&lt;/h2&gt;

&lt;p&gt;By the end of Arc 1, we had worked through the core Solana fundamentals that everything else builds on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;generating a keypair in code&lt;/li&gt;
&lt;li&gt;understanding public keys and private keys&lt;/li&gt;
&lt;li&gt;funding an address on devnet&lt;/li&gt;
&lt;li&gt;seeing the difference between an address and account state&lt;/li&gt;
&lt;li&gt;saving and reloading a keypair from a local file&lt;/li&gt;
&lt;li&gt;converting between SOL and lamports&lt;/li&gt;
&lt;li&gt;reading raw lamport balances in logs&lt;/li&gt;
&lt;li&gt;connecting a browser wallet to a web app

&lt;ul&gt;
&lt;li&gt;understanding that connecting a wallet and signing are separate actions&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;explaining Solana identity in our own words&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;For Web2 developers, some of this should feel familiar.&lt;/p&gt;

&lt;p&gt;If you have generated an SSH key, you already have a starting point for understanding keypairs. If you have used “Sign in with Google,” you already have a rough analogy for wallet connection. If you have handled money in cents through a payments API, you already understand why Solana uses lamports instead of decimal SOL values in code.&lt;/p&gt;

&lt;p&gt;None of those comparisons is perfect. But they give us useful footholds.&lt;/p&gt;

&lt;p&gt;Want to see the full thing? Check out the &lt;a href="https://mlh.link/solana-100" rel="noopener noreferrer"&gt;100 Days of Solana daily challenge series&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>100daysofsolana</category>
      <category>web3</category>
      <category>learning</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>Epoch 2: From Reading to Creating</title>
      <dc:creator>Matthew Revell</dc:creator>
      <pubDate>Mon, 18 May 2026 12:18:24 +0000</pubDate>
      <link>https://dev.to/100daysofsolana/epoch-2-from-reading-to-creating-4g2p</link>
      <guid>https://dev.to/100daysofsolana/epoch-2-from-reading-to-creating-4g2p</guid>
      <description>&lt;p&gt;Epoch 1 was about learning how Solana works: wallets, accounts, transactions, balances, and on-chain state.&lt;/p&gt;

&lt;p&gt;Epoch 2 turns that foundation into something you can build with. You’ll create tokens, add metadata, experiment with fees and transfer rules, mint NFTs, and see how assets can carry behavior of their own.&lt;/p&gt;

&lt;h2&gt;
  
  
  What "programmable asset" actually means
&lt;/h2&gt;

&lt;p&gt;We first met SOL pretty early in Epoch 1. It is the currency used on Solana to pay fees, fund accounts, and it gave you a clean first lap around transactions and Explorer.&lt;/p&gt;

&lt;p&gt;So it would be easy to think of Solana mainly as a network for moving SOL around.&lt;/p&gt;

&lt;p&gt;But Solana also lets you create assets whose rules are part of the asset itself: who can create more, who can hold them, whether they can move, whether transfers take a fee, and what metadata other apps can read.&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.amazonaws.com%2Fuploads%2Farticles%2Fkc3i2kmwu7bo5r2tpf9k.jpg" 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.amazonaws.com%2Fuploads%2Farticles%2Fkc3i2kmwu7bo5r2tpf9k.jpg" alt="Abstract teal and green illustration showing simple token-like discs flowing into a larger network of connected digital panels, representing basic assets becoming programmable assets with metadata, permissions, and rules." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That might sound like a lot, but the next four weeks of 100 Days of Solana break it down step by step.&lt;/p&gt;

&lt;p&gt;If you've built Web2 products, you've probably worked with things users can earn, hold, spend, unlock, or display: loyalty points, in-app credits, course badges, gaming currencies, access passes, reputation scores.&lt;/p&gt;

&lt;p&gt;In a traditional app, those things live in your database. Your backend decides how they are created, who they belong to, whether they can move between users, and what they can be used for.&lt;/p&gt;

&lt;p&gt;On Solana, some of those rules can move into the asset itself.&lt;/p&gt;

&lt;p&gt;To make that work, Solana splits those ideas across a few building blocks. A mint describes the asset. Token accounts record who holds it. Authorities decide who can create more, freeze accounts, update metadata, or collect fees.&lt;/p&gt;

&lt;p&gt;A basic token can answer the first question: who holds how much?&lt;/p&gt;

&lt;p&gt;But product ideas usually need more than that. What is this asset called? Can another app recognize it? Can it be transferred? Should transfers take a fee? Should a new holder be approved before they can use it?&lt;/p&gt;

&lt;p&gt;Token-2022 is Solana’s token program for that next layer. It adds optional extensions, which are predefined features for metadata, fees, frozen accounts, non-transferability, interest-bearing display amounts, and other asset behaviors.&lt;/p&gt;

&lt;p&gt;Some of those rules are configured on the mint. Some are tracked on token accounts. But the important shift is this: the rules are enforced by the token program, not only by your application.&lt;/p&gt;

&lt;h2&gt;
  
  
  Arc 5: A token and then a name for it
&lt;/h2&gt;

&lt;p&gt;The first arc of Epoch 2 starts with the simplest asset you can create: a token on devnet.&lt;/p&gt;

&lt;p&gt;You create the mint. You issue some supply to your own wallet. You open Explorer and there it is: an asset you created, controlled by your wallet, sitting on a public network anyone can inspect.&lt;/p&gt;

&lt;p&gt;At first, though, it is still pretty bare.&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.amazonaws.com%2Fuploads%2Farticles%2Fbkg44qa9igyhvr1zwo62.jpg" 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.amazonaws.com%2Fuploads%2Farticles%2Fbkg44qa9igyhvr1zwo62.jpg" alt="Abstract teal and green illustration showing a simple token becoming a recognizable asset with metadata, then being blocked from transfer by a lock, representing non-transferable token rules." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A mint address is useful to a program but it does not mean much to a person. It is just a long base58 string. So the next step is metadata: a name, a symbol, and a URI that can point to richer details such as an image and traits.&lt;/p&gt;

&lt;p&gt;That is when the token starts to feel less like a raw account and more like something you can work with.&lt;/p&gt;

&lt;p&gt;This first arc of Epoch 2 also introduces a more important design choice: should this asset be transferable?&lt;/p&gt;

&lt;p&gt;Not every asset should move freely. A certificate of completion, a verified badge, or a reputation score should belong to the person who earned it. In this arc, you will create a non-transferable token and try to send it to another wallet. And you'll see that the token program refuses the transfer because the rule is part of the asset.&lt;/p&gt;

&lt;h2&gt;
  
  
  Arc 6: Rules the network enforces for you
&lt;/h2&gt;

&lt;p&gt;Arc 6 is where Token-2022 starts to matter.&lt;/p&gt;

&lt;p&gt;You will create an interest-bearing token: a mint with an interest rate in its configuration. The raw balance does not change, but compatible wallets and clients can calculate a display amount that grows over time.&lt;/p&gt;

&lt;p&gt;In a Web2 app, that kind of behavior might need timestamps, background jobs, database updates, and careful UI logic. With Token-2022, the rate is part of the token configuration, and compatible clients use it to calculate the displayed balance.&lt;/p&gt;

&lt;p&gt;Token-2022 calls these optional features extensions. An extension is a built-in capability you add to a token: metadata, transfer fees, interest-bearing display amounts, frozen accounts, non-transferability, and so on.&lt;/p&gt;

&lt;p&gt;In Arc 6, you start combining them.&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.amazonaws.com%2Fuploads%2Farticles%2Fgcr11149vsg008mhpbuc.jpg" 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.amazonaws.com%2Fuploads%2Farticles%2Fgcr11149vsg008mhpbuc.jpg" alt="Abstract teal and green illustration showing a central token connected to modular panels for metadata, fees, interest, frozen accounts, transfer restrictions, and credentials, representing Token-2022 extensions as built-in asset rules." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A token might have metadata, a transfer fee, an interest rate, or other built-in rules. Some extensions can work together; others cannot. That means token design starts to feel a little like schema design: you need to decide what the asset should be able to do before you create it, because some choices are permanent and others are hard to change later.&lt;/p&gt;

&lt;p&gt;The arc also introduces default frozen accounts. This means new token accounts start frozen and cannot be used until a freeze authority thaws them.&lt;/p&gt;

&lt;p&gt;That gives you a simple version of a gated asset flow. Not every holder is automatically eligible. Someone has to approve the account before it can transact.&lt;/p&gt;

&lt;p&gt;Finally, you will combine non-transferable tokens with permanent delegates to model a revocable credential. The holder cannot transfer it to someone else, but a designated authority can still burn it.&lt;/p&gt;

&lt;p&gt;That gives you something close to: this credential can be issued and revoked, but it cannot be passed on.&lt;/p&gt;

&lt;p&gt;You could model that in a database, but the rule would live inside your application. Here, the rule is part of how the asset works.&lt;/p&gt;

&lt;h2&gt;
  
  
  Arc 7: NFTs use the same building blocks
&lt;/h2&gt;

&lt;p&gt;Arc 7 moves from fungible tokens into NFTs.&lt;/p&gt;

&lt;p&gt;The useful surprise is that NFTs are not a completely separate technical world. At their simplest, they use the same basic ingredients you will have already covered up to that point: a mint, token accounts, metadata, and authority.&lt;/p&gt;

&lt;p&gt;The difference is uniqueness.&lt;/p&gt;

&lt;p&gt;A normal token is designed so many people can hold units of the same asset. An NFT is designed so there is only one of that asset. One token. One current owner. One piece of metadata that explains what it represents.&lt;/p&gt;

&lt;p&gt;You will build the simplest version first: a unique asset on devnet that only your wallet owns. Then you will add the things people expect from an NFT: a name, an image URI, traits, and membership in a collection.&lt;/p&gt;

&lt;p&gt;That is where metadata matters again. The NFT stops being just a unique on-chain asset and starts becoming something wallets, explorers, and other apps can present in a recognizable way.&lt;/p&gt;

&lt;p&gt;The most satisfying moment in this arc comes when you update it.&lt;/p&gt;

&lt;p&gt;You change the metadata on your live devnet NFT, then refresh a compatible wallet or explorer. The image changes. The name changes. The transaction has a signature anyone can audit, and the updated state is visible to compatible tools that read the standard.&lt;/p&gt;

&lt;p&gt;You are not just editing a file or changing a row in your own database. You are changing asset state on a public network.&lt;/p&gt;

&lt;h2&gt;
  
  
  Arc 8: Assets that carry their own behavior
&lt;/h2&gt;

&lt;p&gt;Arc 8 brings the whole epoch together.&lt;/p&gt;

&lt;p&gt;You will create a fee-bearing token with a 1% transfer fee. Send 100 tokens to another wallet, and the recipient receives 99. The remaining 1 is withheld automatically according to the rules configured on the token.&lt;/p&gt;

&lt;p&gt;That is the important part: your application did not calculate the fee, intercept the transfer, or run a background job. The token program enforced the rule.&lt;/p&gt;

&lt;p&gt;Then you will run the rest of the lifecycle. You will inspect the withheld fees, harvest them from token accounts up to the mint, and withdraw them using the withdraw authority.&lt;/p&gt;

&lt;p&gt;That gives you the full pattern: transfer, withhold, harvest, withdraw.&lt;/p&gt;

&lt;p&gt;From there, the arc pulls together the ideas from the previous weeks. You will stack interest behavior on top of transfer fees. You will audit token mints to understand which rules are configured. You will revisit non-transferable tokens now that you have seen how fees, metadata, frozen accounts, and authorities all fit together.&lt;/p&gt;

&lt;p&gt;By this point, Token-2022 should feel less like a list of features and more like a design toolkit.&lt;/p&gt;

&lt;p&gt;The point is not that every token should use every extension. Most should not. The point is that you now have a vocabulary for asset behavior: fees, identity, display logic, access control, transfer restrictions, and revocation.&lt;/p&gt;

&lt;p&gt;You can design those behaviors without writing a custom Solana program from scratch.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you'll walk away with
&lt;/h2&gt;

&lt;p&gt;By the end of Epoch 2, you’ll have a small portfolio of real Solana experiments on devnet.&lt;/p&gt;

&lt;p&gt;Custom tokens with metadata. Transfer fees configured and inspected. Interest-bearing display amounts. Frozen accounts thawed by an authority. Non-transferable assets that refuse to move. A 1-of-1 NFT minted, added to a collection, updated, and verified on-chain. A fee-bearing token whose withheld fees you harvested and withdrew yourself.&lt;/p&gt;

&lt;p&gt;You’ll also have written about what you built.&lt;/p&gt;

&lt;p&gt;And that's because explaining a concept in your own words is one of the best ways to find out whether you actually understand it.&lt;/p&gt;

&lt;p&gt;So, let's get into it!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://mlh.link/solana-100" rel="noopener noreferrer"&gt;Join us on the 100 Days of Solana journey.&lt;/a&gt;&lt;/p&gt;

</description>
      <category>100daysofsolana</category>
      <category>web3</category>
      <category>learning</category>
      <category>programming</category>
    </item>
    <item>
      <title>What Is Token 2022 and Why Solana Built It</title>
      <dc:creator>Vincent Jande</dc:creator>
      <pubDate>Fri, 15 May 2026 19:29:20 +0000</pubDate>
      <link>https://dev.to/100daysofsolana/what-is-token-2022-and-why-solana-built-it-53io</link>
      <guid>https://dev.to/100daysofsolana/what-is-token-2022-and-why-solana-built-it-53io</guid>
      <description>&lt;p&gt;Last week, we examined the economic theories that underpin the value of Web3 tokens. This week, we are shifting our focus to the engineering reality of how these assets actually function on the Solana blockchain. As you begin building with tokens in the upcoming challenges, the nuances of account ownership and program logic will become the foundation of your development workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Library Model: Why One Program Rules
&lt;/h2&gt;

&lt;p&gt;On many virtual machine blockchains, every token exists as its own independent smart contract that contains both the rules and the ledger. In that model, the ledger for a token is essentially a massive list stored inside a single contract. Solana utilizes a fundamentally different architecture by strictly separating logic from data, which is known as an account-based architecture.&lt;/p&gt;

&lt;p&gt;Instead of requiring developers to deploy new code for every individual asset, Solana provides the &lt;strong&gt;SPL Token Program&lt;/strong&gt;. This single, audited, and highly optimized program handles the logic for nearly every standard token on the network. When you create a new token on Solana, you are not deploying a smart contract. You are instead asking the Token Program to initialize a new Mint Account and designating that program as the owner. In this context, the owner refers specifically to the program that has the permission to modify the data within that account.&lt;/p&gt;

&lt;p&gt;This standardized approach ensures that every asset follows the same predictable execution paths. This consistency is a major security feature because it reduces the surface area for logic bugs and allows every wallet or exchange to interact with any token without needing to audit unique code. The original Token Program was designed with a rigid, fixed-size account layout that handled the basics like minting and transferring, but it lacked the flexibility to adapt to the complex requirements of modern decentralized finance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Accounts: Your Blockchain Mailboxes
&lt;/h2&gt;

&lt;p&gt;To understand Solana development, you must internalize the concept that your wallet does not actually contain tokens. Instead, your wallet address acts as an authority over a specific Token Account. You can think of your wallet as a master key and the Token Account as a specialized mailbox located elsewhere on the ledger. If you wish to hold three different types of tokens, you must have three distinct Token Accounts.&lt;/p&gt;

&lt;p&gt;Allocating space on the blockchain ledger for these data accounts requires a deposit of SOL known as the &lt;strong&gt;Rent-Exempt Minimum&lt;/strong&gt;. This deposit ensures the network remains performant by preventing the accumulation of empty accounts. In modern applications, we typically use the Associated Token Account pattern. This is a deterministic way of finding a token account address using a user’s main wallet address, the token’s mint address, and the specific Token Program ID being used. Because the address is predictable, the sender can automatically initialize the mailbox for a user before sending them tokens, which solves the friction of manual account creation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Authorities and Governance
&lt;/h2&gt;

&lt;p&gt;Every token minted on Solana is governed by specific authorities that define the lifecycle of the asset. The &lt;strong&gt;Mint Authority&lt;/strong&gt; is the address granted permission to generate new tokens, which directly controls the circulating supply. When a project claims its supply is hard-capped, it generally means they have renounced this authority by setting it to null. Once renounced, the supply is mathematically frozen and no further tokens can ever be created.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;Freeze Authority&lt;/strong&gt; is a more powerful component that allows a specific wallet to lock an individual token account. A frozen account is completely immobilized and cannot receive, transfer, or burn tokens until it is explicitly thawed by the authority. While this level of control is often viewed with skepticism in purely decentralized communities, it is crucial for regulated assets, such as stablecoins, to comply with legal requirements or freeze assets involved in theft. For a developer, auditing these authorities is the first step in assessing the risk profile of any token.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Evolution: Token 2022
&lt;/h2&gt;

&lt;p&gt;As the Solana ecosystem matured, developers began hitting the ceiling of the original Token Program’s fixed layout. If you wanted to add a transfer fee or metadata to a token, there was simply no space left in the original account structure to store that information. This led to the creation of &lt;strong&gt;Token 2022&lt;/strong&gt;, which is also known as the &lt;strong&gt;Token Extensions Program&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Token 2022 is an upgraded version of the original functionality that utilizes a more flexible data structure. This allows the program to support an expandable list of features without breaking compatibility with the original instruction set.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Transfer Fees&lt;/strong&gt;: This extension allows projects to implement protocol-level fees without custom token logic. A configurable fee can be withheld from transfers and later withdrawn by the designated authority, allowing projects to generate revenue directly from token activity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Confidential Transfers&lt;/strong&gt;: This extension utilizes Zero-Knowledge Proofs to encrypt balances and transfer amounts. The network can mathematically verify that a transaction is valid without ever revealing the specific numbers to the public ledger.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transfer Hooks&lt;/strong&gt;: This is a powerful tool for developers because it allows a mint to require that every transfer call a secondary program. This enables logic such as mandatory identity checks or automated royalty enforcement.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Native Metadata&lt;/strong&gt;: Developers can now store names and symbols directly within the mint account. This reduces the reliance on separate metadata systems for simpler use cases and reduces the overall complexity of your code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Permanent Delegate&lt;/strong&gt;: This extension allows a specific authority to move or burn tokens from any account. While powerful, it is essential for institutional compliance and the recovery of assets in legal disputes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why This Matters for the Challenges Ahead
&lt;/h2&gt;

&lt;p&gt;As you progress through the coding challenges, you will be responsible for choosing when to use the legacy Token Program and when to leverage the advanced capabilities of Token 2022. Understanding the relationship between programs and accounts will save you hours of debugging when a transaction fails due to a missing account or an unauthorized signer. You are not just learning to code, you are learning to architect on a global and parallelized ledger. The flexibility of Token 2022 represents the next chapter of Solana’s growth by shifting tokens from simple balance entries into complex and programmable financial instruments.&lt;/p&gt;

&lt;p&gt;Keep building and pay close attention to the account constraints in your upcoming programs. The precision you apply today will be the security of the protocols you deploy tomorrow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;See you on Discord&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;100 Days of Solana&lt;/strong&gt; is a free daily coding challenge. If you have not joined yet, you can start your journey here: &lt;a href="https://mlh.link/solana-100" rel="noopener noreferrer"&gt;https://mlh.link/solana-100&lt;/a&gt;&lt;/p&gt;

</description>
      <category>100daysofsolana</category>
      <category>learning</category>
      <category>web3</category>
      <category>solana</category>
    </item>
    <item>
      <title>Solana Writing Challenge: End of Epoch 1</title>
      <dc:creator>Matthew Revell</dc:creator>
      <pubDate>Fri, 15 May 2026 09:45:48 +0000</pubDate>
      <link>https://dev.to/100daysofsolana/solana-writing-challenge-end-of-epoch-1-1jl9</link>
      <guid>https://dev.to/100daysofsolana/solana-writing-challenge-end-of-epoch-1-1jl9</guid>
      <description>&lt;p&gt;If you’ve been taking part in &lt;a href="https://mlh.link/solana-100" rel="noopener noreferrer"&gt;100 Days of Solana&lt;/a&gt; so far, you’ve probably discovered that Web3 isn’t as mysterious as it first appears.&lt;/p&gt;

&lt;p&gt;And now it's your turn to help other web and mobile developers make the same realization.&lt;/p&gt;

&lt;p&gt;To celebrate the end of Epoch 1, where we looked at Solana fundamentals, we're running a week-long &lt;strong&gt;100 Days of Solana Writing Challenge&lt;/strong&gt;. The focus is simple: write a DEV post that helps another developer understand, build, debug, or try something in Solana.&lt;/p&gt;

&lt;p&gt;You don’t need to be an expert. You don’t need to write the definitive guide to anything. The best post might be a small explanation, a useful analogy, a bug you fixed, a project you built, or the moment a concept finally clicked.&lt;/p&gt;

&lt;p&gt;What matters is that another developer can read it and come away thinking: “Okay, that makes more sense now.”&lt;/p&gt;

&lt;h2&gt;
  
  
  Prizes
&lt;/h2&gt;

&lt;p&gt;And, of course, we have prizes.&lt;/p&gt;

&lt;p&gt;We’ll award &lt;strong&gt;$500&lt;/strong&gt; prizes in three categories:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Most helpful post:&lt;/strong&gt; for the post that does the best job of helping another developer understand, build, debug, or try something in Solana.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Most read, on-topic post:&lt;/strong&gt; for the eligible post with the most reads during the challenge period.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best posting streak:&lt;/strong&gt; for the strongest set of &lt;strong&gt;four high-quality, helpful posts&lt;/strong&gt; published during the challenge week.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We also have &lt;strong&gt;ten DEV++ subscriptions&lt;/strong&gt; for notable submissions that stand out for clarity, originality, practical value, or community spirit.&lt;/p&gt;

&lt;p&gt;To be eligible:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your post must be published on DEV between &lt;strong&gt;15 May and 22 May&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Your post must include the &lt;a href="https://dev.to/100daysofsolana"&gt;100daysofsolana&lt;/a&gt; tag&lt;/li&gt;
&lt;li&gt;Your post must be relevant to Solana or your 100 Days of Solana learning journey&lt;/li&gt;
&lt;li&gt;Your post must be written to help other developers, not just to announce participation&lt;/li&gt;
&lt;li&gt;You must be registered for the &lt;a href="https://mlh.link/solana-100" rel="noopener noreferrer"&gt;100 Days of Solana challenge&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://mlh.link/solanawrite-epoch1" rel="noopener noreferrer"&gt;Use our template to get started&lt;/a&gt;!&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Questions?
&lt;/h2&gt;

&lt;p&gt;Have questions about the challenge or whether your post idea fits?&lt;/p&gt;

&lt;p&gt;Ask in the &lt;strong&gt;100 Days of Solana Discord channel&lt;/strong&gt;. We’re happy to help you find an angle, shape an idea, or turn something you learned into a useful DEV post.&lt;/p&gt;

&lt;p&gt;If you're having trouble joining the Discord, &lt;a href="mailto:solana-100@mlh.io"&gt;email us&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>100daysofsolana</category>
      <category>web3</category>
      <category>learning</category>
      <category>writing</category>
    </item>
    <item>
      <title>Arc 3 Catch-Up: Solana Transactions Explained for Web2 Developers</title>
      <dc:creator>Matthew Revell</dc:creator>
      <pubDate>Mon, 11 May 2026 12:32:11 +0000</pubDate>
      <link>https://dev.to/100daysofsolana/arc-3-catch-up-solana-transactions-explained-for-web2-developers-4f5i</link>
      <guid>https://dev.to/100daysofsolana/arc-3-catch-up-solana-transactions-explained-for-web2-developers-4f5i</guid>
      <description>&lt;p&gt;Arc 3 of &lt;a href="https://mlh.link/solana-100" rel="noopener noreferrer"&gt;100 Days of Solana&lt;/a&gt; was the arc where Solana stopped being something we &lt;em&gt;read from&lt;/em&gt; and started being something we &lt;em&gt;wrote to&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Across the arc, we inspected transactions, sent SOL on devnet, built a transfer tool, tracked confirmation, and deliberately triggered failures. That shift changes how everything else fits together: accounts, programs, fees, confirmation, errors, and application state.&lt;/p&gt;

&lt;p&gt;They all hang off one idea:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A Solana transaction is a signed request to change on-chain state.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Reading is pretty much like Web2. Writing is not.
&lt;/h2&gt;

&lt;p&gt;Reading from Solana maps neatly onto things most Web2 developers already do. You ask for a balance. You fetch account data. You look up a transaction. The network answers.&lt;/p&gt;

&lt;p&gt;Writing is different. It is closer to making a &lt;code&gt;POST&lt;/code&gt; request that changes production data, except there is no single server receiving it.&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.amazonaws.com%2Fuploads%2Farticles%2Fwetpmub28c6vp6eabxyh.jpg" 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.amazonaws.com%2Fuploads%2Farticles%2Fwetpmub28c6vp6eabxyh.jpg" alt="Infographic titled “From Read to Write” showing the Arc 3 mental model for 100 Days of Solana. The left panel, labeled “READ,” lists getBalance(), fetch account data, look up transaction, and network answers. An arrow points to the right panel, labeled “WRITE,” which lists build transaction, sign transaction, submit to network, and state changes." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In a Web2 app, a write usually follows a familiar path: take some input, check authorization, run logic, change state, return a result. Solana has the same broad shape, but the mechanics are different. To change state, you create a transaction: a signed, time-limited message that says which accounts are involved, which program should run, and what instruction that program should execute.&lt;/p&gt;

&lt;p&gt;That is why a SOL transfer is such a useful first write. It is small enough to understand, but it contains the ingredients that keep showing up across Solana development: accounts, signatures, instructions, fees, confirmation, and failure modes.&lt;/p&gt;

&lt;p&gt;Calling a program, minting a token, swapping an asset, or updating application state all build on the same foundation. The details change, but the shape remains familiar: prepare the instruction, sign the transaction, submit it to the network, and handle the result.&lt;/p&gt;

&lt;p&gt;That was the real purpose of Arc 3: not just sending SOL, but learning Solana’s write path.&lt;/p&gt;

&lt;h2&gt;
  
  
  The HTTP analogy helps, until it doesn't
&lt;/h2&gt;

&lt;p&gt;If you're coming from a Web2 background, the easiest on-ramp is to think of a Solana transaction as something like an HTTP request. At first, the comparison is useful. A transaction has structure, travels over the network, carries authorization, asks another system to do something, and produces a result you can inspect afterwards.&lt;/p&gt;

&lt;p&gt;But it breaks down once you look closer.&lt;/p&gt;

&lt;p&gt;An HTTP request is handled by an application server or backend service. A Solana transaction is validated by a network.&lt;/p&gt;

&lt;p&gt;An HTTP request usually authenticates with a cookie, API key, or bearer token. A Solana transaction is signed with a cryptographic keypair before it leaves your machine.&lt;/p&gt;

&lt;p&gt;And unlike a chain of separate API calls, a Solana transaction is atomic. If one instruction fails, the whole transaction fails. You do not get partial success where step two worked but step three did not.&lt;/p&gt;

&lt;p&gt;There is also a freshness constraint. Every transaction includes a recent blockhash, which means it is only valid for a short window before the network refuses it.&lt;/p&gt;

&lt;p&gt;So maybe it's better to think of it like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A Solana transaction is a signed message that says: “Run these instructions, against these accounts, before this short validity window closes.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That makes it different from a normal API request. It is authorized before it is sent, it only works for a short window, and it succeeds or fails as one unit. On Solana, that short window is enforced with a recent blockhash, which stops old transactions from being replayed forever.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's actually inside a transaction
&lt;/h2&gt;

&lt;p&gt;Transactions can feel abstract because most of the time we only see the receipt: a signature, a success message, or an Explorer link.&lt;/p&gt;

&lt;p&gt;But a transaction is not just a receipt. It is the actual message sent to the network.&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.amazonaws.com%2Fuploads%2Farticles%2Fnp7qopgmw5gpi8h9u5ll.jpg" 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.amazonaws.com%2Fuploads%2Farticles%2Fnp7qopgmw5gpi8h9u5ll.jpg" alt="Infographic titled “What’s Inside a Transaction?” showing the anatomy of a Solana transaction. A central transaction card lists four parts: signatures, which show who authorized the transaction; account keys, which show which accounts are touched; recent blockhash, used as a freshness check; and instructions, which define what should run. A side note explains that account order matters because the header uses position to determine signer, writable, and read-only permissions." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you have ever opened your browser’s network tab and inspected a request, the idea is similar. You stop seeing “the button worked” and start seeing the parts underneath: who sent the request, what data went with it, what endpoint it hit, and what the server returned.&lt;/p&gt;

&lt;p&gt;Solana gives us the same kind of visibility. Using &lt;code&gt;solana confirm -v&lt;/code&gt; and Solana Explorer, you can open up a transaction and see the main pieces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Signatures&lt;/strong&gt;: proof of who authorized the transaction.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Account keys&lt;/strong&gt;: the accounts the transaction reads from or writes to.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recent blockhash&lt;/strong&gt;: the freshness check that helps stop old transactions being replayed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instructions&lt;/strong&gt;: the operations the transaction asks a program to run.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The account list is not just a bag of addresses. Its ordering matters. The transaction header uses position to work out which accounts are signers, which are writable, and which are read-only.&lt;/p&gt;

&lt;p&gt;You do not need to memorize the whole transaction format before building anything. The important thing is to see that a transaction is structured data, not magic.&lt;/p&gt;

&lt;p&gt;It has authorization. It has inputs. It has instructions. It has constraints.&lt;/p&gt;

&lt;p&gt;Once you have seen that structure once, a transaction stops feeling like a mysterious blockchain blob and starts looking more like something a developer can inspect, reason about, and debug.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a simple SOL transfer teaches so much
&lt;/h2&gt;

&lt;p&gt;A SOL transfer is a good first write because it is small enough to follow, but complete enough to show the full pattern.&lt;/p&gt;

&lt;p&gt;In Web2 terms, it is like starting with the simplest useful endpoint: &lt;code&gt;POST /transfer&lt;/code&gt;. You are not building the whole application yet, but you are exercising the important pieces of a write path.&lt;/p&gt;

&lt;p&gt;A single SOL transfer includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a &lt;strong&gt;fee payer&lt;/strong&gt;, who pays for the transaction&lt;/li&gt;
&lt;li&gt;a &lt;strong&gt;source account&lt;/strong&gt;, where the SOL comes from&lt;/li&gt;
&lt;li&gt;a &lt;strong&gt;recipient public key&lt;/strong&gt;, where the SOL is going&lt;/li&gt;
&lt;li&gt;an &lt;strong&gt;amount&lt;/strong&gt;, measured in lamports&lt;/li&gt;
&lt;li&gt;a &lt;strong&gt;System Program instruction&lt;/strong&gt;, which performs the transfer&lt;/li&gt;
&lt;li&gt;a &lt;strong&gt;signature&lt;/strong&gt;, which authorizes it&lt;/li&gt;
&lt;li&gt;an &lt;strong&gt;Explorer record&lt;/strong&gt;, which proves what happened&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is a lot of Solana in one action. It shows accounts, signatures, instructions, fees, confirmation, and verification without needing to write a custom program first.&lt;/p&gt;

&lt;p&gt;It also introduces an important idea for Arc 4: a public key can exist before there is an on-chain account for it. When SOL lands at a brand-new recipient, the System Program can create the account state the network will track from that point on.&lt;/p&gt;

&lt;p&gt;That is the first hint that an “account” on Solana is not just another word for “wallet.” It is where state lives.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping a transfer in a tool
&lt;/h2&gt;

&lt;p&gt;Running a transfer from the CLI proves the basic idea. Turning it into a tool makes the pattern reusable.&lt;/p&gt;

&lt;p&gt;In Arc 3, that tool was a small Node.js command-line app built with &lt;code&gt;@solana/kit&lt;/code&gt;, the newer Solana JavaScript SDK. You will still see plenty of tutorials using &lt;code&gt;@solana/web3.js&lt;/code&gt;, so it is useful to know both names.&lt;/p&gt;

&lt;p&gt;The tool did the same things a good wrapper around any important operation should do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;accept a recipient and amount&lt;/li&gt;
&lt;li&gt;validate the input&lt;/li&gt;
&lt;li&gt;check the sender’s balance&lt;/li&gt;
&lt;li&gt;build and sign the transaction&lt;/li&gt;
&lt;li&gt;submit it to devnet&lt;/li&gt;
&lt;li&gt;print an Explorer link as a receipt&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That shape should feel familiar. If you have ever wrapped a payment API, built an internal CLI, or added guardrails around a production write, you already know the pattern: validate, prepare, execute, return something the user can trust.&lt;/p&gt;

&lt;p&gt;The difference is what sits underneath.&lt;/p&gt;

&lt;p&gt;This tool was not sending a normal API request to one company’s backend. It was creating a signed transaction and submitting it to a decentralized network.&lt;/p&gt;

&lt;p&gt;That was the practical bridge in Arc 3: moving from “I understand what a transaction is” to “I can build something that uses one.”&lt;/p&gt;

&lt;h2&gt;
  
  
  Confirmation is a product decision
&lt;/h2&gt;

&lt;p&gt;One of the most useful realizations in Arc 3 was that “success” on Solana is not a single moment.&lt;/p&gt;

&lt;p&gt;A transaction moves through commitment levels: &lt;strong&gt;processed&lt;/strong&gt;, &lt;strong&gt;confirmed&lt;/strong&gt;, and &lt;strong&gt;finalized&lt;/strong&gt;. Each stage tells you something different about how far the transaction has moved through the network.&lt;/p&gt;

&lt;p&gt;For developers, that is not just blockchain terminology. It affects the product experience.&lt;/p&gt;

&lt;p&gt;If you are building a wallet, payment flow, marketplace, game, or developer tool, you have to decide what the user sees after they click the button.&lt;/p&gt;

&lt;p&gt;Do you show “pending” as soon as the transaction is submitted? Do you show success once it is confirmed? Do you wait for finalization before enabling the next action? Do you include an Explorer link so the user can verify the result themselves?&lt;/p&gt;

&lt;p&gt;A signature is a receipt, but not an explanation. Good tools show progress.&lt;/p&gt;

&lt;p&gt;That is why the Arc 3 tool added confirmation feedback. It helped turn the gap between “sent” and “settled” into something visible, understandable, and useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failed transactions are still real transactions
&lt;/h2&gt;

&lt;p&gt;The most useful thing we did in Arc 3 was break things on purpose.&lt;/p&gt;

&lt;p&gt;We tried sending from an empty wallet. We tried sending more SOL than the wallet held. We skipped preflight checks to push a doomed transaction onto the network anyway. Then we inspected what came back: CLI output, Explorer pages, logs, and transaction metadata.&lt;/p&gt;

&lt;p&gt;The lesson is important for Web2 developers: on Solana, a failed transaction is still a real transaction attempt.&lt;/p&gt;

&lt;p&gt;If signature verification succeeds, the transaction can still pay the base signature fee — 5,000 lamports per signature, before any optional priority fee — even if execution later fails. Validators still did work. The chain still attempted the change. The intended state change failed, but the fee was still real.&lt;/p&gt;

&lt;p&gt;That reframes error handling.&lt;/p&gt;

&lt;p&gt;You validate before signing. You simulate before submitting. You read structured errors like &lt;code&gt;meta.err&lt;/code&gt; and &lt;code&gt;InstructionError&lt;/code&gt;. You watch for blockhash expiry. You design flows that avoid wasting user fees on failures you could have caught earlier.&lt;/p&gt;

&lt;p&gt;In Web2, error handling is mostly about user experience and reliability. On Solana, it is also part of the cost model.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Arc 3 sets up
&lt;/h2&gt;

&lt;p&gt;Strip Arc 3 back to its core and the main ideas are clear:&lt;/p&gt;

&lt;p&gt;Transactions are how Solana changes state. They are signed before submission. They contain instructions. Those instructions act on accounts. Confirmation happens in stages. Failed transactions can still cost money.&lt;/p&gt;

&lt;p&gt;That leads directly to the next question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If transactions change state, where does that state live?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;On Solana, the answer is accounts.&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.amazonaws.com%2Fuploads%2Farticles%2Fowqfql0d8qeg06egyi13.jpg" 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.amazonaws.com%2Fuploads%2Farticles%2Fowqfql0d8qeg06egyi13.jpg" alt="Infographic titled “Where Does State Live?” with an “Arc 4 Preview” label. A card on the left says “Transactions change state,” with an arrow pointing to a larger card labeled “Accounts.” The accounts card lists three ideas: store state, define ownership, and hold data. A caption explains that Arc 4 explores how state is stored, who owns it, and how programs interact with it." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That is where Arc 4 goes next: how state is stored, who owns it, and how programs interact with it.&lt;/p&gt;

&lt;p&gt;Use this post as the map, revisit the Arc 3 challenges whenever you want the hands-on version, and jump into Arc 4 from here.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://mlh.link/solana-100" rel="noopener noreferrer"&gt;Join us on the 100 Days of Solana journey!&lt;/a&gt;&lt;/p&gt;

</description>
      <category>100daysofsolana</category>
      <category>web3</category>
      <category>blockchain</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
