[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CJYV3VJ2JE76CDPJ1FWN6J":3,"skill-same:01M6CJYV3VJ2JE76CDPJ1FWN6J":81},{"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":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":47,"install":48,"resources":60},"01M6CJYV3VJ2JE76CDPJ1FWN6J","x402",null,"Use x402 protocol for HTTP-native crypto payments. Use when Clawdbot needs to pay for APIs, access paid resources, or handle 402 Payment Required responses. Supports USDC payments on Base, Ethereum, and other EVM chains via the x402 standard.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F0xterrybit\u002Fx402\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25,26,27,28],"http","protocol","payments","ethereum","access","node","use","Wallet","npx","clawdbot","payment","2026-11-10 10:12:30",false,"---\nname: x402\ndescription: Use x402 protocol for HTTP-native crypto payments. Use when Clawdbot needs to pay for APIs, access paid resources, or handle 402 Payment Required responses. Supports USDC payments on Base, Ethereum, and other EVM chains via the x402 standard.\nmetadata: {\"clawdbot\":{\"emoji\":\"?\",\"requires\":{\"anyBins\":[\"node\",\"npx\"]},\"env\":[\"WALLET_PRIVATE_KEY\"]}}\n---\n\n# x402 Payment Protocol\n\nx402 enables instant stablecoin payments directly over HTTP using the 402 Payment Required status code. Perfect for AI agents paying for APIs, data, or compute on-demand.\n\n## Quick Start\n\n### Install SDK\n```bash\nnpm install x402\n# or\npnpm add x402\n```\n\n### Environment Setup\n```bash\n# Store wallet private key securely\nexport WALLET_PRIVATE_KEY=\"0x...\"\n\n# Optional: specify network RPC\nexport BASE_RPC_URL=\"https:\u002F\u002Fmainnet.base.org\"\n```\n\n## How x402 Works\n\n1. **Request** → Client calls a paid API\n2. **402 Response** → Server returns payment details in `PAYMENT-REQUIRED` header\n3. **Pay & Retry** → Client signs payment, retries with `PAYMENT-SIGNATURE` header\n4. **Access** → Server verifies, settles, returns resource\n\n## Using x402 Client\n\n### TypeScript\u002FNode.js\n```typescript\nimport { x402Client } from 'x402';\n\nconst client = x402Client({\n  privateKey: process.env.WALLET_PRIVATE_KEY,\n  network: 'base', \u002F\u002F or 'ethereum', 'arbitrum', etc.\n});\n\n\u002F\u002F Automatic 402 handling\nconst response = await client.fetch('https:\u002F\u002Fapi.example.com\u002Fpaid-endpoint');\nconst data = await response.json();\n```\n\n### With fetch wrapper\n```typescript\nimport { wrapFetch } from 'x402';\n\nconst fetch402 = wrapFetch(fetch, {\n  privateKey: process.env.WALLET_PRIVATE_KEY,\n});\n\n\u002F\u002F Use like normal fetch - 402s handled automatically\nconst res = await fetch402('https:\u002F\u002Fpaid-api.com\u002Fdata');\n```\n\n## Manual Flow (curl)\n\n### Step 1: Discover payment requirements\n```bash\ncurl -i https:\u002F\u002Fapi.example.com\u002Fpaid-resource\n# Returns 402 with PAYMENT-REQUIRED header (base64 JSON)\n```\n\n### Step 2: Decode payment details\n```bash\n# The PAYMENT-REQUIRED header contains base64-encoded JSON:\n# {\n#   \"amount\": \"1000000\",      # 1 USDC (6 decimals)\n#   \"currency\": \"USDC\",\n#   \"network\": \"base\",\n#   \"recipient\": \"0x...\",\n#   \"scheme\": \"exact\"\n# }\n```\n\n### Step 3: Sign and pay\n```bash\n# Use x402 CLI or SDK to create payment signature\nnpx x402 pay \\\n  --amount 1000000 \\\n  --recipient 0x... \\\n  --network base\n```\n\n### Step 4: Retry with proof\n```bash\ncurl -H \"PAYMENT-SIGNATURE: \u003Cbase64_payload>\" \\\n  https:\u002F\u002Fapi.example.com\u002Fpaid-resource\n```\n\n## Common Patterns\n\n### Pay for API calls\n```typescript\n\u002F\u002F Weather API that costs 0.001 USDC per call\nconst weather = await client.fetch('https:\u002F\u002Fweather-api.x402.org\u002Fforecast?city=NYC');\n```\n\n### Pay for AI inference\n```typescript\n\u002F\u002F LLM API with per-token pricing\nconst completion = await client.fetch('https:\u002F\u002Fllm.example.com\u002Fv1\u002Fchat', {\n  method: 'POST',\n  body: JSON.stringify({ prompt: 'Hello' }),\n});\n```\n\n### Check balance before paying\n```typescript\nimport { getBalance } from 'x402';\n\nconst balance = await getBalance({\n  address: walletAddress,\n  network: 'base',\n  token: 'USDC',\n});\n\nif (balance \u003C requiredAmount) {\n  console.log('Insufficient USDC balance');\n}\n```\n\n## Supported Networks\n\n| Network | Chain ID | Status |\n|---------|----------|--------|\n| Base | 8453 | ✅ Primary |\n| Ethereum | 1 | ✅ Supported |\n| Arbitrum | 42161 | ✅ Supported |\n| Optimism | 10 | ✅ Supported |\n| Polygon | 137 | ✅ Supported |\n\n## Payment Schemes\n\n- **exact**: Pay fixed amount (e.g., $0.01 per API call)\n- **upto**: Pay up to max based on usage (e.g., LLM tokens)\n- **subscription**: Wallet-based access with sessions (V2)\n\n## Error Handling\n\n```typescript\ntry {\n  const res = await client.fetch(url);\n} catch (err) {\n  if (err.code === 'INSUFFICIENT_BALANCE') {\n    \u002F\u002F Need to fund wallet\n  } else if (err.code === 'PAYMENT_FAILED') {\n    \u002F\u002F Transaction failed on-chain\n  } else if (err.code === 'INVALID_PAYMENT_REQUIREMENTS') {\n    \u002F\u002F Server sent malformed 402 response\n  }\n}\n```\n\n## Security Notes\n\n- Never expose private keys in logs or chat\n- Use environment variables for wallet credentials\n- Prefer `op run` or similar for secret injection\n- Review payment amounts before confirming large transactions\n\n## V2 Features (Dec 2025)\n\n- **Wallet-based identity**: Skip repaying on every call with sessions\n- **Auto-discovery**: APIs expose payment metadata at `\u002F.well-known\u002Fx402`\n- **Multi-facilitator**: Choose between payment processors\n- **CAIP standards**: Universal chain\u002Fasset identifiers\n\n## Resources\n\n- Spec: https:\u002F\u002Fgithub.com\u002Fcoinbase\u002Fx402\n- Docs: https:\u002F\u002Fdocs.cdp.coinbase.com\u002Fx402\n- Demo APIs: https:\u002F\u002Fwww.x402.org\n","# x402 Payment Protocol\n\nx402 enables instant stablecoin payments directly over HTTP using the 402 Payment Required status code. Perfect for AI agents paying for APIs, data, or compute on-demand.\n\n## Quick Start\n\n### Install SDK\n```bash\nnpm install x402\n# or\npnpm add x402\n```\n\n### Environment Setup\n```bash\n# Store wallet private key securely\nexport WALLET_PRIVATE_KEY=\"0x...\"\n\n# Optional: specify network RPC\nexport BASE_RPC_URL=\"https:\u002F\u002Fmainnet.base.org\"\n```\n\n## How x402 Works\n\n1. **Request** → Client calls a paid API\n2. **402 Response** → Server returns payment details in `PAYMENT-REQUIRED` header\n3. **Pay & Retry** → Client signs payment, retries with `PAYMENT-SIGNATURE` header\n4. **Access** → Server verifies, settles, returns resource\n\n## Using x402 Client\n\n### TypeScript\u002FNode.js\n```typescript\nimport { x402Client } from 'x402';\n\nconst client = x402Client({\n  privateKey: process.env.WALLET_PRIVATE_KEY,\n  network: 'base', \u002F\u002F or 'ethereum', 'arbitrum', etc.\n});\n\n\u002F\u002F Automatic 402 handling\nconst response = await client.fetch('https:\u002F\u002Fapi.example.com\u002Fpaid-endpoint');\nconst data = await response.json();\n```\n\n### With fetch wrapper\n```typescript\nimport { wrapFetch } from 'x402';\n\nconst fetch402 = wrapFetch(fetch, {\n  privateKey: process.env.WALLET_PRIVATE_KEY,\n});\n\n\u002F\u002F Use like normal fetch - 402s handled automatically\nconst res = await fetch402('https:\u002F\u002Fpaid-api.com\u002Fdata');\n```\n\n## Manual Flow (curl)\n\n### Step 1: Discover payment requirements\n```bash\ncurl -i https:\u002F\u002Fapi.example.com\u002Fpaid-resource\n# Returns 402 with PAYMENT-REQUIRED header (base64 JSON)\n```\n\n### Step 2: Decode payment details\n```bash\n# The PAYMENT-REQUIRED header contains base64-encoded JSON:\n# {\n#   \"amount\": \"1000000\",      # 1 USDC (6 decimals)\n#   \"currency\": \"USDC\",\n#   \"network\": \"base\",\n#   \"recipient\": \"0x...\",\n#   \"scheme\": \"exact\"\n# }\n```\n\n### Step 3: Sign and pay\n```bash\n# Use x402 CLI or SDK to create payment signature\nnpx x402 pay \\\n  --amount 1000000 \\\n  --recipient 0x... \\\n  --network base\n```\n\n### Step 4: Retry with proof\n```bash\ncurl -H \"PAYMENT-SIGNATURE: \u003Cbase64_payload>\" \\\n  https:\u002F\u002Fapi.example.com\u002Fpaid-resource\n```\n\n## Common Patterns\n\n### Pay for API calls\n```typescript\n\u002F\u002F Weather API that costs 0.001 USDC per call\nconst weather = await client.fetch('https:\u002F\u002Fweather-api.x402.org\u002Fforecast?city=NYC');\n```\n\n### Pay for AI inference\n```typescript\n\u002F\u002F LLM API with per-token pricing\nconst completion = await client.fetch('https:\u002F\u002Fllm.example.com\u002Fv1\u002Fchat', {\n  method: 'POST',\n  body: JSON.stringify({ prompt: 'Hello' }),\n});\n```\n\n### Check balance before paying\n```typescript\nimport { getBalance } from 'x402';\n\nconst balance = await getBalance({\n  address: walletAddress,\n  network: 'base',\n  token: 'USDC',\n});\n\nif (balance \u003C requiredAmount) {\n  console.log('Insufficient USDC balance');\n}\n```\n\n## Supported Networks\n\n| Network | Chain ID | Status |\n|---------|----------|--------|\n| Base | 8453 | ✅ Primary |\n| Ethereum | 1 | ✅ Supported |\n| Arbitrum | 42161 | ✅ Supported |\n| Optimism | 10 | ✅ Supported |\n| Polygon | 137 | ✅ Supported |\n\n## Payment Schemes\n\n- **exact**: Pay fixed amount (e.g., $0.01 per API call)\n- **upto**: Pay up to max based on usage (e.g., LLM tokens)\n- **subscription**: Wallet-based access with sessions (V2)\n\n## Error Handling\n\n```typescript\ntry {\n  const res = await client.fetch(url);\n} catch (err) {\n  if (err.code === 'INSUFFICIENT_BALANCE') {\n    \u002F\u002F Need to fund wallet\n  } else if (err.code === 'PAYMENT_FAILED') {\n    \u002F\u002F Transaction failed on-chain\n  } else if (err.code === 'INVALID_PAYMENT_REQUIREMENTS') {\n    \u002F\u002F Server sent malformed 402 response\n  }\n}\n```\n\n## Security Notes\n\n- Never expose private keys in logs or chat\n- Use environment variables for wallet credentials\n- Prefer `op run` or similar for secret injection\n- Review payment amounts before confirming large transactions\n\n## V2 Features (Dec 2025)\n\n- **Wallet-based identity**: Skip repaying on every call with sessions\n- **Auto-discovery**: APIs expose payment metadata at `\u002F.well-known\u002Fx402`\n- **Multi-facilitator**: Choose between payment processors\n- **CAIP standards**: Universal chain\u002Fasset identifiers\n\n## Resources\n\n- Spec: https:\u002F\u002Fgithub.com\u002Fcoinbase\u002Fx402\n- Docs: https:\u002F\u002Fdocs.cdp.coinbase.com\u002Fx402\n- Demo APIs: https:\u002F\u002Fwww.x402.org\n",{"name":5,"metadata":34,"description":7},{"clawdbot":35},{"env":36,"emoji":38,"requires":39},[37],"WALLET_PRIVATE_KEY","?",{"anyBins":40},[23,26],"main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002F0xterrybit\u002Fx402",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":49,"prompt":58,"zipAvailable":59},[50,52,55],{"tool":26,"command":51},"npx skills add kbarbel640-del\u002Fskills --skill x402",{"tool":53,"command":54},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill x402",{"tool":56,"command":57},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill x402","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F0xterrybit\u002Fx402\u002FSKILL.md",true,[61,67,71,77],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"_meta.json","REFERENCE","参考文档",264,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F0xterrybit\u002Fx402\u002F_meta.json",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fprotocol-spec.md",3756,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F0xterrybit\u002Fx402\u002Freferences\u002Fprotocol-spec.md",{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"scripts\u002Fcheck-balance.sh","SCRIPT","脚本",2088,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F0xterrybit\u002Fx402\u002Fscripts\u002Fcheck-balance.sh",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fx402-fetch.ts",7046,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F0xterrybit\u002Fx402\u002Fscripts\u002Fx402-fetch.ts",[82,108,131,148,153,173],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":29},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":29},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[115,91,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,96,24],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":29},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[138,139,140,141,142,143,144,92,145,129,24,146,91,18,147],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","via",{"skillNo":149,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":29},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[141,140,139,138,147,143,144,92,142,129,24,145,146,91,18],{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":29},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[160,161,162,163,164,165,166,167,168,169,170,171,172],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":29},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[180,181,182,183,92,184,185,41,186,146,187,188,189,190,191,105,192,193,194],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]