Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/x402agent-tokenized-agents
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: finance, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/tokenized-agents
What's inside
- Skill name
tokenized-agents- Description
- Use when the user wants to charge users for actions. Use @pump-fun/agent-payments-sdk, to build Solana payment transactions, verify on-chain invoice payments, or integrate Solana wallet adapters for agent payment flows.
- License
- MIT
- Metadata
- author: pump-fun · version: 1.1
- Instructions
- 489 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- name: "tokenized-agents" does not match folder "nanohub"
Files (200)
- .env.local.example
- ci.yml · .github/workflows/
- deploy.yml · .github/workflows/
- secret-scan.yml · .github/workflows/
- .gitignore
- .oxfmtrc.jsonc
- .oxlintrc.json
- AGENTS.md
- CHANGELOG.md
- CONTRIBUTING.md
- DEPRECATIONS.md
- LICENSE
- README.md
- SKILL.md
- VISION.md
- clawdhub
- clawhub
- convex.json
- api.d.ts · convex/_generated/
- api.js · convex/_generated/
- dataModel.d.ts · convex/_generated/
- server.d.ts · convex/_generated/
- server.js · convex/_generated/
- appMeta.ts · convex/
- auth.config.ts · convex/
- auth.test.ts · convex/
- auth.ts · convex/
- commentModeration.test.ts · convex/
- commentModeration.ts · convex/
- comments.handlers.ts · convex/
- comments.query.test.ts · convex/
- comments.test.ts · convex/
- comments.ts · convex/
- crons.ts · convex/
- devSeed.ts · convex/
- devSeedExtra.ts · convex/
- downloads.test.ts · convex/
- downloads.ts · convex/
- functions.ts · convex/
- githubBackups.test.ts · convex/
- githubBackups.ts · convex/
- githubBackupsNode.ts · convex/
- githubIdentity.ts · convex/
- githubImport.test.ts · convex/
- githubImport.ts · convex/
- githubRestore.ts · convex/
- githubRestoreMutations.ts · convex/
- githubSoulBackups.ts · convex/
- githubSoulBackupsNode.ts · convex/
- http.ts · convex/
- httpApi.handlers.test.ts · convex/
- httpApi.test.ts · convex/
- httpApi.ts · convex/
- httpApiV1.handlers.test.ts · convex/
- httpApiV1.ts · convex/
- shared.ts · convex/httpApiV1/
- skillsV1.ts · convex/httpApiV1/
- soulsV1.ts · convex/httpApiV1/
- starsV1.ts · convex/httpApiV1/
- transfersV1.ts · convex/httpApiV1/
- …and 140 more
SKILL.md (first lines)
## Before Starting Work
**MANDATORY — Do NOT write or modify any code until every item below is answered by the user:**
- [ ] Agent token mint address (from pump.fun)
- [ ] Payment currency decided (USDC or SOL)
- [ ] Price/amount confirmed (in smallest unit)
- [ ] RPC URL provided or a fallback agreed upon
- [ ] Framework confirmed (Next.js, Express, other)
You MUST ask the user for ALL unchecked items in your very first response. Do not assume defaults. Do not proceed until the user has explicitly answered each one.
## Safety Rules
- **NEVER** log, print, or return private keys or secret key material.
- **NEVER** sign transactions on behalf of a user — you build the instruction, the user signs.
- Always validate that `amount > 0` before creating an invoice.
- Always ensure `endTime > startTime` and both are valid Unix timestamps.
- Use the correct decimal precision for the currency (6 decimals for USDC, 9 for SOL).
- **Always verify payments on the server** using `validateInvoicePayment` before delivering any service. Never trust the client alone — clients can be spoofed.
- **Always verify your code against this skill before finalizing.** Before delivering generated code, re-read the relevant sections of this document and confirm:
- Parameter types match the documented signatures — `buildAcceptPaymentInstructions` accepts `number` for numeric fields, `validateInvoicePayment` accepts `number`, and `getInvoiceIdPDA` accepts `number`.
- Parameter ordering and names match exactly.
- Default values (e.g. `computeUnitLimit` defaults to `100_000`) are not contradicted.
- Import paths use `@pump-fun/agent-payments-sdk`, not internal module paths.
## Supported Currencies
| Currency | Decimals | Smallest unit example |
| ----------- | -------- | --------------------- |
| USDC | 6 | `1000000` = 1 USDC |
| Wrapped SOL | 9 | `1000000000` = 1 SOL |
## Environment Variables
Create a `.env` (or `.env.local` for Next.js) file with the following:
```env
# Solana RPC — server-side (used to build transactions and verify payments)
SOLANA_RPC_URL=https://rpc.solanatracker.io/public
# Solana RPC — client-side (used by wallet adapter in the browser)
NEXT_PUBLIC_SOLANA_RPC_URL=https://rpc.solanatracker.io/public
# The token mint address of your tokenized agent on pump.fun
AGENT_TOKEN_MINT_ADDRESS=<your-agent-mint-address>
# Payment currency mint
# USDC: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
# SOL (wrapped): So11111111111111111111111111111111111111112
CURRENCY_MINT=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
```
**RPC for mainnet-beta:** The default Solana public RPC (`https://api.mainnet-beta.solana.com`) does **not** support sending transactions. You MUST ask the user which RPC endpoint to use. Present these free mainnet-beta options if the user does not have their own:
- **Solana Tracker** — `https://rpc.solanatracker.io/public`
- **Ankr** — `https://rpc.ankr.com/solana`
Do NOT silently pick one — wait for the user to confirm before proceeding.
Read these values from `process.env` at runtime. Never hard-code mint addresses or RPC URLs.
## Install
```bash
npm install @pump-fun/agent-payments-sdk@3.0.2 @solana/web3.js@^1.98.0
```
### Dependency Compatibility — IMPORTANT
`@pump-fun/agent-payments-sdk` depends on `@solana/web3.js` and `@solana/spl-token`. When the app also installs these packages directly, mismatched versions can cause runtime errors.
**Rules:**
1. Before installing `@solana/web3.js`, `@solana/spl-token`, or any `@solana/wallet-adapter-*` package, first check what versions `@pump-fun/agent-payments-sdk` declares in its own `package.json` (inspect it via `npm info @pump-fun/agent-payments-sdk dependencies`). Install the same ranges — or ranges that resolve to the same major.minor — so npm/pnpm hoists a single copy instead of two.
2. Never blindly install "latest" for these shared packages. Always prefer the version that is most compatible with the latest `@pump-fun/agent-payments-sdk`.
3. If the project already has these packages at different versions, align them to match the SDK and re-install.
## SDK Setup
`PumpAgent` is the main class. It can build payment instructions and verify invoices.
```typescript
import { PumpAgent } from "@pump-fun/agent-payments-sdk";
import { PublicKey } from "@solana/web3.js";
const agentMint = new PublicKey(process.env.AGENT_TOKEN_MINT_ADDRESS!);
```
### Constructor
```typescript
new PumpAgent(mint: PublicKey, environment?: "mainnet" | "devnet", connection?: Connection)
```
| Parameter | Type | Default | Description |
| ------------- | ------------------------- | ----------- | ------------------------------------------------------------- |
| `mint` | `PublicKey` | — | The tokenized agent's token mint address |
| `environment` | `"mainnet"` \| `"devnet"` | `"mainnet"` | Network environment |
| `connection` | `Connection` (optional) | `undefined` | Solana RPC connection (enables RPC fallback for verification) |
**Without connection** — enough for building instructions and HTTP-based payment verification:
```typescript
const agent = new PumpAgent(agentMint);
```
**With connection** — also enables RPC-based verification fallback and balance queries:
```typescript
import { Connection } from "@solana/web3.js";
const connection = new Connection(process.env.SOLANA_RPC_URL!);
const agent = new PumpAgent(agentMint, "mainnet", connection);
```
## Wallet Integration (Frontend)
Install `@solana/wallet-adapter-react`, `@solana/wallet-adapter-react-ui`, and `@solana/wallet-adapter-wallets`. Use `useWallet()` for `publicKey` and `signTransaction`, and `useConnection()` for the active RPC connection. MUST See [https://raw.githubusercontent.com/pump-fun/pump-fun-skills/refs/heads/main/tokenized-agents/references/WALLET_INTEGRATION.md](https://raw.githubusercontent.com/pump-fun/pump-fun-skills/refs/heads/main/tokenized-agents/references/WALLET_INTEGRATION.md) for the full WalletProvider setup, layout wrapping, and hook usage.From x402agent/NanoSolana, MIT.
More from x402agent/NanoSolana
- 0.411score
acp-router
x402agent
Route plain-language requests for Pi, Clawd Code, Codex, OpenCode, Gemini CLI, or ACP harness work into either NanoClawd ACP runtime sessions or direct…
SkillCFreshness: CClaude Code +9 - 0.394score
1password
x402agent
Set up and use 1Password CLI (op).
SkillCFreshness: CClaude Code +9 - 0.390score
apple-notes
x402agent
Manage Apple Notes via the `memo` CLI on macOS (create, view, edit, delete, search, move, and export notes).
SkillCFreshness: CClaude Code +9 - 0.390score
bluebubbles
x402agent
Use when you need to send or manage iMessages via BlueBubbles (recommended iMessage integration).
SkillCFreshness: CClaude Code +9 - 0.387score
prose
x402agent
OpenProse VM skill pack.
SkillCFreshness: CClaude Code +9 - 0.384score
blucli
x402agent
BluOS CLI (blu) for discovery, playback, grouping, and volume.
SkillCFreshness: CClaude Code +9 - 0.384score
blogwatcher
x402agent
Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
SkillCFreshness: CClaude Code +9 - 0.382score
camsnap
x402agent
Capture frames or clips from RTSP/ONVIF cameras.
SkillCFreshness: CClaude Code +9 - 0.382score
bear-notes
x402agent
Create, search, and manage Bear notes via grizzly CLI.
SkillCFreshness: CClaude Code +9 - 0.217score
canvas
x402agent
No description from the publisher yet.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 15, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.1
- License
- MIT
- Repository
- github.com/x402agent/NanoSolana
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Cite this page
tokenized-agents skill. Agent Mart. https://agentmart.dev/skills/x402agent-tokenized-agents (last updated 2026-10-24)