Index of every page on this site: llms.txt
All skills
Run it yourself

Use when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", "fuzz my Solana program", "deploy to devnet", "send a v1 transaction", "support larger transactions", "fix maxSupportedTransactionVersion", or "explain Solana concepts" (rent, accounts, PDAs, CPIs). Also for program architecture (state layout, compute units, throughput, naming), quick on-chain lookups via public RPC + curl, gasless or sponsored-fee transactions (Kora), server-side signing with KMS/Turnkey/Privy/Fireblocks (Solana Keychain), and issuing stablecoins or allowlisted tokens (Mosaic). Covers wallets, Anchor/Pinocchio, Codama clients, Surfpool/LiteSVM/Mollusk testing, security review, and v1 transactions (SIMD-0385). Prefers @solana/kit 8 plugin clients building transaction v1 by default, @solana/kit-plugin-wallet + @solana/react for wallets, web3.js v3 as the legacy migration target, and Surfpool for local networks.

Use this Skill: https://skilld.dev/gh/solana-foundation/solana-dev-skill/solana-dev

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencespayments.md

≈746 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Payments and commerce (optional)

When payments are in scope

Use this guidance when the user asks about:

  • checkout flows, tips, payment buttons
  • payment request URLs / QR codes
  • fee abstraction / gasless transactions

Building payments with Kit (default)

Build payment flows directly on @solana/kit + @solana-program/*:

  • SOL transfers: getTransferSolInstruction from @solana-program/system
  • Token transfers: the tokenProgram() plugin from @solana-program/token (client.token — transferToATA auto-derives and creates the recipient ATA)
  • Payment correlation: attach a memo (@solana-program/memo) or a unique reference account to locate settlement for an order. Neither prevents a second transfer in a separately signed transaction.
  • Confirmation: track signature status to the commitment level your UX needs (confirmed for UI feedback, finalized for irreversible fulfillment)

Solana Pay (payment requests / QR)

Use the Solana Pay URL spec for request-based payments (point-of-sale, invoices, QR codes):

  • solana:<recipient>?amount=..&spl-token=..&reference=..&label=..&message=..
  • Verify settlement server-side by finding the transaction via the reference key and validating recipient, mint, and amount from chain state.

Retry and fulfillment boundaries

  • Store the signature before submitting. On timeout, rebroadcast the same signed tx or reconcile it before re-signing; missing RPC history isn't proof of non-payment.
  • Make fulfillment idempotent (atomically claim the order in your DB). A reference match alone isn't enough: also require a successful tx at the required commitment.

Kora (gasless / fee abstraction)

Use Kora when users shouldn't need SOL: sponsored fees, fees paid in USDC or another SPL token, or a policy-checked paymaster co-signing user transactions. See kora.md for operator setup and security controls.

UX and security checklist for payments

  • Always show recipient + amount + token clearly before signing.
  • Keep retries tied to the same authorized payment intent; do not treat a memo or reference as an on-chain duplicate-payment guard.
  • Confirm settlement by querying chain state, not by trusting client-side callbacks.
  • Handle partial failures gracefully (transaction sent but not confirmed).
  • Provide clear error messages for common failure modes (insufficient balance, rejected signature).
  • Test settlement logic against Surfpool — set up buyer/merchant token accounts with surfnet_setTokenAccount and assert post-transaction balances (see testing.md).

References

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning18d5 checks · Risk SAFE
  • Gen Agent Trust Hub19d

    This skill is a legitimate and comprehensive developer resource for Solana blockchain development. It identifies and mitigates common security risks through explicit instructions on handling untrusted on-chain data and enforces transaction safety via user-review guardrails. All external dependencies and tool installations originate from trusted, official Solana ecosystem providers.

  • Socket18d

    No alerts

  • Snyk19d

    Risk: LOW · No issues

  • Runlayer8mo

    3/15 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at c9da262. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 3 weeks ago
compatibility
Requires Node.js 20.18+, Rust toolchain, Solana CLI, Anchor CLI
metadata
{
  "author": "Solana Foundation",
  "version": "2.8.0"
}

README badge

README badge for solana-foundation/solana-dev-skill