What problem does it solve?
This Skill helps you charge users for agent actions by generating Solana payment instructions and reliably verifying that an on-chain invoice was actually paid.
Core Features & Use Cases
- Build tokenized payment transactions: generates Solana transaction instructions for accepting payment using @pump-fun/agent-payments-sdk, covering both SPL tokens (e.g., USDC) and native SOL (via wrapped SOL flow).
- Derive deterministic invoice identity (PDA): uses a deterministic invoice ID derived from mint, currency mint, amount, memo, and time window so you can prevent duplicate charging.
- Verify payments server-side: confirms payments with validateInvoicePayment (HTTP verification with optional RPC/log fallback) before delivering the service.
- Use Case: charge users a fixed price for a premium agent workflow (e.g., “run the 3D model animation render + export”) by building an unsigned transaction, having the user sign it, and only then unlocking the expensive work after verification.
Quick Start
Ask the user for the required agent token mint address, payment currency (USDC or SOL), price/amount in smallest units, an RPC URL (or confirm a chosen fallback), and the framework you are using (Next.js, Express, other).