← Index
Source: docs/features/solana.md (auto-generated by scripts/generate-docs-html.mjs — edit the .md, not this file)

Solana — Integration Study & Sample Contract

Goal: learn Solana's development model (it is not an EVM chain — different mental model, language, and tooling), ship one sample on-chain program to devnet, and call it from a rabbit demo page.

Source: jay's request, 2026-07-17 (no source file). Motivation: every other on-chain item in rabbit/verex is EVM (Hyperliquid, Sepolia AA, x402-on-Base); Solana is the biggest non-EVM ecosystem and keeps appearing in the agent-payments space (e.g. "ETH, SOL" native-gas note in agentic-aa.md).

1. Research scope (short note before coding)

Write a compact EVM-dev-oriented comparison into this doc (or docs/knowledge/):

2. Sample contract (Anchor program) — ladder

  1. Counter / guestbook program — classic first Anchor program: init a PDA account, an increment/post instruction, an Anchor TS test. Local validator → devnet deploy.
  2. SPL escrow (small) — two-party escrow of an SPL token using a PDA vault: deposit → release/refund. Exercises PDAs, CPIs to the token program, and account constraints — the three things EVM devs actually need to learn.
  3. (stretch) x402-flavored tie-in — the escrow as a "pay for data" leg mirroring the AP2/x402 loop in ap2-test.md, but settled in SPL tokens on devnet.

3. Rabbit surface

4. Estimate & sequencing

Status

Backlog / to do — not yet scheduled.