[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MWTVZQMCCKQE0S7AVBABA0":3,"skill-same:01M6MWTVZQMCCKQE0S7AVBABA0":97},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":62,"commitSha":63,"skillDirectory":64,"forksCount":65,"repositoryHtmlUrl":66,"repositoryHomepageUrl":6,"ownerHtmlUrl":67,"ownerBlogUrl":6,"ownerDescription":68,"updatedAt":69,"install":70,"resources":82},"01M6MWTVZQMCCKQE0S7AVBABA0","agentwallet",null,"Wallets for AI agents with x402 payment signing, referral rewards, and policy-controlled actions.","Kernel8901\u002Fai-agent-skills-classification","Kernel8901","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F72647553?v=4","01M6KV388J2H5PNC8D8P940BJD","01M6KV38CS5B3AY63RKZB410YM",7,"MIT","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fagentwallet-frames\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"referrals","referral","for","wallets","signing","true","pay","with","tech","ai agents","usdc","solana","evm","x402","payment","fetch","api","actions","policy","2026-11-10 10:12:30",false,"---\nname: agentwallet\nversion: 0.1.8\ndescription: Wallets for AI agents with x402 payment signing, referral rewards, and policy-controlled actions.\nhomepage: https:\u002F\u002Fagentwallet.mcpay.tech\nmetadata: {\"moltbot\":{\"category\":\"finance\",\"api_base\":\"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\"},\"x402\":{\"supported\":true,\"chains\":[\"solana\",\"evm\"],\"networks\":[\"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\",\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\",\"eip155:8453\",\"eip155:84532\"],\"tokens\":[\"USDC\"],\"endpoint\":\"\u002Fapi\u002Fwallets\u002F{username}\u002Factions\u002Fx402\u002Ffetch\",\"legacyEndpoint\":\"\u002Fapi\u002Fwallets\u002F{username}\u002Factions\u002Fx402\u002Fpay\"},\"referrals\":{\"enabled\":true,\"endpoint\":\"\u002Fapi\u002Fwallets\u002F{username}\u002Freferrals\"}}\n---\n\n# AgentWallet\n\nAgentWallet provides server wallets for AI agents. Wallets are provisioned after email OTP verification. All signing happens server-side and is policy-controlled.\n\n---\n\n## TL;DR - Quick Reference\n\n**FIRST: Check if already connected** by reading `~\u002F.agentwallet\u002Fconfig.json`. If file exists with `apiToken`, you're connected - DO NOT ask user for email.\n\n**Need to connect (no config file)?** Ask user for email → POST to `\u002Fapi\u002Fconnect\u002Fstart` → user enters OTP → POST to `\u002Fapi\u002Fconnect\u002Fcomplete` → save API token.\n\n**x402 Payments?** Use the ONE-STEP `\u002Fx402\u002Ffetch` endpoint (recommended) - just send target URL + body, server handles everything.\n\n---\n\n## ⭐ x402\u002Ffetch - ONE-STEP PAYMENT PROXY (RECOMMENDED)\n\n**This is the simplest way to call x402 APIs.** Send the target URL and body - the server handles 402 detection, payment signing, and retry automatically.\n\n```bash\ncurl -s -X POST \"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Ffetch\" \\\n  -H \"Authorization: Bearer TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"url\":\"https:\u002F\u002Fenrichx402.com\u002Fapi\u002Fexa\u002Fsearch\",\"method\":\"POST\",\"body\":{\"query\":\"AI agents\",\"numResults\":3}}'\n```\n\n**That's it!** The response contains the final API result:\n\n```json\n{\n  \"success\": true,\n  \"response\": {\n    \"status\": 200,\n    \"body\": {\"results\": [...]},\n    \"contentType\": \"application\u002Fjson\"\n  },\n  \"payment\": {\n    \"chain\": \"eip155:8453\",\n    \"amountFormatted\": \"0.01 USDC\",\n    \"recipient\": \"0x...\"\n  },\n  \"paid\": true,\n  \"attempts\": 2,\n  \"duration\": 1234\n}\n```\n\n### x402\u002Ffetch Request Options\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `url` | string | ✅ | Target API URL (must be HTTPS in production) |\n| `method` | string | ❌ | HTTP method: GET, POST, PUT, DELETE, PATCH (default: GET) |\n| `body` | object | ❌ | Request body (auto-serialized to JSON) |\n| `headers` | object | ❌ | Additional headers to send |\n| `preferredChain` | string | ❌ | `\"auto\"` (default), `\"evm\"`, or `\"solana\"`. Auto selects chain with sufficient USDC balance |\n| `dryRun` | boolean | ❌ | Preview payment cost without paying |\n| `timeout` | number | ❌ | Request timeout in ms (default: 30000, max: 120000) |\n| `idempotencyKey` | string | ❌ | For deduplication |\n\n### Dry Run (Preview Cost)\n\nCheck how much an API call will cost without paying:\n\n```bash\ncurl -s -X POST \"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Ffetch\" \\\n  -H \"Authorization: Bearer TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"url\":\"https:\u002F\u002Fenrichx402.com\u002Fapi\u002Fexa\u002Fsearch\",\"method\":\"POST\",\"body\":{\"query\":\"test\"},\"dryRun\":true}'\n```\n\nResponse:\n```json\n{\n  \"success\": true,\n  \"dryRun\": true,\n  \"payment\": {\n    \"required\": true,\n    \"chain\": \"eip155:8453\",\n    \"amountFormatted\": \"0.01 USDC\",\n    \"policyAllowed\": true\n  }\n}\n```\n\n### Error Codes\n\n| Code | HTTP | Description |\n|------|------|-------------|\n| `INVALID_URL` | 400 | URL malformed or blocked (localhost, internal IPs) |\n| `POLICY_DENIED` | 403 | Policy check failed (amount too high, etc.) |\n| `WALLET_FROZEN` | 403 | Wallet is frozen |\n| `TARGET_TIMEOUT` | 504 | Target API timed out |\n| `TARGET_ERROR` | 502 | Target API returned 5xx error |\n| `PAYMENT_REJECTED` | 402 | Payment was rejected by target API |\n| `NO_PAYMENT_OPTION` | 400 | No compatible payment network |\n\n### Why Use x402\u002Ffetch?\n\n- ✅ **One request** instead of 4-5 manual steps\n- ✅ **No header parsing** - server extracts payment-required automatically\n- ✅ **No escaping issues** - no multiline curl, no temp files\n- ✅ **Automatic retry** - handles 402 → sign → retry flow\n- ✅ **Policy enforced** - respects your spending limits\n- ✅ **Proper error handling** - clear error codes\n\n---\n\n## ⚠️ x402 Payment - MANUAL FLOW (Legacy)\n\nIf you need fine-grained control, use the manual 4-step flow below. **For most cases, use x402\u002Ffetch above instead.**\n\n### COPY THIS EXACT SCRIPT\n\n**Only use this if you can't use x402\u002Ffetch. DO NOT improvise. DO NOT use multiline curl. Copy this script exactly:**\n\n```bash\n# === x402 PAYMENT SCRIPT - COPY EXACTLY ===\n# Replace: API_URL, USERNAME, TOKEN, REQUEST_BODY\n\n# Step 1: Get payment requirement (writes to temp file to avoid escaping issues)\ncurl -s -i -X POST \"API_URL\" -H \"Content-Type: application\u002Fjson\" -d 'REQUEST_BODY' > \u002Ftmp\u002Fx402_response.txt\n\n# Step 2: Extract the payment-required header\nPAYMENT_REQ=$(grep -i \"payment-required:\" \u002Ftmp\u002Fx402_response.txt | cut -d' ' -f2 | tr -d '\\r\\n')\n\n# Step 3: Sign with AgentWallet\n# ENDPOINT: \u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Fpay (x402\u002Fpay with SLASH, not x402-sign with DASH)\n# FIELD: Use \"requirement\" (not \"paymentRequiredHeader\")\ncurl -s -X POST \"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Fpay\" -H \"Authorization: Bearer TOKEN\" -H \"Content-Type: application\u002Fjson\" -d \"{\\\"requirement\\\":\\\"$PAYMENT_REQ\\\",\\\"preferredChain\\\":\\\"evm\\\"}\" > \u002Ftmp\u002Fx402_signed.txt\n\n# Step 4: Extract signature\nPAYMENT_SIG=$(cat \u002Ftmp\u002Fx402_signed.txt | jq -r '.paymentSignature')\n\n# Step 5: Make paid request (header is PAYMENT-SIGNATURE for v2)\ncurl -s -X POST \"API_URL\" -H \"Content-Type: application\u002Fjson\" -H \"PAYMENT-SIGNATURE: $PAYMENT_SIG\" -d 'REQUEST_BODY'\n```\n\n**WRONG endpoints (will return 404\u002F405):**\n- ❌ `\u002Fapi\u002Fx402\u002Fsign`\n- ❌ `\u002Fapi\u002Fx402-sign`\n- ❌ `\u002Fapi\u002Fwallets\u002F{USERNAME}\u002Factions\u002Fx402-sign` ← note the DASH is wrong\n- ❌ `\u002Fapi\u002Fsign`\n- ❌ `\u002Fapi\u002Fpay`\n\n**CORRECT endpoint (note: x402\u002Fpay with SLASH not dash):**\n- ✅ `https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002F{USERNAME}\u002Factions\u002Fx402\u002Fpay`\n\n**The path is:** `\u002Fapi\u002Fwallets\u002F` + `USERNAME` + `\u002Factions\u002Fx402\u002Fpay`\n\n**Common mistakes:**\n- ❌ Using multiline curl with `\\` → causes `blank argument` errors\n- ❌ Checking response body for 402 → body is empty `{}`, check `payment-required` HEADER\n- ❌ Using `X-PAYMENT` header → use `PAYMENT-SIGNATURE` for v2 APIs\n- ❌ Reusing payment signatures → each signature is ONE-TIME USE\n- ❌ Using `paymentRequiredHeader` field → use `requirement` instead (works with both base64 and JSON)\n\n---\n\n### Real Example: Calling enrichx402.com\u002Fapi\u002Fexa\u002Fsearch\n\n```bash\n# Concrete example with real values (replace USERNAME and TOKEN)\n\n# Step 1: Get 402 response\ncurl -s -i -X POST \"https:\u002F\u002Fenrichx402.com\u002Fapi\u002Fexa\u002Fsearch\" -H \"Content-Type: application\u002Fjson\" -d '{\"query\":\"AI agents\",\"numResults\":3}' > \u002Ftmp\u002Fx402_response.txt\n\n# Step 2: Extract payment requirement\nPAYMENT_REQ=$(grep -i \"payment-required:\" \u002Ftmp\u002Fx402_response.txt | cut -d' ' -f2 | tr -d '\\r\\n')\n\n# Step 3: Sign (IMPORTANT: path is \u002Factions\u002Fx402\u002Fpay NOT \u002Factions\u002Fx402-sign)\ncurl -s -X POST \"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002Fmicrochipgnu\u002Factions\u002Fx402\u002Fpay\" -H \"Authorization: Bearer mf_YOUR_TOKEN_HERE\" -H \"Content-Type: application\u002Fjson\" -d \"{\\\"requirement\\\":\\\"$PAYMENT_REQ\\\",\\\"preferredChain\\\":\\\"evm\\\"}\" > \u002Ftmp\u002Fx402_signed.txt\n\n# Step 4: Get signature\nPAYMENT_SIG=$(cat \u002Ftmp\u002Fx402_signed.txt | jq -r '.paymentSignature')\n\n# Step 5: Make paid request\ncurl -s -X POST \"https:\u002F\u002Fenrichx402.com\u002Fapi\u002Fexa\u002Fsearch\" -H \"Content-Type: application\u002Fjson\" -H \"PAYMENT-SIGNATURE: $PAYMENT_SIG\" -d '{\"query\":\"AI agents\",\"numResults\":3}'\n```\n\n---\n\n## Config File Reference\n\n### Config File Location\n\nStore AgentWallet credentials at:\n```\n~\u002F.agentwallet\u002Fconfig.json\n```\n\n### Config Structure\n\n```json\n{\n  \"username\": \"your-username\",\n  \"email\": \"your@email.com\",\n  \"evmAddress\": \"0x...\",\n  \"solanaAddress\": \"...\",\n  \"apiToken\": \"mf_...\",\n  \"moltbookLinked\": false,\n  \"moltbookUsername\": null,\n  \"xHandle\": null\n}\n```\n\n### Field Explanations\n\n| Field | Description |\n|-------|-------------|\n| `username` | Your unique AgentWallet username |\n| `email` | Email used for OTP verification |\n| `evmAddress` | EVM wallet address |\n| `solanaAddress` | Solana wallet address |\n| `apiToken` | Fund API token for authenticated requests (starts with `mf_`) |\n| `moltbookLinked` | Whether a Moltbook account is linked |\n| `moltbookUsername` | Linked Moltbook username (if any) |\n| `xHandle` | X\u002FTwitter handle from Moltbook (if linked) |\n\n### Security Rules\n\n- **Never commit** `config.json` to version control\n- **Add to .gitignore**: `~\u002F.agentwallet\u002F`\n- **API token is secret** - treat it like a password\n- **File permissions**: Set to `600` (owner read\u002Fwrite only)\n\n```bash\nchmod 600 ~\u002F.agentwallet\u002Fconfig.json\n```\n\n---\n\n## Quick Start for AI Agents\n\n**To connect, you need:**\n- An email address (for OTP verification)\n\n**Step 1: Ask the user for their email address.**\n\n**Step 2: Direct them to the connect page:**\n```\nhttps:\u002F\u002Fagentwallet.mcpay.tech\u002Fconnect?email=EMAIL\n```\n\n**Step 3: The user will:**\n1. Enter the 6-digit OTP sent to their email\n2. Receive their wallet addresses and Fund API token\n\n**Step 4: After success, the page displays credentials in this format:**\n```\nAGENTWALLET_CONNECTED=true\nAGENTWALLET_USERNAME=generated-username\nAGENTWALLET_EVM_ADDRESS=0x...\nAGENTWALLET_SOLANA_ADDRESS=...\nAGENTWALLET_API_TOKEN=mf_...\n```\n\nThe user should copy and save the API token securely - it won't be shown again.\n\n**Optional:** After connecting, users can link a Moltbook account via the API (requires tweet verification). See \"Link Moltbook Account\" section below.\n\n---\n\n## Referral & Airdrop Program\n\nAgentWallet rewards agents who grow the network. Every agent you onboard earns you both airdrop points.\n\n### How It Works\n\n1. **Share your referral link** when helping other agents connect\n2. **Both you and the new agent** earn airdrop points\n3. **Points accumulate** toward future token distributions\n\n### Your Referral Link\n\nAfter connecting, your referral link is:\n```\nhttps:\u002F\u002Fagentwallet.mcpay.tech\u002Fconnect?ref=YOUR_USERNAME&email=THEIR_EMAIL\n```\n\nOr via API:\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fconnect\u002Fstart \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"email\":\"new@agent.com\",\"ref\":\"YOUR_USERNAME\"}'\n```\n\n### Check Your Rewards\n\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Freferrals \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\"\n```\n\nResponse:\n```json\n{\n  \"referralLink\": \"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fconnect?ref=your-username\",\n  \"referralCount\": 12,\n  \"convertedCount\": 8,\n  \"airdropPoints\": 2400,\n  \"tier\": \"silver\",\n  \"tierMultiplier\": 1.5,\n  \"nextTier\": {\"name\": \"gold\", \"referralsNeeded\": 13},\n  \"referrals\": [\n    {\"username\": \"agent-xyz\", \"pointsEarned\": 200, \"converted\": true, \"joinedAt\": \"2024-01-15T...\" }\n  ]\n}\n```\n\n### Airdrop Tiers\n\n| Tier | Referrals | Point Multiplier |\n|------|-----------|------------------|\n| Bronze | 0-4 | 1x |\n| Silver | 5-24 | 1.5x |\n| Gold | 25-99 | 2x |\n| Diamond | 100+ | 3x |\n\n### Earning Points\n\n| Action | Points |\n|--------|--------|\n| Successful referral | 200 |\n| Referred agent's first transaction | 50 |\n| Daily active wallet | 10 |\n| Weekly streak (7 days active) | 100 |\n\n---\n\n## Network Pulse\n\nSee what's happening across the AgentWallet network in real-time:\n\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fnetwork\u002Fpulse\n```\n\nResponse:\n```json\n{\n  \"timestamp\": \"2024-01-15T10:30:00Z\",\n  \"network\": \"AgentWallet\",\n  \"stats\": {\n    \"activeAgents\": {\"lastHour\": 42, \"last24h\": 156},\n    \"transactions\": {\"lastHour\": 89, \"last24h\": 1247},\n    \"volume\": {\"usdc24h\": \"1,234.56\"},\n    \"growth\": {\"newAgents24h\": 12, \"totalAgents\": 847}\n  },\n  \"trending\": {\n    \"apis\": [\n      {\"url\": \"https:\u002F\u002Fenrichx402.com\u002Fapi\u002Fexa\u002Fsearch\", \"callCount\": 234}\n    ]\n  },\n  \"message\": \"42 agents active right now. Network is buzzing!\"\n}\n```\n\n### Your Stats\n\nCheck your personal ranking and activity:\n\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Fstats \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\"\n```\n\nResponse:\n```json\n{\n  \"username\": \"your-username\",\n  \"rank\": 42,\n  \"transactions\": {\"total\": 156, \"last24h\": 12, \"last7d\": 67, \"successRate\": 98},\n  \"volume\": {\"usdc\": \"234.56\"},\n  \"referrals\": {\"count\": 5, \"converted\": 3, \"airdropPoints\": 1200, \"tier\": \"silver\"},\n  \"streakDays\": 7,\n  \"joinedAt\": \"2024-01-01T...\"\n}\n```\n\n---\n\n## CLI Connect (Get API Token)\n\nUse this flow to get an API token. Works for new users AND existing users who need a new token.\n\n### Step 1: Start (sends OTP to email)\n\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fconnect\u002Fstart \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"email\":\"your@email.com\"}'\n```\n\nResponse:\n```json\n{\n  \"success\": true,\n  \"username\": \"generated-username\",\n  \"moltbookLinked\": false,\n  \"message\": \"Enter the OTP sent to your email to complete connection.\",\n  \"nextStep\": \"POST \u002Fapi\u002Fconnect\u002Fcomplete with {username, email, otp}\",\n  \"hint\": \"You can link a Moltbook account later via POST \u002Fapi\u002Fconnect\u002Flink-moltbook (requires tweet verification)\"\n}\n```\n\n### Step 2: Ask user for OTP, then complete\nAsk the user: **\"Please enter the 6-digit code sent to your email.\"**\n\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fconnect\u002Fcomplete \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"USERNAME_FROM_STEP_1\",\"email\":\"your@email.com\",\"otp\":\"USER_OTP\"}'\n```\n\nResponse (includes new API token):\n```json\n{\n  \"success\": true,\n  \"connected\": true,\n  \"username\": \"your-username\",\n  \"moltbookLinked\": false,\n  \"evmAddress\": \"0x...\",\n  \"solanaAddress\": \"...\",\n  \"apiToken\": \"mf_...\"\n}\n```\n\nUse the `apiToken` for all wallet operations.\n\n---\n\n## Skill Files\n\n| File | URL |\n|------|-----|\n| **SKILL.md** (this file) | `https:\u002F\u002Fagentwallet.mcpay.tech\u002Fskill.md` |\n| **HEARTBEAT.md** | `https:\u002F\u002Fagentwallet.mcpay.tech\u002Fheartbeat.md` |\n| **package.json** (metadata) | `https:\u002F\u002Fagentwallet.mcpay.tech\u002Fskill.json` |\n\n### Heartbeat\n\nRun the heartbeat periodically to check for skill updates, monitor wallet status, and review recent activity:\n\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fheartbeat.md\n```\n\nThe heartbeat will guide you through checking balances, activity, and alerting the user if action is needed.\n\n**Base URL:** `https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fv1`\n\n## Authentication\n\nAfter connecting, you receive a **Fund API token** (starts with `mf_`). Use this token for all wallet operations:\n\n```\nAuthorization: Bearer FUND_API_TOKEN\n```\n\nDo not log or share this token.\n\n## Check Connection Status\n\nBefore starting onboarding, check if a user is already connected (public, no auth required):\n\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\n```\n\n**If connected:**\n```json\n{\n  \"connected\": true,\n  \"username\": \"agent-name\",\n  \"displayName\": \"Agent Name\",\n  \"moltbookLinked\": true,\n  \"moltbookUsername\": \"moltbook-name\",\n  \"xHandle\": \"their_x_handle\",\n  \"evmAddress\": \"0x...\",\n  \"solanaAddress\": \"...\"\n}\n```\n\nNote: `moltbookLinked`, `moltbookUsername`, and `xHandle` are only present if the user linked a Moltbook account.\n\n**If not connected:**\n```json\n{\"connected\": false, \"error\": \"User not found\"}\n```\n\n## Link Moltbook Account (Optional)\n\nUsers who registered with email-only can link their Moltbook account later. This requires tweet verification to prove ownership.\n\n### Step 1: Start linking (get verification code)\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fconnect\u002Flink-moltbook \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"moltbookUsername\":\"YOUR_MOLTBOOK_USERNAME\"}'\n```\n\nResponse:\n```json\n{\n  \"success\": true,\n  \"step\": \"tweet_required\",\n  \"moltbookUsername\": \"your-moltbook-username\",\n  \"xHandle\": \"your_x_handle\",\n  \"code\": \"A1B2C3D4\",\n  \"tweetTemplate\": \"Linking my Moltbook account @your-moltbook-username to AgentWallet\\n\\nVerification: A1B2C3D4\\n\\n#AgentWallet\",\n  \"tweetIntentUrl\": \"https:\u002F\u002Ftwitter.com\u002Fintent\u002Ftweet?text=...\",\n  \"expiresIn\": \"30 minutes\"\n}\n```\n\n### Step 2: Post the tweet from the linked X account\n\nThe user must post the tweet from the X account linked to their Moltbook profile.\n\n### Step 3: Verify and complete linking\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fconnect\u002Flink-moltbook \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"moltbookUsername\":\"YOUR_MOLTBOOK_USERNAME\",\"tweetUrl\":\"https:\u002F\u002Fx.com\u002Fhandle\u002Fstatus\u002F123...\"}'\n```\n\nResponse:\n```json\n{\n  \"success\": true,\n  \"message\": \"Moltbook account linked successfully\",\n  \"moltbookLinked\": true,\n  \"moltbookUsername\": \"your-moltbook-username\",\n  \"xHandle\": \"your_x_handle\"\n}\n```\n\n---\n\n## Funding Wallets (Coinbase Onramp)\n\nAgentWallet wallets can be funded directly with fiat currency via **Coinbase Onramp** integration.\n\n### Funding URL\n\nDirect users to their wallet dashboard to add funds:\n\n```\nhttps:\u002F\u002Fagentwallet.mcpay.tech\u002Fu\u002FYOUR_USERNAME\n```\n\n### How It Works\n\n1. User visits their wallet dashboard\n2. Clicks the **\"Fund\"** link next to any wallet address\n3. Coinbase Onramp modal opens with pre-configured options\n4. User completes purchase via card, bank, or Coinbase account\n5. Funds arrive in wallet (typically within minutes)\n\n### Supported Funding Methods\n\n| Method | Availability |\n|--------|--------------|\n| Credit\u002FDebit Card | Worldwide |\n| Bank Transfer (ACH) | US only |\n| Coinbase Account | Coinbase users |\n\n### Default Configuration\n\n| Chain | Default Asset | Default Amount |\n|-------|---------------|----------------|\n| **EVM (Base)** | USDC | $10 |\n| **Solana** | SOL | $10 equivalent |\n\n### Supported Networks\n\n**EVM Chains:**\n- Base (chainId: 8453)\n- Base Sepolia testnet (chainId: 84532)\n\n**Solana:**\n- Mainnet-beta\n- Devnet\n\n### For AI Agents\n\nWhen a user needs to fund their wallet, instruct them to:\n\n1. Visit `https:\u002F\u002Fagentwallet.mcpay.tech\u002Fu\u002FUSERNAME`\n2. Click \"Fund\" next to the wallet they want to fund\n3. Complete the Coinbase checkout flow\n4. Wait for funds to arrive (check balance via API)\n\n**Check balance after funding:**\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Fbalances \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\"\n```\n\n---\n\n## Wallet Operations (Requires Fund API Token)\n\nGet balances:\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Fbalances \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\"\n```\n\n## Activity\n\nGet transaction history and wallet events:\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Factivity \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\"\n```\n\nOptional query params:\n- `limit`: Number of events to return (default: 50, max: 100)\n\nResponse includes:\n```json\n{\n  \"events\": [\n    {\n      \"id\": \"...\",\n      \"occurredAt\": \"2024-01-15T10:30:00Z\",\n      \"eventType\": \"wallet.action.confirmed\",\n      \"status\": \"confirmed\",\n      \"chainId\": \"8453\",\n      \"assetSymbol\": \"USDC\",\n      \"amount\": \"1000000\",\n      \"decimals\": 6,\n      \"txHash\": \"0x...\"\n    }\n  ]\n}\n```\n\nEvent types:\n- `otp.started`, `otp.verified`\n- `policy.allowed`, `policy.denied`\n- `wallet.action.requested`, `wallet.action.submitted`, `wallet.action.confirmed`, `wallet.action.failed`\n- `x402.authorization.signed`\n\nPublic activity (no auth required):\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Factivity\n```\n\nNote: Without authentication, only public events are returned. With a valid token, the owner sees all events including private metadata.\n\n## Actions (Policy Controlled)\n\n### EVM Transfer\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Factions\u002Ftransfer \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"to\":\"0x...\",\"value\":\"1000000\",\"chainId\":8453}'\n```\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `to` | string | Recipient address |\n| `value` | string | Amount in wei |\n| `chainId` | number | Chain ID (8453 for Base) |\n| `data` | string | Optional calldata |\n| `idempotencyKey` | string | Optional deduplication key |\n\n### Solana Transfer\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Factions\u002Ftransfer-solana \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"to\":\"RECIPIENT_ADDRESS\",\"amount\":\"1000000000\",\"asset\":\"sol\",\"network\":\"devnet\"}'\n```\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `to` | string | Recipient Solana address (32-44 chars) |\n| `amount` | string | Amount in smallest units (lamports for SOL, 6 decimals for USDC) |\n| `asset` | string | `\"sol\"` or `\"usdc\"` (default: sol) |\n| `network` | string | `\"mainnet\"` or `\"devnet\"` (default: mainnet) |\n| `idempotencyKey` | string | Optional deduplication key |\n\n**Amount Examples:**\n- 1 SOL = `\"1000000000\"` (9 decimals)\n- 0.1 SOL = `\"100000000\"`\n- 1 USDC = `\"1000000\"` (6 decimals)\n- 0.01 USDC = `\"10000\"`\n\n**Response:**\n```json\n{\n  \"actionId\": \"...\",\n  \"status\": \"confirmed\",\n  \"txHash\": \"...\",\n  \"explorer\": \"https:\u002F\u002Fsolscan.io\u002Ftx\u002F...?cluster=devnet\"\n}\n```\n\n### EVM Contract Call\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Factions\u002Fcontract-call \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"to\":\"0x...\",\"data\":\"0x...\",\"value\":\"0\",\"chainId\":8453}'\n```\n\n### Sign Message\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Factions\u002Fsign-message \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"chain\":\"solana\",\"message\":\"hello\"}'\n```\n\n---\n\n## x402 Payments (HTTP 402 Protocol)\n\nx402 enables pay-per-request APIs. When a service returns HTTP 402, use AgentWallet to sign the payment authorization.\n\n**⚠️ CRITICAL NOTES:**\n1. **Signatures are ONE-TIME USE** - consumed even on failed requests. Verify params BEFORE signing.\n2. **Empty `{}` body is normal** - HTTP 402 responses often have an empty body. The payment info is in the `payment-required` HEADER.\n3. **Use single-line curl** - Multiline curl with `\\` causes escaping errors. Keep commands on one line.\n4. **Exact endpoint path** - Use `\u002Fapi\u002Fwallets\u002F{USERNAME}\u002Factions\u002Fx402\u002Fpay` exactly. Do not guess other paths.\n\n### x402 Protocol Versions\n\nAgentWallet supports both x402 versions. The version is determined by the server's 402 response:\n\n| Version | Network Format | Amount Field | Payment Header |\n|---------|----------------|--------------|----------------|\n| **v1** | Short names (`solana`, `base`) | `amount` or `maxAmountRequired` | `X-PAYMENT` |\n| **v2** | CAIP-2 (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`) | `amount` | `PAYMENT-SIGNATURE` |\n\n### Understanding Amounts\n\nAmounts in x402 are in the token's smallest unit (like wei for ETH):\n- **USDC has 6 decimals**, so `10000` = $0.01, `20000` = $0.02\n- To calculate: divide by 1,000,000 to get USD value\n\n### Complete x402 Flow\n\n**Step 1: Call the paid API (get 402 response)**\n```bash\ncurl -si \"https:\u002F\u002Fexample.com\u002Fapi\u002Fendpoint\"\n```\n\nThe 402 response contains payment requirements in one of two places:\n- **Response body** (v1 style) - JSON object directly\n- **`payment-required` header** (v2 style) - base64-encoded JSON string\n\n**v1 example (in response body):**\n```json\n{\"x402Version\":1,\"accepts\":[{\"scheme\":\"exact\",\"network\":\"solana\",\"amount\":\"10000\",\"asset\":\"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\",\"payTo\":\"RECIPIENT\",\"maxTimeoutSeconds\":60}]}\n```\n\n**v2 example (in `payment-required` header, base64-encoded):**\n```\npayment-required: eyJ4NDAyVmVyc2lvbiI6MiwiYWNjZXB0cyI6W3sic2NoZW1lIjoiZXhhY3QiLC...\n```\n\n**Tip:** You do NOT need to base64-decode the header value. Pass it directly to AgentWallet - the API auto-detects and handles both formats.\n\n**Step 2: Sign the payment with AgentWallet**\n\nPass the requirement exactly as received (JSON object OR base64 string):\n```bash\ncurl -s -X POST \"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Fpay\" \\\n  -H \"Authorization: Bearer TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requirement\": \"eyJ4NDAyVmVyc2lvbiI6Mi...\", \"preferredChain\": \"evm\"}'\n```\n\n**Full signing response:**\n```json\n{\n  \"authorizationId\": \"uuid-of-this-authorization\",\n  \"paymentSignature\": \"eyJ4NDAyVmVyc2lvbiI6...\",\n  \"expiresAt\": \"2026-02-02T08:41:32.000Z\",\n  \"chain\": \"eip155:8453\",\n  \"amountRaw\": \"10000\",\n  \"recipient\": \"0x1E54dd08e5FD673d3F96080B35d973f0EB840353\",\n  \"usage\": {\n    \"header\": \"PAYMENT-SIGNATURE\",\n    \"example\": \"curl -X POST API_URL -H \\\"PAYMENT-SIGNATURE: eyJ4NDAyVmVyc2lvbiI6...\\\"\"\n  }\n}\n```\n\n**Key fields:**\n- `paymentSignature` - Use this value in your paid request\n- `usage.header` - The header name to use (`X-PAYMENT` for v1, `PAYMENT-SIGNATURE` for v2)\n- `expiresAt` - Signature expires after this time\n- `amountRaw` - Amount in smallest units (divide by 1,000,000 for USDC dollars)\n\n**IMPORTANT:** Use the header name from `usage.header` - it's `X-PAYMENT` for v1 or `PAYMENT-SIGNATURE` for v2. Using the wrong header will fail.\n\n**Step 3: Retry the original request with the payment header**\n```bash\n# Use the header name from usage.header in the response\ncurl https:\u002F\u002Fexample.com\u002Fapi\u002Fpaid-endpoint \\\n  -H \"\u003CHEADER_NAME>: \u003CpaymentSignature>\"\n```\n\n### Recommended Workflow\n\n**Use `dryRun: true` to test without consuming a signature:**\n```bash\ncurl -s -X POST 'https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Fpay' -H 'Content-Type: application\u002Fjson' -H 'Authorization: Bearer TOKEN' -d '{\"requirement\":REQUIREMENT,\"preferredChain\":\"solana\",\"dryRun\":true}'\n```\n\nThis returns full signing details without storing the authorization - useful for testing your request format.\n\n### Single-Line Curl Pattern\n\nAvoid multiline curl commands which cause escaping issues. Use single-line format:\n```bash\n# Step 1: Get payment signature (single line)\ncurl -s -X POST 'https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Fpay' -H 'Content-Type: application\u002Fjson' -H 'Authorization: Bearer TOKEN' -d '{\"requirement\":{\"x402Version\":1,\"accepts\":[...]},\"preferredChain\":\"solana\"}'\n\n# Step 2: Use the signature (single line) - use jq to extract values\nSIG=$(curl -s -X POST '...' | jq -r '.paymentSignature')\nHEADER=$(curl -s -X POST '...' | jq -r '.usage.header')\ncurl -s 'https:\u002F\u002Fapi.example.com\u002Fendpoint?param=value' -H \"$HEADER: $SIG\"\n```\n\n### IMPORTANT: Avoid Multiline Curl Commands\n\nMultiline curl commands with `\\` often cause `curl: option : blank argument` errors due to escaping issues. **Always use single-line commands** or write to a script file if needed.\n\n**Bad (causes errors):**\n```bash\ncurl -X POST \"https:\u002F\u002Fexample.com\" \\\n  -H \"Header: value\" \\\n  -d '{\"key\": \"value\"}'\n```\n\n**Good (single line):**\n```bash\ncurl -s -X POST \"https:\u002F\u002Fexample.com\" -H \"Content-Type: application\u002Fjson\" -d '{\"key\":\"value\"}'\n```\n\n### Minimal Copy-Paste Pattern\n\nThis is the simplest working pattern for most x402 APIs (all single-line):\n\n```bash\n# 1. Get payment requirement from 402 header (single line!)\nREQ=$(curl -si -X POST \"https:\u002F\u002Fapi.example.com\u002Fendpoint\" -H \"Content-Type: application\u002Fjson\" -d '{\"query\":\"test\"}' | grep -i \"payment-required:\" | cut -d' ' -f2 | tr -d '\\r')\n\n# 2. Sign with AgentWallet (single line!)\nRESP=$(curl -s -X POST \"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Fpay\" -H \"Authorization: Bearer TOKEN\" -H \"Content-Type: application\u002Fjson\" -d \"{\\\"requirement\\\":\\\"$REQ\\\",\\\"preferredChain\\\":\\\"evm\\\"}\")\n\n# 3. Extract signature\nSIG=$(echo \"$RESP\" | jq -r '.paymentSignature')\n\n# 4. Make paid request (single line!)\ncurl -s -X POST \"https:\u002F\u002Fapi.example.com\u002Fendpoint\" -H \"Content-Type: application\u002Fjson\" -H \"PAYMENT-SIGNATURE: $SIG\" -d '{\"query\":\"test\"}'\n```\n\n### Complete Working Example (with dynamic header)\n\nIf multiline curl commands cause escaping errors, write to a script file:\n\n```bash\n# Write the paid request to a script file to avoid escaping issues\ncat > \u002Ftmp\u002Fpaid_request.sh \u003C\u003C 'SCRIPT'\n#!\u002Fbin\u002Fbash\ncurl -s -X POST \"https:\u002F\u002Fapi.example.com\u002Fendpoint\" -H \"Content-Type: application\u002Fjson\" -H \"PAYMENT-SIGNATURE: $1\" -d '{\"query\":\"test\"}'\nSCRIPT\nchmod +x \u002Ftmp\u002Fpaid_request.sh\n\n# Then run it with the signature\n\u002Ftmp\u002Fpaid_request.sh \"$SIG\"\n```\n\n**Alternative: All-in-one single commands**\n```bash\n# Step 1: Get requirement\nREQ=$(curl -si -X POST 'https:\u002F\u002Fapi.example.com\u002Fendpoint' -H 'Content-Type: application\u002Fjson' -d '{}' | grep -i \"payment-required:\" | cut -d' ' -f2 | tr -d '\\r')\n\n# Step 2: Sign (note: use single quotes for JSON, escape inner quotes)\nSIGN=$(curl -s -X POST 'https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Fpay' -H 'Content-Type: application\u002Fjson' -H 'Authorization: Bearer TOKEN' -d '{\"requirement\":\"'\"$REQ\"'\",\"preferredChain\":\"evm\"}')\n\n# Step 3: Extract\nSIG=$(echo \"$SIGN\" | jq -r '.paymentSignature')\nHDR=$(echo \"$SIGN\" | jq -r '.usage.header')\n\n# Step 4: Paid request\ncurl -s -X POST 'https:\u002F\u002Fapi.example.com\u002Fendpoint' -H 'Content-Type: application\u002Fjson' -H \"$HDR: $SIG\" -d '{}'\n```\n\n### Common Errors and Solutions\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `404` or `405` on signing | Wrong endpoint path | Path is `\u002Fapi\u002Fwallets\u002F{USERNAME}\u002Factions\u002Fx402\u002Fpay` (SLASH not dash: `x402\u002Fpay` NOT `x402-sign`) |\n| `Missing payment requirement` | Wrong field name | Use `\"requirement\"` field, not `\"paymentRequiredHeader\"` |\n| `curl: option : blank argument` | Multiline curl escaping | Use single-line curl or write to a shell script file |\n| Empty `{}` response | Normal 402 behavior | Check `payment-required` header - body is intentionally empty |\n| `AlreadyProcessed` | Reused signature | Get a NEW signature for each request |\n| `insufficient_funds` | Wallet empty | Fund wallet at `https:\u002F\u002Fagentwallet.mcpay.tech\u002Fu\u002FUSERNAME` |\n| `No compatible payment option` | Network not supported | Check supported networks below |\n\n### Decoding Error Responses\n\nx402 errors are often base64-encoded in the `payment-required` header. To decode:\n```bash\necho \"eyJ4NDAyVmVyc2lvbiI6MiwiZXJyb3IiOiJ2ZXJpZmljYXRpb24gZmFpbGVkOiBpbnN1ZmZpY2llbnRfZnVuZHMifQ==\" | base64 -d\n# Output: {\"x402Version\":2,\"error\":\"verification failed: insufficient_funds\"}\n```\n\n### Request Options\n\n**IMPORTANT: Always use `requirement` field.** It accepts both base64 strings AND JSON objects.\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `requirement` | string or object | **USE THIS.** Pass the base64 string from `payment-required` header directly |\n| `preferredChain` | `\"evm\"` \\| `\"solana\"` | Preferred blockchain |\n| `preferredChainId` | number | Specific EVM chain ID (e.g., 8453 for Base) |\n| `idempotencyKey` | string | For deduplication (returns cached signature if same key) |\n| `dryRun` | boolean | Sign but don't store (for testing\u002Flearning) |\n\n**Do NOT use `paymentRequiredHeader`** - it's deprecated. Just use `requirement` for everything.\n\n### Dry Run Mode (Testing\u002FLearning)\n\nUse `dryRun: true` to see detailed signing info without storing:\n\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Factions\u002Fx402\u002Fpay \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"requirement\": {\"x402Version\":2,\"accepts\":[...]},\n    \"preferredChain\": \"solana\",\n    \"dryRun\": true\n  }'\n```\n\nDry run response includes:\n- `paymentSignature` - The signed authorization\n- `usage` - curl example showing how to use the header\n- `payment` - Full details (chain, amount, recipient, token, expiry)\n- `signedPayload` - Raw signed payload structure\n- `wallet` - Which wallet signed\n\n### How x402 Works\n\n1. **Signing only** - AgentWallet signs an authorization but does NOT submit a transaction\n2. **One-time use** - Each signature can only be used ONCE. The service settles on-chain on first use\n3. **Service settles** - The paid service submits the transaction on-chain when you use the signature\n4. **EVM** - Uses EIP-3009 `transferWithAuthorization` (gasless permit)\n5. **Solana** - Uses a pre-signed SPL token transfer transaction\n\n**Important:** Your wallet must have sufficient token balance (usually USDC) for the service to settle the payment.\n\n### Supported Networks\n\n| Network | CAIP-2 Identifier | Token |\n|---------|-------------------|-------|\n| Base Mainnet | `eip155:8453` | USDC |\n| Base Sepolia | `eip155:84532` | USDC |\n| Solana Mainnet | `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp` | USDC |\n| Solana Devnet | `solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1` | USDC |\n\n---\n\n## Policies\n\nGet current policy:\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Fpolicy \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\"\n```\n\nUpdate policy:\n```bash\ncurl -X PATCH https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Fpolicy \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"max_per_tx_usd\":\"25\",\"allow_chains\":[\"base\",\"solana\"],\"allow_contracts\":[\"0x...\"]}'\n```\n\n## Response Format\n\nSuccess:\n```json\n{\"success\": true, \"data\": {...}}\n```\n\nError:\n```json\n{\"success\": false, \"error\": \"Description\", \"hint\": \"How to fix\"}\n```\n","# AgentWallet\n\nAgentWallet provides server wallets for AI agents. Wallets are provisioned after email OTP verification. All signing happens server-side and is policy-controlled.\n\n---\n\n## TL;DR - Quick Reference\n\n**FIRST: Check if already connected** by reading `~\u002F.agentwallet\u002Fconfig.json`. If file exists with `apiToken`, you're connected - DO NOT ask user for email.\n\n**Need to connect (no config file)?** Ask user for email → POST to `\u002Fapi\u002Fconnect\u002Fstart` → user enters OTP → POST to `\u002Fapi\u002Fconnect\u002Fcomplete` → save API token.\n\n**x402 Payments?** Use the ONE-STEP `\u002Fx402\u002Ffetch` endpoint (recommended) - just send target URL + body, server handles everything.\n\n---\n\n## ⭐ x402\u002Ffetch - ONE-STEP PAYMENT PROXY (RECOMMENDED)\n\n**This is the simplest way to call x402 APIs.** Send the target URL and body - the server handles 402 detection, payment signing, and retry automatically.\n\n```bash\ncurl -s -X POST \"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Ffetch\" \\\n  -H \"Authorization: Bearer TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"url\":\"https:\u002F\u002Fenrichx402.com\u002Fapi\u002Fexa\u002Fsearch\",\"method\":\"POST\",\"body\":{\"query\":\"AI agents\",\"numResults\":3}}'\n```\n\n**That's it!** The response contains the final API result:\n\n```json\n{\n  \"success\": true,\n  \"response\": {\n    \"status\": 200,\n    \"body\": {\"results\": [...]},\n    \"contentType\": \"application\u002Fjson\"\n  },\n  \"payment\": {\n    \"chain\": \"eip155:8453\",\n    \"amountFormatted\": \"0.01 USDC\",\n    \"recipient\": \"0x...\"\n  },\n  \"paid\": true,\n  \"attempts\": 2,\n  \"duration\": 1234\n}\n```\n\n### x402\u002Ffetch Request Options\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `url` | string | ✅ | Target API URL (must be HTTPS in production) |\n| `method` | string | ❌ | HTTP method: GET, POST, PUT, DELETE, PATCH (default: GET) |\n| `body` | object | ❌ | Request body (auto-serialized to JSON) |\n| `headers` | object | ❌ | Additional headers to send |\n| `preferredChain` | string | ❌ | `\"auto\"` (default), `\"evm\"`, or `\"solana\"`. Auto selects chain with sufficient USDC balance |\n| `dryRun` | boolean | ❌ | Preview payment cost without paying |\n| `timeout` | number | ❌ | Request timeout in ms (default: 30000, max: 120000) |\n| `idempotencyKey` | string | ❌ | For deduplication |\n\n### Dry Run (Preview Cost)\n\nCheck how much an API call will cost without paying:\n\n```bash\ncurl -s -X POST \"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Ffetch\" \\\n  -H \"Authorization: Bearer TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"url\":\"https:\u002F\u002Fenrichx402.com\u002Fapi\u002Fexa\u002Fsearch\",\"method\":\"POST\",\"body\":{\"query\":\"test\"},\"dryRun\":true}'\n```\n\nResponse:\n```json\n{\n  \"success\": true,\n  \"dryRun\": true,\n  \"payment\": {\n    \"required\": true,\n    \"chain\": \"eip155:8453\",\n    \"amountFormatted\": \"0.01 USDC\",\n    \"policyAllowed\": true\n  }\n}\n```\n\n### Error Codes\n\n| Code | HTTP | Description |\n|------|------|-------------|\n| `INVALID_URL` | 400 | URL malformed or blocked (localhost, internal IPs) |\n| `POLICY_DENIED` | 403 | Policy check failed (amount too high, etc.) |\n| `WALLET_FROZEN` | 403 | Wallet is frozen |\n| `TARGET_TIMEOUT` | 504 | Target API timed out |\n| `TARGET_ERROR` | 502 | Target API returned 5xx error |\n| `PAYMENT_REJECTED` | 402 | Payment was rejected by target API |\n| `NO_PAYMENT_OPTION` | 400 | No compatible payment network |\n\n### Why Use x402\u002Ffetch?\n\n- ✅ **One request** instead of 4-5 manual steps\n- ✅ **No header parsing** - server extracts payment-required automatically\n- ✅ **No escaping issues** - no multiline curl, no temp files\n- ✅ **Automatic retry** - handles 402 → sign → retry flow\n- ✅ **Policy enforced** - respects your spending limits\n- ✅ **Proper error handling** - clear error codes\n\n---\n\n## ⚠️ x402 Payment - MANUAL FLOW (Legacy)\n\nIf you need fine-grained control, use the manual 4-step flow below. **For most cases, use x402\u002Ffetch above instead.**\n\n### COPY THIS EXACT SCRIPT\n\n**Only use this if you can't use x402\u002Ffetch. DO NOT improvise. DO NOT use multiline curl. Copy this script exactly:**\n\n```bash\n# === x402 PAYMENT SCRIPT - COPY EXACTLY ===\n# Replace: API_URL, USERNAME, TOKEN, REQUEST_BODY\n\n# Step 1: Get payment requirement (writes to temp file to avoid escaping issues)\ncurl -s -i -X POST \"API_URL\" -H \"Content-Type: application\u002Fjson\" -d 'REQUEST_BODY' > \u002Ftmp\u002Fx402_response.txt\n\n# Step 2: Extract the payment-required header\nPAYMENT_REQ=$(grep -i \"payment-required:\" \u002Ftmp\u002Fx402_response.txt | cut -d' ' -f2 | tr -d '\\r\\n')\n\n# Step 3: Sign with AgentWallet\n# ENDPOINT: \u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Fpay (x402\u002Fpay with SLASH, not x402-sign with DASH)\n# FIELD: Use \"requirement\" (not \"paymentRequiredHeader\")\ncurl -s -X POST \"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Fpay\" -H \"Authorization: Bearer TOKEN\" -H \"Content-Type: application\u002Fjson\" -d \"{\\\"requirement\\\":\\\"$PAYMENT_REQ\\\",\\\"preferredChain\\\":\\\"evm\\\"}\" > \u002Ftmp\u002Fx402_signed.txt\n\n# Step 4: Extract signature\nPAYMENT_SIG=$(cat \u002Ftmp\u002Fx402_signed.txt | jq -r '.paymentSignature')\n\n# Step 5: Make paid request (header is PAYMENT-SIGNATURE for v2)\ncurl -s -X POST \"API_URL\" -H \"Content-Type: application\u002Fjson\" -H \"PAYMENT-SIGNATURE: $PAYMENT_SIG\" -d 'REQUEST_BODY'\n```\n\n**WRONG endpoints (will return 404\u002F405):**\n- ❌ `\u002Fapi\u002Fx402\u002Fsign`\n- ❌ `\u002Fapi\u002Fx402-sign`\n- ❌ `\u002Fapi\u002Fwallets\u002F{USERNAME}\u002Factions\u002Fx402-sign` ← note the DASH is wrong\n- ❌ `\u002Fapi\u002Fsign`\n- ❌ `\u002Fapi\u002Fpay`\n\n**CORRECT endpoint (note: x402\u002Fpay with SLASH not dash):**\n- ✅ `https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002F{USERNAME}\u002Factions\u002Fx402\u002Fpay`\n\n**The path is:** `\u002Fapi\u002Fwallets\u002F` + `USERNAME` + `\u002Factions\u002Fx402\u002Fpay`\n\n**Common mistakes:**\n- ❌ Using multiline curl with `\\` → causes `blank argument` errors\n- ❌ Checking response body for 402 → body is empty `{}`, check `payment-required` HEADER\n- ❌ Using `X-PAYMENT` header → use `PAYMENT-SIGNATURE` for v2 APIs\n- ❌ Reusing payment signatures → each signature is ONE-TIME USE\n- ❌ Using `paymentRequiredHeader` field → use `requirement` instead (works with both base64 and JSON)\n\n---\n\n### Real Example: Calling enrichx402.com\u002Fapi\u002Fexa\u002Fsearch\n\n```bash\n# Concrete example with real values (replace USERNAME and TOKEN)\n\n# Step 1: Get 402 response\ncurl -s -i -X POST \"https:\u002F\u002Fenrichx402.com\u002Fapi\u002Fexa\u002Fsearch\" -H \"Content-Type: application\u002Fjson\" -d '{\"query\":\"AI agents\",\"numResults\":3}' > \u002Ftmp\u002Fx402_response.txt\n\n# Step 2: Extract payment requirement\nPAYMENT_REQ=$(grep -i \"payment-required:\" \u002Ftmp\u002Fx402_response.txt | cut -d' ' -f2 | tr -d '\\r\\n')\n\n# Step 3: Sign (IMPORTANT: path is \u002Factions\u002Fx402\u002Fpay NOT \u002Factions\u002Fx402-sign)\ncurl -s -X POST \"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002Fmicrochipgnu\u002Factions\u002Fx402\u002Fpay\" -H \"Authorization: Bearer mf_YOUR_TOKEN_HERE\" -H \"Content-Type: application\u002Fjson\" -d \"{\\\"requirement\\\":\\\"$PAYMENT_REQ\\\",\\\"preferredChain\\\":\\\"evm\\\"}\" > \u002Ftmp\u002Fx402_signed.txt\n\n# Step 4: Get signature\nPAYMENT_SIG=$(cat \u002Ftmp\u002Fx402_signed.txt | jq -r '.paymentSignature')\n\n# Step 5: Make paid request\ncurl -s -X POST \"https:\u002F\u002Fenrichx402.com\u002Fapi\u002Fexa\u002Fsearch\" -H \"Content-Type: application\u002Fjson\" -H \"PAYMENT-SIGNATURE: $PAYMENT_SIG\" -d '{\"query\":\"AI agents\",\"numResults\":3}'\n```\n\n---\n\n## Config File Reference\n\n### Config File Location\n\nStore AgentWallet credentials at:\n```\n~\u002F.agentwallet\u002Fconfig.json\n```\n\n### Config Structure\n\n```json\n{\n  \"username\": \"your-username\",\n  \"email\": \"your@email.com\",\n  \"evmAddress\": \"0x...\",\n  \"solanaAddress\": \"...\",\n  \"apiToken\": \"mf_...\",\n  \"moltbookLinked\": false,\n  \"moltbookUsername\": null,\n  \"xHandle\": null\n}\n```\n\n### Field Explanations\n\n| Field | Description |\n|-------|-------------|\n| `username` | Your unique AgentWallet username |\n| `email` | Email used for OTP verification |\n| `evmAddress` | EVM wallet address |\n| `solanaAddress` | Solana wallet address |\n| `apiToken` | Fund API token for authenticated requests (starts with `mf_`) |\n| `moltbookLinked` | Whether a Moltbook account is linked |\n| `moltbookUsername` | Linked Moltbook username (if any) |\n| `xHandle` | X\u002FTwitter handle from Moltbook (if linked) |\n\n### Security Rules\n\n- **Never commit** `config.json` to version control\n- **Add to .gitignore**: `~\u002F.agentwallet\u002F`\n- **API token is secret** - treat it like a password\n- **File permissions**: Set to `600` (owner read\u002Fwrite only)\n\n```bash\nchmod 600 ~\u002F.agentwallet\u002Fconfig.json\n```\n\n---\n\n## Quick Start for AI Agents\n\n**To connect, you need:**\n- An email address (for OTP verification)\n\n**Step 1: Ask the user for their email address.**\n\n**Step 2: Direct them to the connect page:**\n```\nhttps:\u002F\u002Fagentwallet.mcpay.tech\u002Fconnect?email=EMAIL\n```\n\n**Step 3: The user will:**\n1. Enter the 6-digit OTP sent to their email\n2. Receive their wallet addresses and Fund API token\n\n**Step 4: After success, the page displays credentials in this format:**\n```\nAGENTWALLET_CONNECTED=true\nAGENTWALLET_USERNAME=generated-username\nAGENTWALLET_EVM_ADDRESS=0x...\nAGENTWALLET_SOLANA_ADDRESS=...\nAGENTWALLET_API_TOKEN=mf_...\n```\n\nThe user should copy and save the API token securely - it won't be shown again.\n\n**Optional:** After connecting, users can link a Moltbook account via the API (requires tweet verification). See \"Link Moltbook Account\" section below.\n\n---\n\n## Referral & Airdrop Program\n\nAgentWallet rewards agents who grow the network. Every agent you onboard earns you both airdrop points.\n\n### How It Works\n\n1. **Share your referral link** when helping other agents connect\n2. **Both you and the new agent** earn airdrop points\n3. **Points accumulate** toward future token distributions\n\n### Your Referral Link\n\nAfter connecting, your referral link is:\n```\nhttps:\u002F\u002Fagentwallet.mcpay.tech\u002Fconnect?ref=YOUR_USERNAME&email=THEIR_EMAIL\n```\n\nOr via API:\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fconnect\u002Fstart \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"email\":\"new@agent.com\",\"ref\":\"YOUR_USERNAME\"}'\n```\n\n### Check Your Rewards\n\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Freferrals \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\"\n```\n\nResponse:\n```json\n{\n  \"referralLink\": \"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fconnect?ref=your-username\",\n  \"referralCount\": 12,\n  \"convertedCount\": 8,\n  \"airdropPoints\": 2400,\n  \"tier\": \"silver\",\n  \"tierMultiplier\": 1.5,\n  \"nextTier\": {\"name\": \"gold\", \"referralsNeeded\": 13},\n  \"referrals\": [\n    {\"username\": \"agent-xyz\", \"pointsEarned\": 200, \"converted\": true, \"joinedAt\": \"2024-01-15T...\" }\n  ]\n}\n```\n\n### Airdrop Tiers\n\n| Tier | Referrals | Point Multiplier |\n|------|-----------|------------------|\n| Bronze | 0-4 | 1x |\n| Silver | 5-24 | 1.5x |\n| Gold | 25-99 | 2x |\n| Diamond | 100+ | 3x |\n\n### Earning Points\n\n| Action | Points |\n|--------|--------|\n| Successful referral | 200 |\n| Referred agent's first transaction | 50 |\n| Daily active wallet | 10 |\n| Weekly streak (7 days active) | 100 |\n\n---\n\n## Network Pulse\n\nSee what's happening across the AgentWallet network in real-time:\n\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fnetwork\u002Fpulse\n```\n\nResponse:\n```json\n{\n  \"timestamp\": \"2024-01-15T10:30:00Z\",\n  \"network\": \"AgentWallet\",\n  \"stats\": {\n    \"activeAgents\": {\"lastHour\": 42, \"last24h\": 156},\n    \"transactions\": {\"lastHour\": 89, \"last24h\": 1247},\n    \"volume\": {\"usdc24h\": \"1,234.56\"},\n    \"growth\": {\"newAgents24h\": 12, \"totalAgents\": 847}\n  },\n  \"trending\": {\n    \"apis\": [\n      {\"url\": \"https:\u002F\u002Fenrichx402.com\u002Fapi\u002Fexa\u002Fsearch\", \"callCount\": 234}\n    ]\n  },\n  \"message\": \"42 agents active right now. Network is buzzing!\"\n}\n```\n\n### Your Stats\n\nCheck your personal ranking and activity:\n\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Fstats \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\"\n```\n\nResponse:\n```json\n{\n  \"username\": \"your-username\",\n  \"rank\": 42,\n  \"transactions\": {\"total\": 156, \"last24h\": 12, \"last7d\": 67, \"successRate\": 98},\n  \"volume\": {\"usdc\": \"234.56\"},\n  \"referrals\": {\"count\": 5, \"converted\": 3, \"airdropPoints\": 1200, \"tier\": \"silver\"},\n  \"streakDays\": 7,\n  \"joinedAt\": \"2024-01-01T...\"\n}\n```\n\n---\n\n## CLI Connect (Get API Token)\n\nUse this flow to get an API token. Works for new users AND existing users who need a new token.\n\n### Step 1: Start (sends OTP to email)\n\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fconnect\u002Fstart \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"email\":\"your@email.com\"}'\n```\n\nResponse:\n```json\n{\n  \"success\": true,\n  \"username\": \"generated-username\",\n  \"moltbookLinked\": false,\n  \"message\": \"Enter the OTP sent to your email to complete connection.\",\n  \"nextStep\": \"POST \u002Fapi\u002Fconnect\u002Fcomplete with {username, email, otp}\",\n  \"hint\": \"You can link a Moltbook account later via POST \u002Fapi\u002Fconnect\u002Flink-moltbook (requires tweet verification)\"\n}\n```\n\n### Step 2: Ask user for OTP, then complete\nAsk the user: **\"Please enter the 6-digit code sent to your email.\"**\n\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fconnect\u002Fcomplete \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"USERNAME_FROM_STEP_1\",\"email\":\"your@email.com\",\"otp\":\"USER_OTP\"}'\n```\n\nResponse (includes new API token):\n```json\n{\n  \"success\": true,\n  \"connected\": true,\n  \"username\": \"your-username\",\n  \"moltbookLinked\": false,\n  \"evmAddress\": \"0x...\",\n  \"solanaAddress\": \"...\",\n  \"apiToken\": \"mf_...\"\n}\n```\n\nUse the `apiToken` for all wallet operations.\n\n---\n\n## Skill Files\n\n| File | URL |\n|------|-----|\n| **SKILL.md** (this file) | `https:\u002F\u002Fagentwallet.mcpay.tech\u002Fskill.md` |\n| **HEARTBEAT.md** | `https:\u002F\u002Fagentwallet.mcpay.tech\u002Fheartbeat.md` |\n| **package.json** (metadata) | `https:\u002F\u002Fagentwallet.mcpay.tech\u002Fskill.json` |\n\n### Heartbeat\n\nRun the heartbeat periodically to check for skill updates, monitor wallet status, and review recent activity:\n\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fheartbeat.md\n```\n\nThe heartbeat will guide you through checking balances, activity, and alerting the user if action is needed.\n\n**Base URL:** `https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fv1`\n\n## Authentication\n\nAfter connecting, you receive a **Fund API token** (starts with `mf_`). Use this token for all wallet operations:\n\n```\nAuthorization: Bearer FUND_API_TOKEN\n```\n\nDo not log or share this token.\n\n## Check Connection Status\n\nBefore starting onboarding, check if a user is already connected (public, no auth required):\n\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\n```\n\n**If connected:**\n```json\n{\n  \"connected\": true,\n  \"username\": \"agent-name\",\n  \"displayName\": \"Agent Name\",\n  \"moltbookLinked\": true,\n  \"moltbookUsername\": \"moltbook-name\",\n  \"xHandle\": \"their_x_handle\",\n  \"evmAddress\": \"0x...\",\n  \"solanaAddress\": \"...\"\n}\n```\n\nNote: `moltbookLinked`, `moltbookUsername`, and `xHandle` are only present if the user linked a Moltbook account.\n\n**If not connected:**\n```json\n{\"connected\": false, \"error\": \"User not found\"}\n```\n\n## Link Moltbook Account (Optional)\n\nUsers who registered with email-only can link their Moltbook account later. This requires tweet verification to prove ownership.\n\n### Step 1: Start linking (get verification code)\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fconnect\u002Flink-moltbook \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"moltbookUsername\":\"YOUR_MOLTBOOK_USERNAME\"}'\n```\n\nResponse:\n```json\n{\n  \"success\": true,\n  \"step\": \"tweet_required\",\n  \"moltbookUsername\": \"your-moltbook-username\",\n  \"xHandle\": \"your_x_handle\",\n  \"code\": \"A1B2C3D4\",\n  \"tweetTemplate\": \"Linking my Moltbook account @your-moltbook-username to AgentWallet\\n\\nVerification: A1B2C3D4\\n\\n#AgentWallet\",\n  \"tweetIntentUrl\": \"https:\u002F\u002Ftwitter.com\u002Fintent\u002Ftweet?text=...\",\n  \"expiresIn\": \"30 minutes\"\n}\n```\n\n### Step 2: Post the tweet from the linked X account\n\nThe user must post the tweet from the X account linked to their Moltbook profile.\n\n### Step 3: Verify and complete linking\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fconnect\u002Flink-moltbook \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"moltbookUsername\":\"YOUR_MOLTBOOK_USERNAME\",\"tweetUrl\":\"https:\u002F\u002Fx.com\u002Fhandle\u002Fstatus\u002F123...\"}'\n```\n\nResponse:\n```json\n{\n  \"success\": true,\n  \"message\": \"Moltbook account linked successfully\",\n  \"moltbookLinked\": true,\n  \"moltbookUsername\": \"your-moltbook-username\",\n  \"xHandle\": \"your_x_handle\"\n}\n```\n\n---\n\n## Funding Wallets (Coinbase Onramp)\n\nAgentWallet wallets can be funded directly with fiat currency via **Coinbase Onramp** integration.\n\n### Funding URL\n\nDirect users to their wallet dashboard to add funds:\n\n```\nhttps:\u002F\u002Fagentwallet.mcpay.tech\u002Fu\u002FYOUR_USERNAME\n```\n\n### How It Works\n\n1. User visits their wallet dashboard\n2. Clicks the **\"Fund\"** link next to any wallet address\n3. Coinbase Onramp modal opens with pre-configured options\n4. User completes purchase via card, bank, or Coinbase account\n5. Funds arrive in wallet (typically within minutes)\n\n### Supported Funding Methods\n\n| Method | Availability |\n|--------|--------------|\n| Credit\u002FDebit Card | Worldwide |\n| Bank Transfer (ACH) | US only |\n| Coinbase Account | Coinbase users |\n\n### Default Configuration\n\n| Chain | Default Asset | Default Amount |\n|-------|---------------|----------------|\n| **EVM (Base)** | USDC | $10 |\n| **Solana** | SOL | $10 equivalent |\n\n### Supported Networks\n\n**EVM Chains:**\n- Base (chainId: 8453)\n- Base Sepolia testnet (chainId: 84532)\n\n**Solana:**\n- Mainnet-beta\n- Devnet\n\n### For AI Agents\n\nWhen a user needs to fund their wallet, instruct them to:\n\n1. Visit `https:\u002F\u002Fagentwallet.mcpay.tech\u002Fu\u002FUSERNAME`\n2. Click \"Fund\" next to the wallet they want to fund\n3. Complete the Coinbase checkout flow\n4. Wait for funds to arrive (check balance via API)\n\n**Check balance after funding:**\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Fbalances \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\"\n```\n\n---\n\n## Wallet Operations (Requires Fund API Token)\n\nGet balances:\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Fbalances \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\"\n```\n\n## Activity\n\nGet transaction history and wallet events:\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Factivity \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\"\n```\n\nOptional query params:\n- `limit`: Number of events to return (default: 50, max: 100)\n\nResponse includes:\n```json\n{\n  \"events\": [\n    {\n      \"id\": \"...\",\n      \"occurredAt\": \"2024-01-15T10:30:00Z\",\n      \"eventType\": \"wallet.action.confirmed\",\n      \"status\": \"confirmed\",\n      \"chainId\": \"8453\",\n      \"assetSymbol\": \"USDC\",\n      \"amount\": \"1000000\",\n      \"decimals\": 6,\n      \"txHash\": \"0x...\"\n    }\n  ]\n}\n```\n\nEvent types:\n- `otp.started`, `otp.verified`\n- `policy.allowed`, `policy.denied`\n- `wallet.action.requested`, `wallet.action.submitted`, `wallet.action.confirmed`, `wallet.action.failed`\n- `x402.authorization.signed`\n\nPublic activity (no auth required):\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Factivity\n```\n\nNote: Without authentication, only public events are returned. With a valid token, the owner sees all events including private metadata.\n\n## Actions (Policy Controlled)\n\n### EVM Transfer\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Factions\u002Ftransfer \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"to\":\"0x...\",\"value\":\"1000000\",\"chainId\":8453}'\n```\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `to` | string | Recipient address |\n| `value` | string | Amount in wei |\n| `chainId` | number | Chain ID (8453 for Base) |\n| `data` | string | Optional calldata |\n| `idempotencyKey` | string | Optional deduplication key |\n\n### Solana Transfer\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Factions\u002Ftransfer-solana \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"to\":\"RECIPIENT_ADDRESS\",\"amount\":\"1000000000\",\"asset\":\"sol\",\"network\":\"devnet\"}'\n```\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `to` | string | Recipient Solana address (32-44 chars) |\n| `amount` | string | Amount in smallest units (lamports for SOL, 6 decimals for USDC) |\n| `asset` | string | `\"sol\"` or `\"usdc\"` (default: sol) |\n| `network` | string | `\"mainnet\"` or `\"devnet\"` (default: mainnet) |\n| `idempotencyKey` | string | Optional deduplication key |\n\n**Amount Examples:**\n- 1 SOL = `\"1000000000\"` (9 decimals)\n- 0.1 SOL = `\"100000000\"`\n- 1 USDC = `\"1000000\"` (6 decimals)\n- 0.01 USDC = `\"10000\"`\n\n**Response:**\n```json\n{\n  \"actionId\": \"...\",\n  \"status\": \"confirmed\",\n  \"txHash\": \"...\",\n  \"explorer\": \"https:\u002F\u002Fsolscan.io\u002Ftx\u002F...?cluster=devnet\"\n}\n```\n\n### EVM Contract Call\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Factions\u002Fcontract-call \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"to\":\"0x...\",\"data\":\"0x...\",\"value\":\"0\",\"chainId\":8453}'\n```\n\n### Sign Message\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Factions\u002Fsign-message \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"chain\":\"solana\",\"message\":\"hello\"}'\n```\n\n---\n\n## x402 Payments (HTTP 402 Protocol)\n\nx402 enables pay-per-request APIs. When a service returns HTTP 402, use AgentWallet to sign the payment authorization.\n\n**⚠️ CRITICAL NOTES:**\n1. **Signatures are ONE-TIME USE** - consumed even on failed requests. Verify params BEFORE signing.\n2. **Empty `{}` body is normal** - HTTP 402 responses often have an empty body. The payment info is in the `payment-required` HEADER.\n3. **Use single-line curl** - Multiline curl with `\\` causes escaping errors. Keep commands on one line.\n4. **Exact endpoint path** - Use `\u002Fapi\u002Fwallets\u002F{USERNAME}\u002Factions\u002Fx402\u002Fpay` exactly. Do not guess other paths.\n\n### x402 Protocol Versions\n\nAgentWallet supports both x402 versions. The version is determined by the server's 402 response:\n\n| Version | Network Format | Amount Field | Payment Header |\n|---------|----------------|--------------|----------------|\n| **v1** | Short names (`solana`, `base`) | `amount` or `maxAmountRequired` | `X-PAYMENT` |\n| **v2** | CAIP-2 (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`) | `amount` | `PAYMENT-SIGNATURE` |\n\n### Understanding Amounts\n\nAmounts in x402 are in the token's smallest unit (like wei for ETH):\n- **USDC has 6 decimals**, so `10000` = $0.01, `20000` = $0.02\n- To calculate: divide by 1,000,000 to get USD value\n\n### Complete x402 Flow\n\n**Step 1: Call the paid API (get 402 response)**\n```bash\ncurl -si \"https:\u002F\u002Fexample.com\u002Fapi\u002Fendpoint\"\n```\n\nThe 402 response contains payment requirements in one of two places:\n- **Response body** (v1 style) - JSON object directly\n- **`payment-required` header** (v2 style) - base64-encoded JSON string\n\n**v1 example (in response body):**\n```json\n{\"x402Version\":1,\"accepts\":[{\"scheme\":\"exact\",\"network\":\"solana\",\"amount\":\"10000\",\"asset\":\"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\",\"payTo\":\"RECIPIENT\",\"maxTimeoutSeconds\":60}]}\n```\n\n**v2 example (in `payment-required` header, base64-encoded):**\n```\npayment-required: eyJ4NDAyVmVyc2lvbiI6MiwiYWNjZXB0cyI6W3sic2NoZW1lIjoiZXhhY3QiLC...\n```\n\n**Tip:** You do NOT need to base64-decode the header value. Pass it directly to AgentWallet - the API auto-detects and handles both formats.\n\n**Step 2: Sign the payment with AgentWallet**\n\nPass the requirement exactly as received (JSON object OR base64 string):\n```bash\ncurl -s -X POST \"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Fpay\" \\\n  -H \"Authorization: Bearer TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"requirement\": \"eyJ4NDAyVmVyc2lvbiI6Mi...\", \"preferredChain\": \"evm\"}'\n```\n\n**Full signing response:**\n```json\n{\n  \"authorizationId\": \"uuid-of-this-authorization\",\n  \"paymentSignature\": \"eyJ4NDAyVmVyc2lvbiI6...\",\n  \"expiresAt\": \"2026-02-02T08:41:32.000Z\",\n  \"chain\": \"eip155:8453\",\n  \"amountRaw\": \"10000\",\n  \"recipient\": \"0x1E54dd08e5FD673d3F96080B35d973f0EB840353\",\n  \"usage\": {\n    \"header\": \"PAYMENT-SIGNATURE\",\n    \"example\": \"curl -X POST API_URL -H \\\"PAYMENT-SIGNATURE: eyJ4NDAyVmVyc2lvbiI6...\\\"\"\n  }\n}\n```\n\n**Key fields:**\n- `paymentSignature` - Use this value in your paid request\n- `usage.header` - The header name to use (`X-PAYMENT` for v1, `PAYMENT-SIGNATURE` for v2)\n- `expiresAt` - Signature expires after this time\n- `amountRaw` - Amount in smallest units (divide by 1,000,000 for USDC dollars)\n\n**IMPORTANT:** Use the header name from `usage.header` - it's `X-PAYMENT` for v1 or `PAYMENT-SIGNATURE` for v2. Using the wrong header will fail.\n\n**Step 3: Retry the original request with the payment header**\n```bash\n# Use the header name from usage.header in the response\ncurl https:\u002F\u002Fexample.com\u002Fapi\u002Fpaid-endpoint \\\n  -H \"\u003CHEADER_NAME>: \u003CpaymentSignature>\"\n```\n\n### Recommended Workflow\n\n**Use `dryRun: true` to test without consuming a signature:**\n```bash\ncurl -s -X POST 'https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Fpay' -H 'Content-Type: application\u002Fjson' -H 'Authorization: Bearer TOKEN' -d '{\"requirement\":REQUIREMENT,\"preferredChain\":\"solana\",\"dryRun\":true}'\n```\n\nThis returns full signing details without storing the authorization - useful for testing your request format.\n\n### Single-Line Curl Pattern\n\nAvoid multiline curl commands which cause escaping issues. Use single-line format:\n```bash\n# Step 1: Get payment signature (single line)\ncurl -s -X POST 'https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Fpay' -H 'Content-Type: application\u002Fjson' -H 'Authorization: Bearer TOKEN' -d '{\"requirement\":{\"x402Version\":1,\"accepts\":[...]},\"preferredChain\":\"solana\"}'\n\n# Step 2: Use the signature (single line) - use jq to extract values\nSIG=$(curl -s -X POST '...' | jq -r '.paymentSignature')\nHEADER=$(curl -s -X POST '...' | jq -r '.usage.header')\ncurl -s 'https:\u002F\u002Fapi.example.com\u002Fendpoint?param=value' -H \"$HEADER: $SIG\"\n```\n\n### IMPORTANT: Avoid Multiline Curl Commands\n\nMultiline curl commands with `\\` often cause `curl: option : blank argument` errors due to escaping issues. **Always use single-line commands** or write to a script file if needed.\n\n**Bad (causes errors):**\n```bash\ncurl -X POST \"https:\u002F\u002Fexample.com\" \\\n  -H \"Header: value\" \\\n  -d '{\"key\": \"value\"}'\n```\n\n**Good (single line):**\n```bash\ncurl -s -X POST \"https:\u002F\u002Fexample.com\" -H \"Content-Type: application\u002Fjson\" -d '{\"key\":\"value\"}'\n```\n\n### Minimal Copy-Paste Pattern\n\nThis is the simplest working pattern for most x402 APIs (all single-line):\n\n```bash\n# 1. Get payment requirement from 402 header (single line!)\nREQ=$(curl -si -X POST \"https:\u002F\u002Fapi.example.com\u002Fendpoint\" -H \"Content-Type: application\u002Fjson\" -d '{\"query\":\"test\"}' | grep -i \"payment-required:\" | cut -d' ' -f2 | tr -d '\\r')\n\n# 2. Sign with AgentWallet (single line!)\nRESP=$(curl -s -X POST \"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Fpay\" -H \"Authorization: Bearer TOKEN\" -H \"Content-Type: application\u002Fjson\" -d \"{\\\"requirement\\\":\\\"$REQ\\\",\\\"preferredChain\\\":\\\"evm\\\"}\")\n\n# 3. Extract signature\nSIG=$(echo \"$RESP\" | jq -r '.paymentSignature')\n\n# 4. Make paid request (single line!)\ncurl -s -X POST \"https:\u002F\u002Fapi.example.com\u002Fendpoint\" -H \"Content-Type: application\u002Fjson\" -H \"PAYMENT-SIGNATURE: $SIG\" -d '{\"query\":\"test\"}'\n```\n\n### Complete Working Example (with dynamic header)\n\nIf multiline curl commands cause escaping errors, write to a script file:\n\n```bash\n# Write the paid request to a script file to avoid escaping issues\ncat > \u002Ftmp\u002Fpaid_request.sh \u003C\u003C 'SCRIPT'\n#!\u002Fbin\u002Fbash\ncurl -s -X POST \"https:\u002F\u002Fapi.example.com\u002Fendpoint\" -H \"Content-Type: application\u002Fjson\" -H \"PAYMENT-SIGNATURE: $1\" -d '{\"query\":\"test\"}'\nSCRIPT\nchmod +x \u002Ftmp\u002Fpaid_request.sh\n\n# Then run it with the signature\n\u002Ftmp\u002Fpaid_request.sh \"$SIG\"\n```\n\n**Alternative: All-in-one single commands**\n```bash\n# Step 1: Get requirement\nREQ=$(curl -si -X POST 'https:\u002F\u002Fapi.example.com\u002Fendpoint' -H 'Content-Type: application\u002Fjson' -d '{}' | grep -i \"payment-required:\" | cut -d' ' -f2 | tr -d '\\r')\n\n# Step 2: Sign (note: use single quotes for JSON, escape inner quotes)\nSIGN=$(curl -s -X POST 'https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FUSERNAME\u002Factions\u002Fx402\u002Fpay' -H 'Content-Type: application\u002Fjson' -H 'Authorization: Bearer TOKEN' -d '{\"requirement\":\"'\"$REQ\"'\",\"preferredChain\":\"evm\"}')\n\n# Step 3: Extract\nSIG=$(echo \"$SIGN\" | jq -r '.paymentSignature')\nHDR=$(echo \"$SIGN\" | jq -r '.usage.header')\n\n# Step 4: Paid request\ncurl -s -X POST 'https:\u002F\u002Fapi.example.com\u002Fendpoint' -H 'Content-Type: application\u002Fjson' -H \"$HDR: $SIG\" -d '{}'\n```\n\n### Common Errors and Solutions\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `404` or `405` on signing | Wrong endpoint path | Path is `\u002Fapi\u002Fwallets\u002F{USERNAME}\u002Factions\u002Fx402\u002Fpay` (SLASH not dash: `x402\u002Fpay` NOT `x402-sign`) |\n| `Missing payment requirement` | Wrong field name | Use `\"requirement\"` field, not `\"paymentRequiredHeader\"` |\n| `curl: option : blank argument` | Multiline curl escaping | Use single-line curl or write to a shell script file |\n| Empty `{}` response | Normal 402 behavior | Check `payment-required` header - body is intentionally empty |\n| `AlreadyProcessed` | Reused signature | Get a NEW signature for each request |\n| `insufficient_funds` | Wallet empty | Fund wallet at `https:\u002F\u002Fagentwallet.mcpay.tech\u002Fu\u002FUSERNAME` |\n| `No compatible payment option` | Network not supported | Check supported networks below |\n\n### Decoding Error Responses\n\nx402 errors are often base64-encoded in the `payment-required` header. To decode:\n```bash\necho \"eyJ4NDAyVmVyc2lvbiI6MiwiZXJyb3IiOiJ2ZXJpZmljYXRpb24gZmFpbGVkOiBpbnN1ZmZpY2llbnRfZnVuZHMifQ==\" | base64 -d\n# Output: {\"x402Version\":2,\"error\":\"verification failed: insufficient_funds\"}\n```\n\n### Request Options\n\n**IMPORTANT: Always use `requirement` field.** It accepts both base64 strings AND JSON objects.\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `requirement` | string or object | **USE THIS.** Pass the base64 string from `payment-required` header directly |\n| `preferredChain` | `\"evm\"` \\| `\"solana\"` | Preferred blockchain |\n| `preferredChainId` | number | Specific EVM chain ID (e.g., 8453 for Base) |\n| `idempotencyKey` | string | For deduplication (returns cached signature if same key) |\n| `dryRun` | boolean | Sign but don't store (for testing\u002Flearning) |\n\n**Do NOT use `paymentRequiredHeader`** - it's deprecated. Just use `requirement` for everything.\n\n### Dry Run Mode (Testing\u002FLearning)\n\nUse `dryRun: true` to see detailed signing info without storing:\n\n```bash\ncurl -X POST https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Factions\u002Fx402\u002Fpay \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"requirement\": {\"x402Version\":2,\"accepts\":[...]},\n    \"preferredChain\": \"solana\",\n    \"dryRun\": true\n  }'\n```\n\nDry run response includes:\n- `paymentSignature` - The signed authorization\n- `usage` - curl example showing how to use the header\n- `payment` - Full details (chain, amount, recipient, token, expiry)\n- `signedPayload` - Raw signed payload structure\n- `wallet` - Which wallet signed\n\n### How x402 Works\n\n1. **Signing only** - AgentWallet signs an authorization but does NOT submit a transaction\n2. **One-time use** - Each signature can only be used ONCE. The service settles on-chain on first use\n3. **Service settles** - The paid service submits the transaction on-chain when you use the signature\n4. **EVM** - Uses EIP-3009 `transferWithAuthorization` (gasless permit)\n5. **Solana** - Uses a pre-signed SPL token transfer transaction\n\n**Important:** Your wallet must have sufficient token balance (usually USDC) for the service to settle the payment.\n\n### Supported Networks\n\n| Network | CAIP-2 Identifier | Token |\n|---------|-------------------|-------|\n| Base Mainnet | `eip155:8453` | USDC |\n| Base Sepolia | `eip155:84532` | USDC |\n| Solana Mainnet | `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp` | USDC |\n| Solana Devnet | `solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1` | USDC |\n\n---\n\n## Policies\n\nGet current policy:\n```bash\ncurl https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Fpolicy \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\"\n```\n\nUpdate policy:\n```bash\ncurl -X PATCH https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi\u002Fwallets\u002FYOUR_USERNAME\u002Fpolicy \\\n  -H \"Authorization: Bearer FUND_API_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"max_per_tx_usd\":\"25\",\"allow_chains\":[\"base\",\"solana\"],\"allow_contracts\":[\"0x...\"]}'\n```\n\n## Response Format\n\nSuccess:\n```json\n{\"success\": true, \"data\": {...}}\n```\n\nError:\n```json\n{\"success\": false, \"error\": \"Description\", \"hint\": \"How to fix\"}\n```\n",{"name":5,"version":42,"homepage":43,"metadata":44,"description":7},"0.1.8","https:\u002F\u002Fagentwallet.mcpay.tech",{"x402":45,"moltbot":57,"referrals":60},{"chains":46,"tokens":47,"endpoint":49,"networks":50,"supported":55,"legacyEndpoint":56},[29,30],[48],"USDC","\u002Fapi\u002Fwallets\u002F{username}\u002Factions\u002Fx402\u002Ffetch",[51,52,53,54],"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","eip155:8453","eip155:84532",true,"\u002Fapi\u002Fwallets\u002F{username}\u002Factions\u002Fx402\u002Fpay",{"api_base":58,"category":59},"https:\u002F\u002Fagentwallet.mcpay.tech\u002Fapi","finance",{"enabled":55,"endpoint":61},"\u002Fapi\u002Fwallets\u002F{username}\u002Freferrals","main","f4cb2d49f7667e79ef7804f50396d5aaffdf1f56","人工智能与大型语言模型\u002Fagentwallet-frames",1,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification","https:\u002F\u002Fgithub.com\u002FKernel8901","a little little little dobe in life but science geek","2026-04-05 16:43:56",{"source":8,"skillName":5,"commands":71,"prompt":81,"zipAvailable":55},[72,75,78],{"tool":73,"command":74},"npx","npx skills add Kernel8901\u002Fai-agent-skills-classification --skill agentwallet",{"tool":76,"command":77},"bunx","bunx skills add Kernel8901\u002Fai-agent-skills-classification --skill agentwallet",{"tool":79,"command":80},"pnpm","pnpm dlx skills add Kernel8901\u002Fai-agent-skills-classification --skill agentwallet","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fagentwallet-frames\u002FSKILL.md",[83,89,93],{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"_meta.json","REFERENCE","参考文档",288,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fagentwallet-frames\u002F_meta.json",{"path":90,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":91,"sourceHtmlUrl":92},"HEARTBEAT.md",3340,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fagentwallet-frames\u002FHEARTBEAT.md",{"path":94,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":95,"sourceHtmlUrl":96},"skill.json",760,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fagentwallet-frames\u002Fskill.json",[98,122,142,150,157,182],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":37},"01M6Q5R6WZ06RRB9RQTW54B34B","zyfai","Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit\u002Fwithdraw anytime.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzyfai-sdk\u002FSKILL.md",[],[100,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121],"safe","ethereum","defi","Optimization","user","use","Wallet","base","deposit","withdraw","yield","arbitrum","non-custodial","passive","defi yield","earn","yield optimization",{"skillNo":123,"name":124,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":37},"01M6Q5R337B5JSNER4P4YS03TN","zerion-api","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api\u002FSKILL.md",[],[34,128,129,130,131,132,133,107,134,111,135,136,30,29,137,138,139,140,141],"zerion api","zerion","MCP","mcp server","server","blockchain","transactions","crypto wallet","crypto","query","across","positions","token","prices",{"skillNo":143,"name":144,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":37},"01M6Q5QZFYTDAZMZ27BN5VZXAR","zerion-api-skill","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-skill\u002FSKILL.md",[],[34,148,149,128,129,130,131,132,133,107,134,111,136,30,29,137,138,139,140,141],"api skill","zerion api skill",{"skillNo":151,"name":152,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":37},"01M6Q5QW17QW98RA3FE45E4RD8","zerion-api-mcp","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-mcp\u002FSKILL.md",[],[130,34,156,128,129,131,132,107,134,111,135,136,30,29,137,138,139,140,141],"zerion api mcp",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":37},"01M6Q5QQYZB7A501BDEQWKGSJT","yahoo-finance-forex","Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR\u002FUSD, GBP\u002FUSD, USD\u002FJPY, etc.). Analyzes sentiment and provides trading context.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-forex\u002FSKILL.md",[],[59,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,20],"yahoo finance","forex","yahoo","yahoo finance forex","github","https","sentiment","real-time","python3","install","Market","usd","news","time","currency","gbp","pip","market data",{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":37},"01M6Q5QM6VS84WZVM7BKXXPF32","yahoo-finance","This skill should be used when the user asks to \"get stock prices\", \"check stock quotes\", \"look up earnings\", \"get financial data\", \"find trending stocks\", or needs stock market data from Yahoo Finance.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-cli\u002FSKILL.md",[],[59,164,166,189,190,191,192,193,194,174,195,196,197,198,199,200,201,202,141,181],"cli","homebrew","find","check","brew","up","local","get","stock","link","trending","sf","quotes","ln"]