Skip to main content
Two ways to use Vanna Solana: The hosted hostname says devnet. It is a Surfpool mainnet fork on a VM, not public Solana Devnet. Fork RPC: https://rpc-devnet.solana.vanna.finance. Developer-grade steps (program tests, env vars, Docker) live in Developer Setup. This page is the short path.

Hosted demo (fastest)

  1. Open https://devnet.solana.vanna.finance/earn.
  2. Connect a test wallet (or Privy).
  3. Open Faucet → Mint All.
  4. Earn, Perps, Swap, or Farm.
Do not send mainnet funds. The faucet and balances are fork state. If an installed wallet must submit to the fork itself, add custom RPC https://rpc-devnet.solana.vanna.finance. The website already uses that endpoint in the browser build.

Local laptop

Keep the repos as siblings:

1. Start Surfpool (deploys the program)

From Protocol_V1_Solana:
This lazy-clones real mainnet accounts (USDC, xStocks, PreStocks, Kamino, Jupiter) onto 127.0.0.1:8899.

2. Start the app

From Backend-Solana:
Open http://localhost:3000. Point Phantom/Backpack/Solflare at custom RPC http://127.0.0.1:8899. Not Devnet. Not Mainnet.

3. Minimum .env.local

Add NEXT_PUBLIC_PRIVY_APP_ID only if you want Google/email. Never put a Privy secret in a NEXT_PUBLIC_* variable.

Program tests (no UI)

Verify the hosted RPC

A healthy node returns JSON "result":"ok" (or equivalent). Auth on the VM, if enabled, will return 401 without credentials.

Common failures

Full VM / Caddy / snapshot runbook: Backend-Solana/docs/HOSTED_SURFPOOL_SETUP.md.