solana-payments

solana-payments is a skill for Claude Code, Codex from sepivip/solana-payments-skill. It costs 59 tokens per session (5,616 once invoked), scanned A, original, MIT.

A guide for adding payments in USDC or USDT, which are digital tokens, on Solana, a blockchain network, to Toppio's payment system.

In plain words
What is it for?
Use it when building or debugging the Solana payment provider, detecting token transfers, checking balances, creating wallets, or moving funds into a central wallet.
Why use it?
It prevents Solana payments from being implemented with patterns meant for other blockchain networks. It covers the network's different wallets, token accounts, transfers, and transaction checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it when building or debugging the Solana payment provider, detecting token transfers, checking balances, creating wallets, or moving funds into a central wallet.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sepivip/solana-payments-skill/solana-payments-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sepivip/solana-payments-skill --skill solana-payments-skill
Clone the repo
git clone --depth 1 https://github.com/sepivip/solana-payments-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for solana-payments

README.md
[![agentmods](https://agentmods.dev/badge/skills/sepivip/solana-payments-skill/solana-payments-skill/github.svg)](https://agentmods.dev/skills/sepivip/solana-payments-skill/solana-payments-skill)
Your own site
<a href="https://agentmods.dev/skills/sepivip/solana-payments-skill/solana-payments-skill"><img src="https://agentmods.dev/badge/skills/sepivip/solana-payments-skill/solana-payments-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for solana-payments

Your own site · 80×15
<a href="https://agentmods.dev/skills/sepivip/solana-payments-skill/solana-payments-skill"><img src="https://agentmods.dev/badge/skills/sepivip/solana-payments-skill/solana-payments-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,616 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00059 $0.05616
Opus 5 $0.00030 $0.02808
Sonnet 5 $0.00012 $0.01123
Haiku 4.5 $0.00006 $0.00562

Measured 11d ago against content hash 2f0b15149eba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

solana-payments scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

SKILL.md · 640 lines

How it starts

The opening of the file, as written. The whole thing — 640 lines — stays where its author put it; the contents beside it link to each section on GitHub.

This skill guides implementation of a Solana SPL token payment provider for Toppio's existing chain-agnostic PaymentProvider interface. It covers wallet generation, balance checking, transfer detection, and sweeping — all adapted to Solana's unique account model.

Solana vs EVM — Key Differences

Solana is NOT EVM-compatible. Do not use ethers.js or EVM patterns. Key differences:

Concept EVM (BSC/Polygon) Solana
Library ethers.js v6 @solana/web3.js + @solana/spl-token
Keypair Random wallet (secp256k1) Ed25519 keypair
Token balances ERC-20 contract.balanceOf() Associated Token Account (ATA)
Token transfer contract.transfer() createTransferInstruction()
Gas token BNB / POL SOL
Gas cost ~$0.01-0.05 ~$0.001 (base) + ~$0.40 (ATA creation)
Finality ~3-15s ~400ms (optimistic), ~30s (confirmed)
Block scanning Transfer events via getLogs getSignaturesForAddress + getParsedTransaction

Token Addresses (Mainnet)

// USDC — Token Program (not Token-2022)
const USDC_MINT = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';

// USDT — Token Program (not Token-2022)
const USDT_MINT = 'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB';

// Token Program address (both USDC and USDT use this, NOT Token-2022)
const TOKEN_PROGRAM_ID = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';

CRITICAL: USDC and USDT on Solana both use the original Token Program, NOT Token-2022. Using the wrong program produces invalid ATAs and failed transfers.

Dependencies

npm install @solana/web3.js@1 @solana/spl-token bs58

Use @solana/web3.js v1 (stable). v2 is a full rewrite with different APIs. bs58 is needed for encoding/decoding Solana keypairs (not built into web3.js).

Provider Implementation

File: providers/payment/solana.ts

Implement the PaymentProvider interface from providers/payment/types.ts:

interface PaymentProvider {
  readonly chain: string;           // 'Solana'
  readonly chainId: string;         // 'solana'
  readonly token: string;           // 'USDC/USDT'
  readonly decimals: number;        // 6 (both USDC and USDT on Solana are 6 decimals)
  readonly gasToken: string;        // 'SOL'

  generateDepositAddress(): Promise<DepositAddress>;
  checkBalance(address: string): Promise<BalanceResult>;
  getIncomingTransfers(address: string, fromBlock?: number): Promise<TransferInfo[]>;
  sweep(fromPrivateKey: string, toAddress: string): Promise<SweepResult>;
  getExplorerUrl(txHash: string): string;
  getAddressExplorerUrl(address: string): string;
  isValidAddress(address: string): boolean;
  getMasterGasBalance(): Promise<string>;
}

Read the full file on GitHub · 640 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 640 lines · 59 tokens per session scan A 2f0b15149eba

Subscribe to this mod's changes

solana-payments is a skill published in the GitHub repository sepivip/solana-payments-skill (2 stars, last pushed 6mo ago), licensed MIT. It adds 59 tokens to every session and 5,616 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.