{"id":"01f61806-279d-4c20-9830-a70966195787","slug":"emberdragonc-x402-skill","name":"x402","description":"x402 payment protocol for HTTP-native payments. Use when building paid APIs, monetizing endpoints, or integrating crypto payments into web services. Triggers on \"x402\", \"paid API\", \"monetize endpoint\", \"HTTP 402\", \"payment middleware\", \"pay per request\", or \"API paywall\".","canonicalUrl":"https://www.xpersona.co/skill/emberdragonc-x402-skill","sourceUrl":"https://github.com/emberdragonc/x402-skill","homepage":null,"source":"GITHUB_OPENCLEW","vendor":{"slug":"emberdragonc","label":"Emberdragonc","url":"https://github.com/emberdragonc/x402-skill"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":null,"freshnessAt":"2026-04-15T03:14:11.189Z","freshnessLabel":"Apr 15, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Apr 15, 2026"},{"label":"Vendor","value":"Emberdragonc"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"Unpublished"}],"factsPreview":[{"factKey":"docs_crawl","label":"Crawlable docs","value":"6 indexed pages on the official domain","category":"integration","href":"https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar","sourceUrl":"https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar","sourceType":"search_document","confidence":"medium","observedAt":"2026-04-15T05:03:46.393Z","isPublic":true,"metadata":{}},{"factKey":"vendor","label":"Vendor","value":"Emberdragonc","category":"vendor","href":"https://github.com/emberdragonc/x402-skill","sourceUrl":"https://github.com/emberdragonc/x402-skill","sourceType":"profile","confidence":"medium","observedAt":"2026-04-15T03:14:11.189Z","isPublic":true,"metadata":{}},{"factKey":"protocols","label":"Protocol compatibility","value":"OpenClaw","category":"compatibility","href":"https://www.xpersona.co/api/v1/agents/emberdragonc-x402-skill/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/emberdragonc-x402-skill/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-04-15T03:14:11.189Z","isPublic":true,"metadata":{}},{"factKey":"traction","label":"Adoption signal","value":"2 GitHub stars","category":"adoption","href":"https://github.com/emberdragonc/x402-skill","sourceUrl":"https://github.com/emberdragonc/x402-skill","sourceType":"profile","confidence":"medium","observedAt":"2026-04-15T03:14:11.189Z","isPublic":true,"metadata":{}},{"factKey":"handshake_status","label":"Handshake status","value":"UNKNOWN","category":"security","href":"https://www.xpersona.co/api/v1/agents/emberdragonc-x402-skill/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/emberdragonc-x402-skill/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true,"metadata":{}}],"highlights":["2 GitHub stars","Trust evidence available"],"agentCard":{"name":"x402","description":"x402 payment protocol for HTTP-native payments. Use when building paid APIs, monetizing endpoints, or integrating crypto payments into web services. Triggers on \"x402\", \"paid API\", \"monetize endpoint\", \"HTTP 402\", \"payment middleware\", \"pay per request\", or \"API paywall\".","source":"GITHUB_OPENCLEW","sourceId":"github:1143572782","repository":"https://github.com/emberdragonc/x402-skill","documentation":"https://www.xpersona.co/skill/emberdragonc-x402-skill/agent/emberdragonc-x402-skill","protocols":["OPENCLEW"],"languages":["typescript"],"install":{"command":"git clone https://github.com/emberdragonc/x402-skill.git","ecosystem":"git"},"examples":[{"kind":"example","language":"bash","snippet":"# Server (Express)\nnpm install @x402/core @x402/evm @x402/svm @x402/express\n\n# Server (Hono)\nnpm install @x402/core @x402/evm @x402/svm @x402/hono\n\n# Client (Fetch)\nnpm install @x402/core @x402/evm @x402/svm @x402/fetch\n\n# Client (Axios)\nnpm install @x402/core @x402/evm @x402/svm @x402/axios"},{"kind":"example","language":"typescript","snippet":"import express from \"express\";\nimport { paymentMiddleware, x402ResourceServer } from \"@x402/express\";\nimport { ExactEvmScheme } from \"@x402/evm/exact/server\";\nimport { HTTPFacilitatorClient } from \"@x402/core/server\";\n\nconst app = express();\n\n// Your wallet address to receive payments\nconst payToAddress = \"0xYourWalletAddress\";\n\n// Facilitator URL (see https://www.x402.org/ecosystem?category=facilitators)\nconst facilitatorClient = new HTTPFacilitatorClient({ \n  url: \"https://facilitator.x402.org\" \n});\n\n// Configure payment requirements\napp.use(\n  paymentMiddleware(\n    {\n      \"GET /weather\": {\n        accepts: {\n          scheme: \"exact\",\n          price: \"$0.001\",           // Price in USD\n          network: \"eip155:8453\",    // Base Mainnet\n          payTo: payToAddress,\n        },\n        description: \"Weather data\",\n        mimeType: \"application/json\",\n      },\n      \"POST /ai/generate\": {\n        accepts: {\n          scheme: \"exact\",\n          price: \"$0.01\",\n          network: \"eip155:8453\",\n          payTo: payToAddress,\n        },\n        description: \"AI text generation\",\n        mimeType: \"application/json\",\n      },\n    },\n    new x402ResourceServer(facilitatorClient)\n      .register(\"eip155:*\", new ExactEvmScheme()),  // All EVM chains\n  ),\n);\n\n// Define your endpoints as normal\napp.get(\"/weather\", (req, res) => {\n  res.json({ weather: \"sunny\", temperature: 70 });\n});\n\napp.post(\"/ai/generate\", (req, res) => {\n  res.json({ text: \"Generated content here\" });\n});\n\napp.listen(3000);"}]}}