Skip to content
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

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.

What Solana is doing

  1. Play opens a game account and a session key

    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.

  2. Each arrow key sends a transaction

    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.

  3. The program updates your board

    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.

  4. The game shows the move before it’s final

    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.

Built by 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.
Sticker shopHolographic sticker

1 USDC

Sticker shop

Order #1001 waiting

What Solana is doing

  1. Sign: the customer approves 1 USDC

    The transaction holds one transfer, from the customer's USDC account to the shop's. A test wallet on the server signs it here, where a customer's wallet app would.

  2. Send: a validator runs the transfer

    The validator producing blocks right now runs the Token program, which checks the signature and the balance, then moves the USDC. The fee is a fraction of a cent.

  3. Final: the shop sees it paid

    Once the network confirms the block, the payment is final. The shop watches its account and marks the order paid.

Try it in the tutorial →

​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.
Docs demo tokenToken-2022, 6 decimals

DEMO

Devnet

No token yet

What Solana is doing

  1. Sign: a new address for the token

    The server makes a keypair for the new mint account. The demo wallet signs to pay the fee and rent, and the new key signs to claim the address.

  2. Send: Token-2022 sets up the mint

    One transaction creates the account, sets 6 decimals and who can mint, and writes the name and symbol into the mint itself, with the metadata extension.

  3. Final: the token exists

    Once the network confirms the block, the token is final. Anyone can look it up, and its mint authority can start minting.

Create one yourself →

​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.

Loading live mainnet data…

​Go further