> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Solana in action

> Play a game where every move is a transaction, pay at a checkout, create a token, and watch mainnet live.

Real apps on Solana: a game where every move is a transaction, a checkout, a
new token, and mainnet as it runs.

## 2048: every move is a transaction

<div className="sol-inaction not-prose">
<div className="sol-inaction-app">

<iframe
  id="sol-2048"
  src="https://solplay.de/solana-2048/"
  srcDoc="<style>@font-face{font-family:D;src:url(/docs-assets/fonts/ABCDiatype-Medium-latin.woff2)}html,body{height:100%;margin:0}a{position:absolute;inset:0;display:grid;place-items:center;text-decoration:none}span{padding:.75rem 1.25rem;border-radius:.75rem;background:#9945ff;color:#fff;font:500 1rem D,system-ui,sans-serif}a:hover span{background:#7a2fe0}</style><a href='https://solplay.de/solana-2048/'><span>Load the game</span></a>"
  title="Solana 2048"
  loading="lazy"
  width="100%"
  height="560"
  scrolling="no"
/>

<div className="nojs-only">
  [https://solplay.de/solana-2048/](https://solplay.de/solana-2048/)
</div>

<FullscreenButton target="sol-2048">Full screen</FullscreenButton>

<p className="sol-inaction-note">
  Click **Load the game**, then **Play**, and use the arrow keys (or swipe). It runs on devnet,
  Solana's free test network, so nothing costs real money.
</p>

</div>
<div className="sol-inaction-explain">

<p className="sol-inaction-kicker">What Solana is doing</p>

<div className="sol-inaction-flow" aria-hidden="true">
  <span>Arrow key</span>
  <i />
  <span>Transaction</span>
  <i />
  <span className="is-code">2048 program</span>
  <i />
  <span>Your game account</span>
</div>

<ol className="sol-inaction-steps">
  <li>
    <p className="sol-inaction-step-t">
      Play opens a game account and a session key
    </p>
    <p>
      Your board and score live in a small account that the 2048 program owns.
      Play also creates a session key: a short-lived key, funded with a little
      devnet SOL, that the program accepts for moves, so you don't approve every
      one.
    </p>
  </li>
  <li>
    <p className="sol-inaction-step-t">Each arrow key sends a transaction</p>
    <p>
      The transaction holds one instruction, `push_in_direction`, with the
      direction you pressed. The session key signs it and pays the fee, a
      fraction of a cent.
    </p>
  </li>
  <li>
    <p className="sol-inaction-step-t">The program updates your board</p>
    <p>
      The 2048 program merges the tiles and writes the new board and score to
      your game account, and updates the high-score list. It all happens in one
      transaction: every change, or none.
    </p>
  </li>
  <li>
    <p className="sol-inaction-step-t">
      The game shows the move before it's final
    </p>
    <p>
      To feel instant, the game draws the result as soon as a validator
      processes the transaction, and rolls the move back if the network doesn't
      confirm it.
    </p>
  </li>
</ol>

<p className="sol-inaction-links">
  [Program
  source](https://github.com/solana-developers/solana-2048/blob/main/program/programs/lumberjack/src/instructions/push_in_direction.rs)
  · [Program on
  Explorer](https://explorer.solana.com/address/2o48ieM95rmHqMWC5B3tTX4DL7cLm4m1Kuwjay3keQSv?cluster=devnet)
</p>

</div>
</div>

Built by [Jonas](https://x.com/SolPlay_jonas), from the Solana Foundation DevRel
team. It's an example game: the program isn't audited.

## Checkout: a customer pays 1 USDC

One tap, and the shop sees the order paid. Both demos below send real devnet
transactions, each linked to Explorer.

<InActionScene kind="checkout" />

[Try it in the tutorial →](/developers/docs/payments/checkout/try-it)

## Create a token

One tap creates a new token on devnet: a Token-2022 mint with its name and
symbol stored in the mint itself.

<InActionScene kind="token" />

[Create one yourself →](/developers/docs/tokens/quickstart)

## Solana right now

Payments like these settle on mainnet with real money all day. Below is
mainnet as it runs: each block as it's produced, with how many transactions it
held. Hover over or tap a block to see what it is, with a link to Explorer.

<LiveFeed />

## Go further

<Columns cols={2}>
  <Card title="How Solana works" icon="box" href="/developers/docs/core">
    Accounts, transactions, programs, and fees, the pieces these examples use.
  </Card>
  <Card
    title="Build a game"
    icon="gamepad-2"
    href="/developers/docs/assets/games"
  >
    Items that players own, and game state other apps can read.
  </Card>
</Columns>
