[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6Q28ASM6VMKZ4SM4CADRWX6":3,"skill-same:01M6Q28ASM6VMKZ4SM4CADRWX6":67},{"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":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M6Q28ASM6VMKZ4SM4CADRWX6","x402",null,"Internet-native payments using the HTTP 402 Payment Required standard. Set up as a buyer to pay for API access, or as a seller to monetize your APIs.","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爪机器人工具\u002Fx402-enhanced\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25,26,27,28,29,30],"http","payments","SET","api","access","up","payment","as","native","internet","pay","for","standard","2026-11-10 10:12:30",false,"---\nname: x402\ndescription: \"Internet-native payments using the HTTP 402 Payment Required standard. Set up as a buyer to pay for API access, or as a seller to monetize your APIs.\"\nmetadata: {\"openclaw\":{\"emoji\":\"?\"}}\n---\n\n# x402 Payment Protocol\n\nx402 is an open, internet-native payment standard built around the HTTP `402 Payment Required` status code. It enables programmatic payments between clients and servers without accounts, sessions, or credential management.\n\n**Key Benefits:**\n- Zero protocol fees (only blockchain network fees)\n- Zero friction (no accounts or KYC required)\n- Instant settlement via stablecoins\n- Works with AI agents and automated systems\n\n**Documentation:** https:\u002F\u002Fdocs.x402.org | **GitHub:** https:\u002F\u002Fgithub.com\u002Fcoinbase\u002Fx402\n\n---\n\n## How x402 Works\n\n1. Client requests a resource from a server\n2. Server responds with `402 Payment Required` + payment instructions\n3. Client signs and submits a payment payload\n4. Server verifies payment, optionally via a facilitator\n5. Server returns the requested resource\n\n---\n\n## Environment Variables\n\n### For Buyers (Clients)\n```bash\n# EVM wallet private key (Ethereum\u002FBase\u002FPolygon)\nEVM_PRIVATE_KEY=0x...\n\n# Solana wallet private key (base58 encoded)\nSVM_PRIVATE_KEY=...\n\n# Target server URL\nRESOURCE_SERVER_URL=http:\u002F\u002Flocalhost:4021\nENDPOINT_PATH=\u002Fweather\n```\n\n### For Sellers (Servers)\n```bash\n# Your EVM wallet address to receive payments\nEVM_ADDRESS=0x...\n\n# Your Solana wallet address to receive payments\nSVM_ADDRESS=...\n\n# Facilitator URL (see list below)\nFACILITATOR_URL=https:\u002F\u002Fx402.org\u002Ffacilitator\n```\n\n---\n\n## Network Identifiers (CAIP-2)\n\n| Network | CAIP-2 ID | Description |\n|---------|-----------|-------------|\n| **Base** | | |\n| Base Mainnet | `eip155:8453` | Base L2 mainnet |\n| Base Sepolia | `eip155:84532` | Base L2 testnet |\n| **Solana** | | |\n| Solana Mainnet | `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp` | Solana mainnet |\n| Solana Devnet | `solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1` | Solana testnet |\n| **Polygon** | | |\n| Polygon Mainnet | `eip155:137` | Polygon PoS mainnet |\n| Polygon Amoy | `eip155:80002` | Polygon testnet |\n| **Avalanche** | | |\n| Avalanche C-Chain | `eip155:43114` | Avalanche mainnet |\n| Avalanche Fuji | `eip155:43113` | Avalanche testnet |\n| **Sei** | | |\n| Sei Mainnet | `eip155:1329` | Sei EVM mainnet |\n| Sei Testnet | `eip155:713715` | Sei EVM testnet |\n| **X Layer** | | |\n| X Layer Mainnet | `eip155:196` | OKX L2 mainnet |\n| X Layer Testnet | `eip155:1952` | OKX L2 testnet |\n| **SKALE** | | |\n| SKALE Base | `eip155:1187947933` | SKALE mainnet |\n| SKALE Base Sepolia | `eip155:324705682` | SKALE testnet |\n\n\n---\n\n## Facilitators\n\nFacilitators handle payment verification and blockchain settlement. Choose one:\n\n| Name | URL | Notes |\n|------|-----|-------|\n| x402.org | `https:\u002F\u002Fx402.org\u002Ffacilitator` | Default, testnet only |\n| Coinbase | `https:\u002F\u002Fapi.cdp.coinbase.com\u002Fplatform\u002Fv2\u002Fx402` | Production |\n| PayAI | `https:\u002F\u002Ffacilitator.payai.network` | Production |\n| Corbits | `https:\u002F\u002Ffacilitator.corbits.dev` | Production |\n| x402rs | `https:\u002F\u002Ffacilitator.x402.rs` | Production |\n| Dexter | `https:\u002F\u002Fx402.dexter.cash` | Production |\n| Heurist | `https:\u002F\u002Ffacilitator.heurist.xyz` | Production |\n| Kobaru | `https:\u002F\u002Fgateway.kobaru.io` | Production |\n| Mogami | `https:\u002F\u002Ffacilitator.mogami.tech` | Production |\n| Nevermined | `https:\u002F\u002Fapi.live.nevermined.app\u002Fapi\u002Fv1\u002F` | Production |\n| Openfacilitator | `https:\u002F\u002Fpay.openfacilitator.io` | Production |\n| Solpay | `https:\u002F\u002Fx402.solpay.cash` | Production |\n| Primer | `https:\u002F\u002Fx402.primer.systems` | Production |\n| xEcho | `https:\u002F\u002Ffacilitator.xechoai.xyz` | Production |\n\n---\n\n# Buyer Examples (Client)\n\n## TypeScript with fetch\n\nInstall dependencies:\n```bash\nnpm install @x402\u002Ffetch @x402\u002Fevm @x402\u002Fsvm viem @solana\u002Fkit @scure\u002Fbase dotenv\n```\n\nCode:\n```typescript\nimport { config } from \"dotenv\";\nimport { x402Client, wrapFetchWithPayment, x402HTTPClient } from \"@x402\u002Ffetch\";\nimport { registerExactEvmScheme } from \"@x402\u002Fevm\u002Fexact\u002Fclient\";\nimport { registerExactSvmScheme } from \"@x402\u002Fsvm\u002Fexact\u002Fclient\";\nimport { privateKeyToAccount } from \"viem\u002Faccounts\";\nimport { createKeyPairSignerFromBytes } from \"@solana\u002Fkit\";\nimport { base58 } from \"@scure\u002Fbase\";\n\nconfig();\n\nconst evmPrivateKey = process.env.EVM_PRIVATE_KEY as `0x${string}`;\nconst svmPrivateKey = process.env.SVM_PRIVATE_KEY as string;\nconst url = `${process.env.RESOURCE_SERVER_URL}${process.env.ENDPOINT_PATH}`;\n\nasync function main(): Promise\u003Cvoid> {\n  const evmSigner = privateKeyToAccount(evmPrivateKey);\n  const svmSigner = await createKeyPairSignerFromBytes(base58.decode(svmPrivateKey));\n\n  const client = new x402Client();\n  registerExactEvmScheme(client, { signer: evmSigner });\n  registerExactSvmScheme(client, { signer: svmSigner });\n\n  const fetchWithPayment = wrapFetchWithPayment(fetch, client);\n\n  const response = await fetchWithPayment(url, { method: \"GET\" });\n  const body = await response.json();\n  console.log(\"Response:\", body);\n\n  if (response.ok) {\n    const paymentResponse = new x402HTTPClient(client).getPaymentSettleResponse(\n      name => response.headers.get(name)\n    );\n    console.log(\"Payment:\", JSON.stringify(paymentResponse, null, 2));\n  }\n}\n\nmain().catch(console.error);\n```\n\n## TypeScript with axios\n\nInstall dependencies:\n```bash\nnpm install @x402\u002Faxios @x402\u002Fevm @x402\u002Fsvm axios viem @solana\u002Fkit @scure\u002Fbase dotenv\n```\n\nCode:\n```typescript\nimport { config } from \"dotenv\";\nimport { x402Client, wrapAxiosWithPayment, x402HTTPClient } from \"@x402\u002Faxios\";\nimport { registerExactEvmScheme } from \"@x402\u002Fevm\u002Fexact\u002Fclient\";\nimport { registerExactSvmScheme } from \"@x402\u002Fsvm\u002Fexact\u002Fclient\";\nimport { privateKeyToAccount } from \"viem\u002Faccounts\";\nimport { createKeyPairSignerFromBytes } from \"@solana\u002Fkit\";\nimport { base58 } from \"@scure\u002Fbase\";\nimport axios from \"axios\";\n\nconfig();\n\nconst evmPrivateKey = process.env.EVM_PRIVATE_KEY as `0x${string}`;\nconst svmPrivateKey = process.env.SVM_PRIVATE_KEY as string;\nconst url = `${process.env.RESOURCE_SERVER_URL}${process.env.ENDPOINT_PATH}`;\n\nasync function main(): Promise\u003Cvoid> {\n  const evmSigner = privateKeyToAccount(evmPrivateKey);\n  const svmSigner = await createKeyPairSignerFromBytes(base58.decode(svmPrivateKey));\n\n  const client = new x402Client();\n  registerExactEvmScheme(client, { signer: evmSigner });\n  registerExactSvmScheme(client, { signer: svmSigner });\n\n  const api = wrapAxiosWithPayment(axios.create(), client);\n\n  const response = await api.get(url);\n  console.log(\"Response:\", response.data);\n\n  if (response.status \u003C 400) {\n    const paymentResponse = new x402HTTPClient(client).getPaymentSettleResponse(\n      name => response.headers[name.toLowerCase()]\n    );\n    console.log(\"Payment:\", paymentResponse);\n  }\n}\n\nmain().catch(console.error);\n```\n\n## Python with httpx (async)\n\nInstall dependencies:\n```bash\npip install \"x402[httpx,evm,svm]\" python-dotenv\n```\n\nCode:\n```python\nimport asyncio\nimport os\nfrom dotenv import load_dotenv\nfrom eth_account import Account\n\nfrom x402 import x402Client\nfrom x402.http import x402HTTPClient\nfrom x402.http.clients import x402HttpxClient\nfrom x402.mechanisms.evm import EthAccountSigner\nfrom x402.mechanisms.evm.exact.register import register_exact_evm_client\nfrom x402.mechanisms.svm import KeypairSigner\nfrom x402.mechanisms.svm.exact.register import register_exact_svm_client\n\nload_dotenv()\n\nasync def main() -> None:\n    evm_private_key = os.getenv(\"EVM_PRIVATE_KEY\")\n    svm_private_key = os.getenv(\"SVM_PRIVATE_KEY\")\n    base_url = os.getenv(\"RESOURCE_SERVER_URL\")\n    endpoint_path = os.getenv(\"ENDPOINT_PATH\")\n\n    client = x402Client()\n\n    if evm_private_key:\n        account = Account.from_key(evm_private_key)\n        register_exact_evm_client(client, EthAccountSigner(account))\n\n    if svm_private_key:\n        svm_signer = KeypairSigner.from_base58(svm_private_key)\n        register_exact_svm_client(client, svm_signer)\n\n    http_client = x402HTTPClient(client)\n    url = f\"{base_url}{endpoint_path}\"\n\n    async with x402HttpxClient(client) as http:\n        response = await http.get(url)\n        await response.aread()\n        print(f\"Response: {response.text}\")\n\n        if response.is_success:\n            try:\n                settle_response = http_client.get_payment_settle_response(\n                    lambda name: response.headers.get(name)\n                )\n                print(f\"Payment: {settle_response.model_dump_json(indent=2)}\")\n            except ValueError:\n                print(\"No payment response header found\")\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\n## Python with requests (sync)\n\nInstall dependencies:\n```bash\npip install \"x402[requests,evm,svm]\" python-dotenv\n```\n\nCode:\n```python\nimport os\nfrom dotenv import load_dotenv\nfrom eth_account import Account\n\nfrom x402 import x402ClientSync\nfrom x402.http import x402HTTPClientSync\nfrom x402.http.clients import x402_requests\nfrom x402.mechanisms.evm import EthAccountSigner\nfrom x402.mechanisms.evm.exact.register import register_exact_evm_client\nfrom x402.mechanisms.svm import KeypairSigner\nfrom x402.mechanisms.svm.exact.register import register_exact_svm_client\n\nload_dotenv()\n\ndef main() -> None:\n    evm_private_key = os.getenv(\"EVM_PRIVATE_KEY\")\n    svm_private_key = os.getenv(\"SVM_PRIVATE_KEY\")\n    base_url = os.getenv(\"RESOURCE_SERVER_URL\")\n    endpoint_path = os.getenv(\"ENDPOINT_PATH\")\n\n    client = x402ClientSync()\n\n    if evm_private_key:\n        account = Account.from_key(evm_private_key)\n        register_exact_evm_client(client, EthAccountSigner(account))\n\n    if svm_private_key:\n        svm_signer = KeypairSigner.from_base58(svm_private_key)\n        register_exact_svm_client(client, svm_signer)\n\n    http_client = x402HTTPClientSync(client)\n    url = f\"{base_url}{endpoint_path}\"\n\n    with x402_requests(client) as session:\n        response = session.get(url)\n        print(f\"Response: {response.text}\")\n\n        if response.ok:\n            try:\n                settle_response = http_client.get_payment_settle_response(\n                    lambda name: response.headers.get(name)\n                )\n                print(f\"Payment: {settle_response.model_dump_json(indent=2)}\")\n            except ValueError:\n                print(\"No payment response header found\")\n\nif __name__ == \"__main__\":\n    main()\n```\n\n## Go with net\u002Fhttp\n\nInstall dependencies:\n```bash\ngo get github.com\u002Fcoinbase\u002Fx402\u002Fgo\ngo get github.com\u002Fjoho\u002Fgodotenv\n```\n\nCode:\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"encoding\u002Fjson\"\n\t\"fmt\"\n\t\"net\u002Fhttp\"\n\t\"os\"\n\t\"time\"\n\n\tx402 \"github.com\u002Fcoinbase\u002Fx402\u002Fgo\"\n\t\"github.com\u002Fjoho\u002Fgodotenv\"\n)\n\nfunc main() {\n\tgodotenv.Load()\n\n\tevmPrivateKey := os.Getenv(\"EVM_PRIVATE_KEY\")\n\tsvmPrivateKey := os.Getenv(\"SVM_PRIVATE_KEY\")\n\turl := os.Getenv(\"SERVER_URL\")\n\tif url == \"\" {\n\t\turl = \"http:\u002F\u002Flocalhost:4021\u002Fweather\"\n\t}\n\n\t\u002F\u002F Create x402 client with EVM and SVM support\n\tclient, err := x402.NewClientBuilder().\n\t\tWithEvmSigner(evmPrivateKey).\n\t\tWithSvmSigner(svmPrivateKey).\n\t\tBuild()\n\tif err != nil {\n\t\tfmt.Printf(\"Failed to create client: %v\\n\", err)\n\t\tos.Exit(1)\n\t}\n\n\t\u002F\u002F Wrap HTTP client with payment handling\n\thttpClient := client.WrapHTTPClient(&http.Client{Timeout: 30 * time.Second})\n\n\tctx := context.Background()\n\treq, _ := http.NewRequestWithContext(ctx, \"GET\", url, nil)\n\tresp, err := httpClient.Do(req)\n\tif err != nil {\n\t\tfmt.Printf(\"Request failed: %v\\n\", err)\n\t\tos.Exit(1)\n\t}\n\tdefer resp.Body.Close()\n\n\tvar responseData interface{}\n\tjson.NewDecoder(resp.Body).Decode(&responseData)\n\tprettyJSON, _ := json.MarshalIndent(responseData, \"\", \"  \")\n\tfmt.Printf(\"Response: %s\\n\", string(prettyJSON))\n}\n```\n\n---\n\n# Seller Examples (Server)\n\n## TypeScript with Express\n\nInstall dependencies:\n```bash\nnpm install express @x402\u002Fexpress @x402\u002Fcore @x402\u002Fevm @x402\u002Fsvm dotenv\n```\n\nCode:\n```typescript\nimport { config } from \"dotenv\";\nimport express from \"express\";\nimport { paymentMiddleware, x402ResourceServer } from \"@x402\u002Fexpress\";\nimport { ExactEvmScheme } from \"@x402\u002Fevm\u002Fexact\u002Fserver\";\nimport { ExactSvmScheme } from \"@x402\u002Fsvm\u002Fexact\u002Fserver\";\nimport { HTTPFacilitatorClient } from \"@x402\u002Fcore\u002Fserver\";\n\nconfig();\n\nconst evmAddress = process.env.EVM_ADDRESS as `0x${string}`;\nconst svmAddress = process.env.SVM_ADDRESS;\nconst facilitatorUrl = process.env.FACILITATOR_URL || \"https:\u002F\u002Fx402.org\u002Ffacilitator\";\n\nconst facilitatorClient = new HTTPFacilitatorClient({ url: facilitatorUrl });\nconst app = express();\n\napp.use(\n  paymentMiddleware(\n    {\n      \"GET \u002Fweather\": {\n        accepts: [\n          { scheme: \"exact\", price: \"$0.001\", network: \"eip155:84532\", payTo: evmAddress },\n          { scheme: \"exact\", price: \"$0.001\", network: \"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\", payTo: svmAddress },\n        ],\n        description: \"Weather data\",\n        mimeType: \"application\u002Fjson\",\n      },\n    },\n    new x402ResourceServer(facilitatorClient)\n      .register(\"eip155:84532\", new ExactEvmScheme())\n      .register(\"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\", new ExactSvmScheme()),\n  ),\n);\n\napp.get(\"\u002Fweather\", (req, res) => {\n  res.send({ report: { weather: \"sunny\", temperature: 70 } });\n});\n\napp.listen(4021, () => console.log(\"Server listening at http:\u002F\u002Flocalhost:4021\"));\n```\n\n## TypeScript with Hono\n\nInstall dependencies:\n```bash\nnpm install hono @hono\u002Fnode-server @x402\u002Fhono @x402\u002Fcore @x402\u002Fevm @x402\u002Fsvm dotenv\n```\n\nCode:\n```typescript\nimport { config } from \"dotenv\";\nimport { paymentMiddleware, x402ResourceServer } from \"@x402\u002Fhono\";\nimport { ExactEvmScheme } from \"@x402\u002Fevm\u002Fexact\u002Fserver\";\nimport { ExactSvmScheme } from \"@x402\u002Fsvm\u002Fexact\u002Fserver\";\nimport { HTTPFacilitatorClient } from \"@x402\u002Fcore\u002Fserver\";\nimport { Hono } from \"hono\";\nimport { serve } from \"@hono\u002Fnode-server\";\n\nconfig();\n\nconst evmAddress = process.env.EVM_ADDRESS as `0x${string}`;\nconst svmAddress = process.env.SVM_ADDRESS;\nconst facilitatorUrl = process.env.FACILITATOR_URL || \"https:\u002F\u002Fx402.org\u002Ffacilitator\";\n\nconst facilitatorClient = new HTTPFacilitatorClient({ url: facilitatorUrl });\nconst app = new Hono();\n\napp.use(\n  paymentMiddleware(\n    {\n      \"GET \u002Fweather\": {\n        accepts: [\n          { scheme: \"exact\", price: \"$0.001\", network: \"eip155:84532\", payTo: evmAddress },\n          { scheme: \"exact\", price: \"$0.001\", network: \"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\", payTo: svmAddress },\n        ],\n        description: \"Weather data\",\n        mimeType: \"application\u002Fjson\",\n      },\n    },\n    new x402ResourceServer(facilitatorClient)\n      .register(\"eip155:84532\", new ExactEvmScheme())\n      .register(\"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\", new ExactSvmScheme()),\n  ),\n);\n\napp.get(\"\u002Fweather\", c => c.json({ report: { weather: \"sunny\", temperature: 70 } }));\n\nserve({ fetch: app.fetch, port: 4021 });\nconsole.log(\"Server listening at http:\u002F\u002Flocalhost:4021\");\n```\n\n## Python with FastAPI\n\nInstall dependencies:\n```bash\npip install \"x402[fastapi,evm,svm]\" python-dotenv uvicorn\n```\n\nCode:\n```python\nimport os\nfrom dotenv import load_dotenv\nfrom fastapi import FastAPI\n\nfrom x402.http import FacilitatorConfig, HTTPFacilitatorClient, PaymentOption\nfrom x402.http.middleware.fastapi import PaymentMiddlewareASGI\nfrom x402.http.types import RouteConfig\nfrom x402.mechanisms.evm.exact import ExactEvmServerScheme\nfrom x402.mechanisms.svm.exact import ExactSvmServerScheme\nfrom x402.schemas import Network\nfrom x402.server import x402ResourceServer\n\nload_dotenv()\n\nEVM_ADDRESS = os.getenv(\"EVM_ADDRESS\")\nSVM_ADDRESS = os.getenv(\"SVM_ADDRESS\")\nEVM_NETWORK: Network = \"eip155:84532\"\nSVM_NETWORK: Network = \"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\"\nFACILITATOR_URL = os.getenv(\"FACILITATOR_URL\", \"https:\u002F\u002Fx402.org\u002Ffacilitator\")\n\napp = FastAPI()\n\nfacilitator = HTTPFacilitatorClient(FacilitatorConfig(url=FACILITATOR_URL))\nserver = x402ResourceServer(facilitator)\nserver.register(EVM_NETWORK, ExactEvmServerScheme())\nserver.register(SVM_NETWORK, ExactSvmServerScheme())\n\nroutes = {\n    \"GET \u002Fweather\": RouteConfig(\n        accepts=[\n            PaymentOption(scheme=\"exact\", pay_to=EVM_ADDRESS, price=\"$0.01\", network=EVM_NETWORK),\n            PaymentOption(scheme=\"exact\", pay_to=SVM_ADDRESS, price=\"$0.01\", network=SVM_NETWORK),\n        ],\n        mime_type=\"application\u002Fjson\",\n        description=\"Weather report\",\n    ),\n}\n\napp.add_middleware(PaymentMiddlewareASGI, routes=routes, server=server)\n\n@app.get(\"\u002Fhealth\")\nasync def health_check():\n    return {\"status\": \"ok\"}\n\n@app.get(\"\u002Fweather\")\nasync def get_weather():\n    return {\"report\": {\"weather\": \"sunny\", \"temperature\": 70}}\n\nif __name__ == \"__main__\":\n    import uvicorn\n    uvicorn.run(app, host=\"0.0.0.0\", port=4021)\n```\n\n## Python with Flask\n\nInstall dependencies:\n```bash\npip install \"x402[flask,evm,svm]\" python-dotenv\n```\n\nCode:\n```python\nimport os\nfrom dotenv import load_dotenv\nfrom flask import Flask, jsonify\n\nfrom x402.http import FacilitatorConfig, HTTPFacilitatorClientSync, PaymentOption\nfrom x402.http.middleware.flask import payment_middleware\nfrom x402.http.types import RouteConfig\nfrom x402.mechanisms.evm.exact import ExactEvmServerScheme\nfrom x402.mechanisms.svm.exact import ExactSvmServerScheme\nfrom x402.schemas import Network\nfrom x402.server import x402ResourceServerSync\n\nload_dotenv()\n\nEVM_ADDRESS = os.getenv(\"EVM_ADDRESS\")\nSVM_ADDRESS = os.getenv(\"SVM_ADDRESS\")\nEVM_NETWORK: Network = \"eip155:84532\"\nSVM_NETWORK: Network = \"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\"\nFACILITATOR_URL = os.getenv(\"FACILITATOR_URL\", \"https:\u002F\u002Fx402.org\u002Ffacilitator\")\n\napp = Flask(__name__)\n\nfacilitator = HTTPFacilitatorClientSync(FacilitatorConfig(url=FACILITATOR_URL))\nserver = x402ResourceServerSync(facilitator)\nserver.register(EVM_NETWORK, ExactEvmServerScheme())\nserver.register(SVM_NETWORK, ExactSvmServerScheme())\n\nroutes = {\n    \"GET \u002Fweather\": RouteConfig(\n        accepts=[\n            PaymentOption(scheme=\"exact\", pay_to=EVM_ADDRESS, price=\"$0.01\", network=EVM_NETWORK),\n            PaymentOption(scheme=\"exact\", pay_to=SVM_ADDRESS, price=\"$0.01\", network=SVM_NETWORK),\n        ],\n        mime_type=\"application\u002Fjson\",\n        description=\"Weather report\",\n    ),\n}\n\npayment_middleware(app, routes=routes, server=server)\n\n@app.route(\"\u002Fhealth\")\ndef health_check():\n    return jsonify({\"status\": \"ok\"})\n\n@app.route(\"\u002Fweather\")\ndef get_weather():\n    return jsonify({\"report\": {\"weather\": \"sunny\", \"temperature\": 70}})\n\nif __name__ == \"__main__\":\n    app.run(host=\"0.0.0.0\", port=4021)\n```\n\n## Go with Gin\n\nInstall dependencies:\n```bash\ngo get github.com\u002Fcoinbase\u002Fx402\u002Fgo\ngo get github.com\u002Fgin-gonic\u002Fgin\ngo get github.com\u002Fjoho\u002Fgodotenv\n```\n\nCode:\n```go\npackage main\n\nimport (\n\t\"net\u002Fhttp\"\n\t\"os\"\n\t\"time\"\n\n\tx402 \"github.com\u002Fcoinbase\u002Fx402\u002Fgo\"\n\tx402http \"github.com\u002Fcoinbase\u002Fx402\u002Fgo\u002Fhttp\"\n\tginmw \"github.com\u002Fcoinbase\u002Fx402\u002Fgo\u002Fhttp\u002Fgin\"\n\tevm \"github.com\u002Fcoinbase\u002Fx402\u002Fgo\u002Fmechanisms\u002Fevm\u002Fexact\u002Fserver\"\n\tsvm \"github.com\u002Fcoinbase\u002Fx402\u002Fgo\u002Fmechanisms\u002Fsvm\u002Fexact\u002Fserver\"\n\t\"github.com\u002Fgin-gonic\u002Fgin\"\n\t\"github.com\u002Fjoho\u002Fgodotenv\"\n)\n\nfunc main() {\n\tgodotenv.Load()\n\n\tevmAddress := os.Getenv(\"EVM_PAYEE_ADDRESS\")\n\tsvmAddress := os.Getenv(\"SVM_PAYEE_ADDRESS\")\n\tfacilitatorURL := os.Getenv(\"FACILITATOR_URL\")\n\n\tr := gin.Default()\n\n\tfacilitatorClient := x402http.NewHTTPFacilitatorClient(&x402http.FacilitatorConfig{\n\t\tURL: facilitatorURL,\n\t})\n\n\troutes := x402http.RoutesConfig{\n\t\t\"GET \u002Fweather\": {\n\t\t\tAccepts: x402http.PaymentOptions{\n\t\t\t\t{Scheme: \"exact\", Price: \"$0.001\", Network: \"eip155:84532\", PayTo: evmAddress},\n\t\t\t\t{Scheme: \"exact\", Price: \"$0.001\", Network: \"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\", PayTo: svmAddress},\n\t\t\t},\n\t\t\tDescription: \"Get weather data\",\n\t\t\tMimeType:    \"application\u002Fjson\",\n\t\t},\n\t}\n\n\tr.Use(ginmw.X402Payment(ginmw.Config{\n\t\tRoutes:      routes,\n\t\tFacilitator: facilitatorClient,\n\t\tSchemes: []ginmw.SchemeConfig{\n\t\t\t{Network: \"eip155:84532\", Server: evm.NewExactEvmScheme()},\n\t\t\t{Network: \"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\", Server: svm.NewExactSvmScheme()},\n\t\t},\n\t\tTimeout: 30 * time.Second,\n\t}))\n\n\tr.GET(\"\u002Fweather\", func(c *gin.Context) {\n\t\tc.JSON(http.StatusOK, gin.H{\n\t\t\t\"weather\":     \"sunny\",\n\t\t\t\"temperature\": 70,\n\t\t\t\"timestamp\":   time.Now().Format(time.RFC3339),\n\t\t})\n\t})\n\n\tr.GET(\"\u002Fhealth\", func(c *gin.Context) {\n\t\tc.JSON(http.StatusOK, gin.H{\"status\": \"ok\"})\n\t})\n\n\tr.Run(\":4021\")\n}\n```\n\n---\n\n# Paywall UI (Server Middleware)\n\nThe `@x402\u002Fpaywall` package provides a pre-built paywall UI that displays when users hit a 402 Payment Required response. It handles wallet connection (MetaMask, Coinbase Wallet, Phantom, etc.), USDC balance checking, and payment submission.\n\n**Important:** This package is designed for **server-side use only**. It generates a complete, self-contained HTML page (~1.9MB) with embedded React, wagmi, and wallet adapters that the server returns when a 402 response is triggered. It is **not** a standalone React component library and **cannot** be imported into an existing React application.\n\n**Looking for React components instead?**\n- **For Solana React apps:** Use `@payai\u002Fx402-solana-react` - drop-in paywall components with themes\n- **For custom EVM\u002FSolana React:** Build with `wagmi` + `viem` (EVM) or `@solana\u002Fwallet-adapter-react` (Solana)\n- **Multi-chain SDKs:** `@dexterai\u002Fx402`, `x402-solana`\n\nSee the [Custom React Frontend Integration](#custom-react-frontend-integration) section below for details.\n\n---\n\n## Installation (Server-Side)\n\n```bash\nnpm install @x402\u002Fpaywall\n```\n\n**Bundle sizes by import:**\n| Import | Size | Networks |\n|--------|------|----------|\n| `@x402\u002Fpaywall` | 3.5MB | EVM + Solana |\n| `@x402\u002Fpaywall\u002Fevm` | 3.4MB | EVM only |\n| `@x402\u002Fpaywall\u002Fsvm` | 1.0MB | Solana only |\n\n## Usage (Server Middleware)\n\n### EVM Only\n\n```typescript\nimport { createPaywall } from \"@x402\u002Fpaywall\";\nimport { evmPaywall } from \"@x402\u002Fpaywall\u002Fevm\";\n\nconst paywall = createPaywall()\n  .withNetwork(evmPaywall)\n  .withConfig({\n    appName: \"My App\",\n    appLogo: \"\u002Flogo.png\",\n    testnet: true,\n  })\n  .build();\n```\n\n### Solana Only\n\n```typescript\nimport { createPaywall } from \"@x402\u002Fpaywall\";\nimport { svmPaywall } from \"@x402\u002Fpaywall\u002Fsvm\";\n\nconst paywall = createPaywall()\n  .withNetwork(svmPaywall)\n  .withConfig({\n    appName: \"My Solana App\",\n    testnet: true,\n  })\n  .build();\n```\n\n### Multi-Network\n\n```typescript\nimport { createPaywall } from \"@x402\u002Fpaywall\";\nimport { evmPaywall } from \"@x402\u002Fpaywall\u002Fevm\";\nimport { svmPaywall } from \"@x402\u002Fpaywall\u002Fsvm\";\n\nconst paywall = createPaywall()\n  .withNetwork(evmPaywall)  \u002F\u002F First-match priority\n  .withNetwork(svmPaywall)  \u002F\u002F Fallback option\n  .withConfig({\n    appName: \"Multi-chain App\",\n    testnet: true,\n  })\n  .build();\n```\n\n## Configuration Options\n\n```typescript\ninterface PaywallConfig {\n  appName?: string;    \u002F\u002F App name shown in wallet connection\n  appLogo?: string;    \u002F\u002F App logo URL\n  currentUrl?: string; \u002F\u002F URL of protected resource\n  testnet?: boolean;   \u002F\u002F Use testnet (default: true)\n}\n```\n\n## Integration with Express\n\n```typescript\nimport express from \"express\";\nimport { paymentMiddleware, x402ResourceServer } from \"@x402\u002Fexpress\";\nimport { ExactEvmScheme } from \"@x402\u002Fevm\u002Fexact\u002Fserver\";\nimport { HTTPFacilitatorClient } from \"@x402\u002Fcore\u002Fserver\";\nimport { createPaywall } from \"@x402\u002Fpaywall\";\nimport { evmPaywall } from \"@x402\u002Fpaywall\u002Fevm\";\n\nconst app = express();\n\nconst facilitatorClient = new HTTPFacilitatorClient({ url: \"https:\u002F\u002Fx402.org\u002Ffacilitator\" });\n\nconst paywall = createPaywall()\n  .withNetwork(evmPaywall)\n  .withConfig({ appName: \"My API\", testnet: true })\n  .build();\n\napp.use(\n  paymentMiddleware(\n    {\n      \"GET \u002Fpremium\": {\n        accepts: [{ scheme: \"exact\", price: \"$0.01\", network: \"eip155:84532\", payTo: \"0x...\" }],\n        description: \"Premium content\",\n        mimeType: \"application\u002Fjson\",\n      },\n    },\n    new x402ResourceServer(facilitatorClient).register(\"eip155:84532\", new ExactEvmScheme()),\n    undefined,  \u002F\u002F paywallConfig (using custom paywall instead)\n    paywall,    \u002F\u002F custom paywall provider\n  ),\n);\n\napp.get(\"\u002Fpremium\", (req, res) => res.json({ content: \"Premium data\" }));\napp.listen(4021);\n```\n\n## Auto-Detection (Simple Usage)\n\nIf you pass a `paywallConfig` object instead of a custom paywall, the middleware will automatically use `@x402\u002Fpaywall` if installed:\n\n```typescript\napp.use(\n  paymentMiddleware(\n    routes,\n    server,\n    { appName: \"My App\", testnet: true },  \u002F\u002F paywallConfig - auto-detects @x402\u002Fpaywall\n  ),\n);\n```\n\n## How First-Match Selection Works\n\nWhen the server returns multiple payment options, the paywall selects the first one that has a registered handler:\n\n```typescript\n\u002F\u002F Server returns:\n{ \"accepts\": [\n  { \"network\": \"solana:5eykt...\", ... },  \u002F\u002F First option\n  { \"network\": \"eip155:8453\", ... }       \u002F\u002F Second option\n]}\n\n\u002F\u002F If both handlers registered, Solana is selected (first in accepts)\nconst paywall = createPaywall()\n  .withNetwork(evmPaywall)\n  .withNetwork(svmPaywall)\n  .build();\n```\n\n---\n\n## Pricing Configuration\n\n### Simple USD Pricing\n```typescript\n{ scheme: \"exact\", price: \"$0.001\", network: \"eip155:84532\", payTo: evmAddress }\n```\n\n### Custom Token Amount (ERC-20)\n```typescript\n{\n  scheme: \"exact\",\n  price: {\n    amount: \"10000\",  \u002F\u002F atomic units ($0.01 USDC = 10000 because USDC has 6 decimals)\n    asset: \"0x036CbD53842c5426634e7929541eC2318f3dCF7e\",  \u002F\u002F USDC on Base Sepolia\n    extra: { name: \"USDC\", version: \"2\" }  \u002F\u002F EIP-712 params\n  },\n  network: \"eip155:84532\",\n  payTo: evmAddress\n}\n```\n\n---\n\n## Testing\n\nFor testing, use:\n- **Network:** `eip155:84532` (Base Sepolia) or `solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1` (Solana Devnet)\n- **Facilitator:** `https:\u002F\u002Fx402.org\u002Ffacilitator` (testnet only)\n- **Faucets:** Get testnet USDC from Base Sepolia faucet\n\nFor production, switch to mainnet networks and a production facilitator.\n","# x402 Payment Protocol\n\nx402 is an open, internet-native payment standard built around the HTTP `402 Payment Required` status code. It enables programmatic payments between clients and servers without accounts, sessions, or credential management.\n\n**Key Benefits:**\n- Zero protocol fees (only blockchain network fees)\n- Zero friction (no accounts or KYC required)\n- Instant settlement via stablecoins\n- Works with AI agents and automated systems\n\n**Documentation:** https:\u002F\u002Fdocs.x402.org | **GitHub:** https:\u002F\u002Fgithub.com\u002Fcoinbase\u002Fx402\n\n---\n\n## How x402 Works\n\n1. Client requests a resource from a server\n2. Server responds with `402 Payment Required` + payment instructions\n3. Client signs and submits a payment payload\n4. Server verifies payment, optionally via a facilitator\n5. Server returns the requested resource\n\n---\n\n## Environment Variables\n\n### For Buyers (Clients)\n```bash\n# EVM wallet private key (Ethereum\u002FBase\u002FPolygon)\nEVM_PRIVATE_KEY=0x...\n\n# Solana wallet private key (base58 encoded)\nSVM_PRIVATE_KEY=...\n\n# Target server URL\nRESOURCE_SERVER_URL=http:\u002F\u002Flocalhost:4021\nENDPOINT_PATH=\u002Fweather\n```\n\n### For Sellers (Servers)\n```bash\n# Your EVM wallet address to receive payments\nEVM_ADDRESS=0x...\n\n# Your Solana wallet address to receive payments\nSVM_ADDRESS=...\n\n# Facilitator URL (see list below)\nFACILITATOR_URL=https:\u002F\u002Fx402.org\u002Ffacilitator\n```\n\n---\n\n## Network Identifiers (CAIP-2)\n\n| Network | CAIP-2 ID | Description |\n|---------|-----------|-------------|\n| **Base** | | |\n| Base Mainnet | `eip155:8453` | Base L2 mainnet |\n| Base Sepolia | `eip155:84532` | Base L2 testnet |\n| **Solana** | | |\n| Solana Mainnet | `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp` | Solana mainnet |\n| Solana Devnet | `solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1` | Solana testnet |\n| **Polygon** | | |\n| Polygon Mainnet | `eip155:137` | Polygon PoS mainnet |\n| Polygon Amoy | `eip155:80002` | Polygon testnet |\n| **Avalanche** | | |\n| Avalanche C-Chain | `eip155:43114` | Avalanche mainnet |\n| Avalanche Fuji | `eip155:43113` | Avalanche testnet |\n| **Sei** | | |\n| Sei Mainnet | `eip155:1329` | Sei EVM mainnet |\n| Sei Testnet | `eip155:713715` | Sei EVM testnet |\n| **X Layer** | | |\n| X Layer Mainnet | `eip155:196` | OKX L2 mainnet |\n| X Layer Testnet | `eip155:1952` | OKX L2 testnet |\n| **SKALE** | | |\n| SKALE Base | `eip155:1187947933` | SKALE mainnet |\n| SKALE Base Sepolia | `eip155:324705682` | SKALE testnet |\n\n\n---\n\n## Facilitators\n\nFacilitators handle payment verification and blockchain settlement. Choose one:\n\n| Name | URL | Notes |\n|------|-----|-------|\n| x402.org | `https:\u002F\u002Fx402.org\u002Ffacilitator` | Default, testnet only |\n| Coinbase | `https:\u002F\u002Fapi.cdp.coinbase.com\u002Fplatform\u002Fv2\u002Fx402` | Production |\n| PayAI | `https:\u002F\u002Ffacilitator.payai.network` | Production |\n| Corbits | `https:\u002F\u002Ffacilitator.corbits.dev` | Production |\n| x402rs | `https:\u002F\u002Ffacilitator.x402.rs` | Production |\n| Dexter | `https:\u002F\u002Fx402.dexter.cash` | Production |\n| Heurist | `https:\u002F\u002Ffacilitator.heurist.xyz` | Production |\n| Kobaru | `https:\u002F\u002Fgateway.kobaru.io` | Production |\n| Mogami | `https:\u002F\u002Ffacilitator.mogami.tech` | Production |\n| Nevermined | `https:\u002F\u002Fapi.live.nevermined.app\u002Fapi\u002Fv1\u002F` | Production |\n| Openfacilitator | `https:\u002F\u002Fpay.openfacilitator.io` | Production |\n| Solpay | `https:\u002F\u002Fx402.solpay.cash` | Production |\n| Primer | `https:\u002F\u002Fx402.primer.systems` | Production |\n| xEcho | `https:\u002F\u002Ffacilitator.xechoai.xyz` | Production |\n\n---\n\n# Buyer Examples (Client)\n\n## TypeScript with fetch\n\nInstall dependencies:\n```bash\nnpm install @x402\u002Ffetch @x402\u002Fevm @x402\u002Fsvm viem @solana\u002Fkit @scure\u002Fbase dotenv\n```\n\nCode:\n```typescript\nimport { config } from \"dotenv\";\nimport { x402Client, wrapFetchWithPayment, x402HTTPClient } from \"@x402\u002Ffetch\";\nimport { registerExactEvmScheme } from \"@x402\u002Fevm\u002Fexact\u002Fclient\";\nimport { registerExactSvmScheme } from \"@x402\u002Fsvm\u002Fexact\u002Fclient\";\nimport { privateKeyToAccount } from \"viem\u002Faccounts\";\nimport { createKeyPairSignerFromBytes } from \"@solana\u002Fkit\";\nimport { base58 } from \"@scure\u002Fbase\";\n\nconfig();\n\nconst evmPrivateKey = process.env.EVM_PRIVATE_KEY as `0x${string}`;\nconst svmPrivateKey = process.env.SVM_PRIVATE_KEY as string;\nconst url = `${process.env.RESOURCE_SERVER_URL}${process.env.ENDPOINT_PATH}`;\n\nasync function main(): Promise\u003Cvoid> {\n  const evmSigner = privateKeyToAccount(evmPrivateKey);\n  const svmSigner = await createKeyPairSignerFromBytes(base58.decode(svmPrivateKey));\n\n  const client = new x402Client();\n  registerExactEvmScheme(client, { signer: evmSigner });\n  registerExactSvmScheme(client, { signer: svmSigner });\n\n  const fetchWithPayment = wrapFetchWithPayment(fetch, client);\n\n  const response = await fetchWithPayment(url, { method: \"GET\" });\n  const body = await response.json();\n  console.log(\"Response:\", body);\n\n  if (response.ok) {\n    const paymentResponse = new x402HTTPClient(client).getPaymentSettleResponse(\n      name => response.headers.get(name)\n    );\n    console.log(\"Payment:\", JSON.stringify(paymentResponse, null, 2));\n  }\n}\n\nmain().catch(console.error);\n```\n\n## TypeScript with axios\n\nInstall dependencies:\n```bash\nnpm install @x402\u002Faxios @x402\u002Fevm @x402\u002Fsvm axios viem @solana\u002Fkit @scure\u002Fbase dotenv\n```\n\nCode:\n```typescript\nimport { config } from \"dotenv\";\nimport { x402Client, wrapAxiosWithPayment, x402HTTPClient } from \"@x402\u002Faxios\";\nimport { registerExactEvmScheme } from \"@x402\u002Fevm\u002Fexact\u002Fclient\";\nimport { registerExactSvmScheme } from \"@x402\u002Fsvm\u002Fexact\u002Fclient\";\nimport { privateKeyToAccount } from \"viem\u002Faccounts\";\nimport { createKeyPairSignerFromBytes } from \"@solana\u002Fkit\";\nimport { base58 } from \"@scure\u002Fbase\";\nimport axios from \"axios\";\n\nconfig();\n\nconst evmPrivateKey = process.env.EVM_PRIVATE_KEY as `0x${string}`;\nconst svmPrivateKey = process.env.SVM_PRIVATE_KEY as string;\nconst url = `${process.env.RESOURCE_SERVER_URL}${process.env.ENDPOINT_PATH}`;\n\nasync function main(): Promise\u003Cvoid> {\n  const evmSigner = privateKeyToAccount(evmPrivateKey);\n  const svmSigner = await createKeyPairSignerFromBytes(base58.decode(svmPrivateKey));\n\n  const client = new x402Client();\n  registerExactEvmScheme(client, { signer: evmSigner });\n  registerExactSvmScheme(client, { signer: svmSigner });\n\n  const api = wrapAxiosWithPayment(axios.create(), client);\n\n  const response = await api.get(url);\n  console.log(\"Response:\", response.data);\n\n  if (response.status \u003C 400) {\n    const paymentResponse = new x402HTTPClient(client).getPaymentSettleResponse(\n      name => response.headers[name.toLowerCase()]\n    );\n    console.log(\"Payment:\", paymentResponse);\n  }\n}\n\nmain().catch(console.error);\n```\n\n## Python with httpx (async)\n\nInstall dependencies:\n```bash\npip install \"x402[httpx,evm,svm]\" python-dotenv\n```\n\nCode:\n```python\nimport asyncio\nimport os\nfrom dotenv import load_dotenv\nfrom eth_account import Account\n\nfrom x402 import x402Client\nfrom x402.http import x402HTTPClient\nfrom x402.http.clients import x402HttpxClient\nfrom x402.mechanisms.evm import EthAccountSigner\nfrom x402.mechanisms.evm.exact.register import register_exact_evm_client\nfrom x402.mechanisms.svm import KeypairSigner\nfrom x402.mechanisms.svm.exact.register import register_exact_svm_client\n\nload_dotenv()\n\nasync def main() -> None:\n    evm_private_key = os.getenv(\"EVM_PRIVATE_KEY\")\n    svm_private_key = os.getenv(\"SVM_PRIVATE_KEY\")\n    base_url = os.getenv(\"RESOURCE_SERVER_URL\")\n    endpoint_path = os.getenv(\"ENDPOINT_PATH\")\n\n    client = x402Client()\n\n    if evm_private_key:\n        account = Account.from_key(evm_private_key)\n        register_exact_evm_client(client, EthAccountSigner(account))\n\n    if svm_private_key:\n        svm_signer = KeypairSigner.from_base58(svm_private_key)\n        register_exact_svm_client(client, svm_signer)\n\n    http_client = x402HTTPClient(client)\n    url = f\"{base_url}{endpoint_path}\"\n\n    async with x402HttpxClient(client) as http:\n        response = await http.get(url)\n        await response.aread()\n        print(f\"Response: {response.text}\")\n\n        if response.is_success:\n            try:\n                settle_response = http_client.get_payment_settle_response(\n                    lambda name: response.headers.get(name)\n                )\n                print(f\"Payment: {settle_response.model_dump_json(indent=2)}\")\n            except ValueError:\n                print(\"No payment response header found\")\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\n## Python with requests (sync)\n\nInstall dependencies:\n```bash\npip install \"x402[requests,evm,svm]\" python-dotenv\n```\n\nCode:\n```python\nimport os\nfrom dotenv import load_dotenv\nfrom eth_account import Account\n\nfrom x402 import x402ClientSync\nfrom x402.http import x402HTTPClientSync\nfrom x402.http.clients import x402_requests\nfrom x402.mechanisms.evm import EthAccountSigner\nfrom x402.mechanisms.evm.exact.register import register_exact_evm_client\nfrom x402.mechanisms.svm import KeypairSigner\nfrom x402.mechanisms.svm.exact.register import register_exact_svm_client\n\nload_dotenv()\n\ndef main() -> None:\n    evm_private_key = os.getenv(\"EVM_PRIVATE_KEY\")\n    svm_private_key = os.getenv(\"SVM_PRIVATE_KEY\")\n    base_url = os.getenv(\"RESOURCE_SERVER_URL\")\n    endpoint_path = os.getenv(\"ENDPOINT_PATH\")\n\n    client = x402ClientSync()\n\n    if evm_private_key:\n        account = Account.from_key(evm_private_key)\n        register_exact_evm_client(client, EthAccountSigner(account))\n\n    if svm_private_key:\n        svm_signer = KeypairSigner.from_base58(svm_private_key)\n        register_exact_svm_client(client, svm_signer)\n\n    http_client = x402HTTPClientSync(client)\n    url = f\"{base_url}{endpoint_path}\"\n\n    with x402_requests(client) as session:\n        response = session.get(url)\n        print(f\"Response: {response.text}\")\n\n        if response.ok:\n            try:\n                settle_response = http_client.get_payment_settle_response(\n                    lambda name: response.headers.get(name)\n                )\n                print(f\"Payment: {settle_response.model_dump_json(indent=2)}\")\n            except ValueError:\n                print(\"No payment response header found\")\n\nif __name__ == \"__main__\":\n    main()\n```\n\n## Go with net\u002Fhttp\n\nInstall dependencies:\n```bash\ngo get github.com\u002Fcoinbase\u002Fx402\u002Fgo\ngo get github.com\u002Fjoho\u002Fgodotenv\n```\n\nCode:\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"encoding\u002Fjson\"\n\t\"fmt\"\n\t\"net\u002Fhttp\"\n\t\"os\"\n\t\"time\"\n\n\tx402 \"github.com\u002Fcoinbase\u002Fx402\u002Fgo\"\n\t\"github.com\u002Fjoho\u002Fgodotenv\"\n)\n\nfunc main() {\n\tgodotenv.Load()\n\n\tevmPrivateKey := os.Getenv(\"EVM_PRIVATE_KEY\")\n\tsvmPrivateKey := os.Getenv(\"SVM_PRIVATE_KEY\")\n\turl := os.Getenv(\"SERVER_URL\")\n\tif url == \"\" {\n\t\turl = \"http:\u002F\u002Flocalhost:4021\u002Fweather\"\n\t}\n\n\t\u002F\u002F Create x402 client with EVM and SVM support\n\tclient, err := x402.NewClientBuilder().\n\t\tWithEvmSigner(evmPrivateKey).\n\t\tWithSvmSigner(svmPrivateKey).\n\t\tBuild()\n\tif err != nil {\n\t\tfmt.Printf(\"Failed to create client: %v\\n\", err)\n\t\tos.Exit(1)\n\t}\n\n\t\u002F\u002F Wrap HTTP client with payment handling\n\thttpClient := client.WrapHTTPClient(&http.Client{Timeout: 30 * time.Second})\n\n\tctx := context.Background()\n\treq, _ := http.NewRequestWithContext(ctx, \"GET\", url, nil)\n\tresp, err := httpClient.Do(req)\n\tif err != nil {\n\t\tfmt.Printf(\"Request failed: %v\\n\", err)\n\t\tos.Exit(1)\n\t}\n\tdefer resp.Body.Close()\n\n\tvar responseData interface{}\n\tjson.NewDecoder(resp.Body).Decode(&responseData)\n\tprettyJSON, _ := json.MarshalIndent(responseData, \"\", \"  \")\n\tfmt.Printf(\"Response: %s\\n\", string(prettyJSON))\n}\n```\n\n---\n\n# Seller Examples (Server)\n\n## TypeScript with Express\n\nInstall dependencies:\n```bash\nnpm install express @x402\u002Fexpress @x402\u002Fcore @x402\u002Fevm @x402\u002Fsvm dotenv\n```\n\nCode:\n```typescript\nimport { config } from \"dotenv\";\nimport express from \"express\";\nimport { paymentMiddleware, x402ResourceServer } from \"@x402\u002Fexpress\";\nimport { ExactEvmScheme } from \"@x402\u002Fevm\u002Fexact\u002Fserver\";\nimport { ExactSvmScheme } from \"@x402\u002Fsvm\u002Fexact\u002Fserver\";\nimport { HTTPFacilitatorClient } from \"@x402\u002Fcore\u002Fserver\";\n\nconfig();\n\nconst evmAddress = process.env.EVM_ADDRESS as `0x${string}`;\nconst svmAddress = process.env.SVM_ADDRESS;\nconst facilitatorUrl = process.env.FACILITATOR_URL || \"https:\u002F\u002Fx402.org\u002Ffacilitator\";\n\nconst facilitatorClient = new HTTPFacilitatorClient({ url: facilitatorUrl });\nconst app = express();\n\napp.use(\n  paymentMiddleware(\n    {\n      \"GET \u002Fweather\": {\n        accepts: [\n          { scheme: \"exact\", price: \"$0.001\", network: \"eip155:84532\", payTo: evmAddress },\n          { scheme: \"exact\", price: \"$0.001\", network: \"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\", payTo: svmAddress },\n        ],\n        description: \"Weather data\",\n        mimeType: \"application\u002Fjson\",\n      },\n    },\n    new x402ResourceServer(facilitatorClient)\n      .register(\"eip155:84532\", new ExactEvmScheme())\n      .register(\"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\", new ExactSvmScheme()),\n  ),\n);\n\napp.get(\"\u002Fweather\", (req, res) => {\n  res.send({ report: { weather: \"sunny\", temperature: 70 } });\n});\n\napp.listen(4021, () => console.log(\"Server listening at http:\u002F\u002Flocalhost:4021\"));\n```\n\n## TypeScript with Hono\n\nInstall dependencies:\n```bash\nnpm install hono @hono\u002Fnode-server @x402\u002Fhono @x402\u002Fcore @x402\u002Fevm @x402\u002Fsvm dotenv\n```\n\nCode:\n```typescript\nimport { config } from \"dotenv\";\nimport { paymentMiddleware, x402ResourceServer } from \"@x402\u002Fhono\";\nimport { ExactEvmScheme } from \"@x402\u002Fevm\u002Fexact\u002Fserver\";\nimport { ExactSvmScheme } from \"@x402\u002Fsvm\u002Fexact\u002Fserver\";\nimport { HTTPFacilitatorClient } from \"@x402\u002Fcore\u002Fserver\";\nimport { Hono } from \"hono\";\nimport { serve } from \"@hono\u002Fnode-server\";\n\nconfig();\n\nconst evmAddress = process.env.EVM_ADDRESS as `0x${string}`;\nconst svmAddress = process.env.SVM_ADDRESS;\nconst facilitatorUrl = process.env.FACILITATOR_URL || \"https:\u002F\u002Fx402.org\u002Ffacilitator\";\n\nconst facilitatorClient = new HTTPFacilitatorClient({ url: facilitatorUrl });\nconst app = new Hono();\n\napp.use(\n  paymentMiddleware(\n    {\n      \"GET \u002Fweather\": {\n        accepts: [\n          { scheme: \"exact\", price: \"$0.001\", network: \"eip155:84532\", payTo: evmAddress },\n          { scheme: \"exact\", price: \"$0.001\", network: \"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\", payTo: svmAddress },\n        ],\n        description: \"Weather data\",\n        mimeType: \"application\u002Fjson\",\n      },\n    },\n    new x402ResourceServer(facilitatorClient)\n      .register(\"eip155:84532\", new ExactEvmScheme())\n      .register(\"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\", new ExactSvmScheme()),\n  ),\n);\n\napp.get(\"\u002Fweather\", c => c.json({ report: { weather: \"sunny\", temperature: 70 } }));\n\nserve({ fetch: app.fetch, port: 4021 });\nconsole.log(\"Server listening at http:\u002F\u002Flocalhost:4021\");\n```\n\n## Python with FastAPI\n\nInstall dependencies:\n```bash\npip install \"x402[fastapi,evm,svm]\" python-dotenv uvicorn\n```\n\nCode:\n```python\nimport os\nfrom dotenv import load_dotenv\nfrom fastapi import FastAPI\n\nfrom x402.http import FacilitatorConfig, HTTPFacilitatorClient, PaymentOption\nfrom x402.http.middleware.fastapi import PaymentMiddlewareASGI\nfrom x402.http.types import RouteConfig\nfrom x402.mechanisms.evm.exact import ExactEvmServerScheme\nfrom x402.mechanisms.svm.exact import ExactSvmServerScheme\nfrom x402.schemas import Network\nfrom x402.server import x402ResourceServer\n\nload_dotenv()\n\nEVM_ADDRESS = os.getenv(\"EVM_ADDRESS\")\nSVM_ADDRESS = os.getenv(\"SVM_ADDRESS\")\nEVM_NETWORK: Network = \"eip155:84532\"\nSVM_NETWORK: Network = \"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\"\nFACILITATOR_URL = os.getenv(\"FACILITATOR_URL\", \"https:\u002F\u002Fx402.org\u002Ffacilitator\")\n\napp = FastAPI()\n\nfacilitator = HTTPFacilitatorClient(FacilitatorConfig(url=FACILITATOR_URL))\nserver = x402ResourceServer(facilitator)\nserver.register(EVM_NETWORK, ExactEvmServerScheme())\nserver.register(SVM_NETWORK, ExactSvmServerScheme())\n\nroutes = {\n    \"GET \u002Fweather\": RouteConfig(\n        accepts=[\n            PaymentOption(scheme=\"exact\", pay_to=EVM_ADDRESS, price=\"$0.01\", network=EVM_NETWORK),\n            PaymentOption(scheme=\"exact\", pay_to=SVM_ADDRESS, price=\"$0.01\", network=SVM_NETWORK),\n        ],\n        mime_type=\"application\u002Fjson\",\n        description=\"Weather report\",\n    ),\n}\n\napp.add_middleware(PaymentMiddlewareASGI, routes=routes, server=server)\n\n@app.get(\"\u002Fhealth\")\nasync def health_check():\n    return {\"status\": \"ok\"}\n\n@app.get(\"\u002Fweather\")\nasync def get_weather():\n    return {\"report\": {\"weather\": \"sunny\", \"temperature\": 70}}\n\nif __name__ == \"__main__\":\n    import uvicorn\n    uvicorn.run(app, host=\"0.0.0.0\", port=4021)\n```\n\n## Python with Flask\n\nInstall dependencies:\n```bash\npip install \"x402[flask,evm,svm]\" python-dotenv\n```\n\nCode:\n```python\nimport os\nfrom dotenv import load_dotenv\nfrom flask import Flask, jsonify\n\nfrom x402.http import FacilitatorConfig, HTTPFacilitatorClientSync, PaymentOption\nfrom x402.http.middleware.flask import payment_middleware\nfrom x402.http.types import RouteConfig\nfrom x402.mechanisms.evm.exact import ExactEvmServerScheme\nfrom x402.mechanisms.svm.exact import ExactSvmServerScheme\nfrom x402.schemas import Network\nfrom x402.server import x402ResourceServerSync\n\nload_dotenv()\n\nEVM_ADDRESS = os.getenv(\"EVM_ADDRESS\")\nSVM_ADDRESS = os.getenv(\"SVM_ADDRESS\")\nEVM_NETWORK: Network = \"eip155:84532\"\nSVM_NETWORK: Network = \"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\"\nFACILITATOR_URL = os.getenv(\"FACILITATOR_URL\", \"https:\u002F\u002Fx402.org\u002Ffacilitator\")\n\napp = Flask(__name__)\n\nfacilitator = HTTPFacilitatorClientSync(FacilitatorConfig(url=FACILITATOR_URL))\nserver = x402ResourceServerSync(facilitator)\nserver.register(EVM_NETWORK, ExactEvmServerScheme())\nserver.register(SVM_NETWORK, ExactSvmServerScheme())\n\nroutes = {\n    \"GET \u002Fweather\": RouteConfig(\n        accepts=[\n            PaymentOption(scheme=\"exact\", pay_to=EVM_ADDRESS, price=\"$0.01\", network=EVM_NETWORK),\n            PaymentOption(scheme=\"exact\", pay_to=SVM_ADDRESS, price=\"$0.01\", network=SVM_NETWORK),\n        ],\n        mime_type=\"application\u002Fjson\",\n        description=\"Weather report\",\n    ),\n}\n\npayment_middleware(app, routes=routes, server=server)\n\n@app.route(\"\u002Fhealth\")\ndef health_check():\n    return jsonify({\"status\": \"ok\"})\n\n@app.route(\"\u002Fweather\")\ndef get_weather():\n    return jsonify({\"report\": {\"weather\": \"sunny\", \"temperature\": 70}})\n\nif __name__ == \"__main__\":\n    app.run(host=\"0.0.0.0\", port=4021)\n```\n\n## Go with Gin\n\nInstall dependencies:\n```bash\ngo get github.com\u002Fcoinbase\u002Fx402\u002Fgo\ngo get github.com\u002Fgin-gonic\u002Fgin\ngo get github.com\u002Fjoho\u002Fgodotenv\n```\n\nCode:\n```go\npackage main\n\nimport (\n\t\"net\u002Fhttp\"\n\t\"os\"\n\t\"time\"\n\n\tx402 \"github.com\u002Fcoinbase\u002Fx402\u002Fgo\"\n\tx402http \"github.com\u002Fcoinbase\u002Fx402\u002Fgo\u002Fhttp\"\n\tginmw \"github.com\u002Fcoinbase\u002Fx402\u002Fgo\u002Fhttp\u002Fgin\"\n\tevm \"github.com\u002Fcoinbase\u002Fx402\u002Fgo\u002Fmechanisms\u002Fevm\u002Fexact\u002Fserver\"\n\tsvm \"github.com\u002Fcoinbase\u002Fx402\u002Fgo\u002Fmechanisms\u002Fsvm\u002Fexact\u002Fserver\"\n\t\"github.com\u002Fgin-gonic\u002Fgin\"\n\t\"github.com\u002Fjoho\u002Fgodotenv\"\n)\n\nfunc main() {\n\tgodotenv.Load()\n\n\tevmAddress := os.Getenv(\"EVM_PAYEE_ADDRESS\")\n\tsvmAddress := os.Getenv(\"SVM_PAYEE_ADDRESS\")\n\tfacilitatorURL := os.Getenv(\"FACILITATOR_URL\")\n\n\tr := gin.Default()\n\n\tfacilitatorClient := x402http.NewHTTPFacilitatorClient(&x402http.FacilitatorConfig{\n\t\tURL: facilitatorURL,\n\t})\n\n\troutes := x402http.RoutesConfig{\n\t\t\"GET \u002Fweather\": {\n\t\t\tAccepts: x402http.PaymentOptions{\n\t\t\t\t{Scheme: \"exact\", Price: \"$0.001\", Network: \"eip155:84532\", PayTo: evmAddress},\n\t\t\t\t{Scheme: \"exact\", Price: \"$0.001\", Network: \"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\", PayTo: svmAddress},\n\t\t\t},\n\t\t\tDescription: \"Get weather data\",\n\t\t\tMimeType:    \"application\u002Fjson\",\n\t\t},\n\t}\n\n\tr.Use(ginmw.X402Payment(ginmw.Config{\n\t\tRoutes:      routes,\n\t\tFacilitator: facilitatorClient,\n\t\tSchemes: []ginmw.SchemeConfig{\n\t\t\t{Network: \"eip155:84532\", Server: evm.NewExactEvmScheme()},\n\t\t\t{Network: \"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\", Server: svm.NewExactSvmScheme()},\n\t\t},\n\t\tTimeout: 30 * time.Second,\n\t}))\n\n\tr.GET(\"\u002Fweather\", func(c *gin.Context) {\n\t\tc.JSON(http.StatusOK, gin.H{\n\t\t\t\"weather\":     \"sunny\",\n\t\t\t\"temperature\": 70,\n\t\t\t\"timestamp\":   time.Now().Format(time.RFC3339),\n\t\t})\n\t})\n\n\tr.GET(\"\u002Fhealth\", func(c *gin.Context) {\n\t\tc.JSON(http.StatusOK, gin.H{\"status\": \"ok\"})\n\t})\n\n\tr.Run(\":4021\")\n}\n```\n\n---\n\n# Paywall UI (Server Middleware)\n\nThe `@x402\u002Fpaywall` package provides a pre-built paywall UI that displays when users hit a 402 Payment Required response. It handles wallet connection (MetaMask, Coinbase Wallet, Phantom, etc.), USDC balance checking, and payment submission.\n\n**Important:** This package is designed for **server-side use only**. It generates a complete, self-contained HTML page (~1.9MB) with embedded React, wagmi, and wallet adapters that the server returns when a 402 response is triggered. It is **not** a standalone React component library and **cannot** be imported into an existing React application.\n\n**Looking for React components instead?**\n- **For Solana React apps:** Use `@payai\u002Fx402-solana-react` - drop-in paywall components with themes\n- **For custom EVM\u002FSolana React:** Build with `wagmi` + `viem` (EVM) or `@solana\u002Fwallet-adapter-react` (Solana)\n- **Multi-chain SDKs:** `@dexterai\u002Fx402`, `x402-solana`\n\nSee the [Custom React Frontend Integration](#custom-react-frontend-integration) section below for details.\n\n---\n\n## Installation (Server-Side)\n\n```bash\nnpm install @x402\u002Fpaywall\n```\n\n**Bundle sizes by import:**\n| Import | Size | Networks |\n|--------|------|----------|\n| `@x402\u002Fpaywall` | 3.5MB | EVM + Solana |\n| `@x402\u002Fpaywall\u002Fevm` | 3.4MB | EVM only |\n| `@x402\u002Fpaywall\u002Fsvm` | 1.0MB | Solana only |\n\n## Usage (Server Middleware)\n\n### EVM Only\n\n```typescript\nimport { createPaywall } from \"@x402\u002Fpaywall\";\nimport { evmPaywall } from \"@x402\u002Fpaywall\u002Fevm\";\n\nconst paywall = createPaywall()\n  .withNetwork(evmPaywall)\n  .withConfig({\n    appName: \"My App\",\n    appLogo: \"\u002Flogo.png\",\n    testnet: true,\n  })\n  .build();\n```\n\n### Solana Only\n\n```typescript\nimport { createPaywall } from \"@x402\u002Fpaywall\";\nimport { svmPaywall } from \"@x402\u002Fpaywall\u002Fsvm\";\n\nconst paywall = createPaywall()\n  .withNetwork(svmPaywall)\n  .withConfig({\n    appName: \"My Solana App\",\n    testnet: true,\n  })\n  .build();\n```\n\n### Multi-Network\n\n```typescript\nimport { createPaywall } from \"@x402\u002Fpaywall\";\nimport { evmPaywall } from \"@x402\u002Fpaywall\u002Fevm\";\nimport { svmPaywall } from \"@x402\u002Fpaywall\u002Fsvm\";\n\nconst paywall = createPaywall()\n  .withNetwork(evmPaywall)  \u002F\u002F First-match priority\n  .withNetwork(svmPaywall)  \u002F\u002F Fallback option\n  .withConfig({\n    appName: \"Multi-chain App\",\n    testnet: true,\n  })\n  .build();\n```\n\n## Configuration Options\n\n```typescript\ninterface PaywallConfig {\n  appName?: string;    \u002F\u002F App name shown in wallet connection\n  appLogo?: string;    \u002F\u002F App logo URL\n  currentUrl?: string; \u002F\u002F URL of protected resource\n  testnet?: boolean;   \u002F\u002F Use testnet (default: true)\n}\n```\n\n## Integration with Express\n\n```typescript\nimport express from \"express\";\nimport { paymentMiddleware, x402ResourceServer } from \"@x402\u002Fexpress\";\nimport { ExactEvmScheme } from \"@x402\u002Fevm\u002Fexact\u002Fserver\";\nimport { HTTPFacilitatorClient } from \"@x402\u002Fcore\u002Fserver\";\nimport { createPaywall } from \"@x402\u002Fpaywall\";\nimport { evmPaywall } from \"@x402\u002Fpaywall\u002Fevm\";\n\nconst app = express();\n\nconst facilitatorClient = new HTTPFacilitatorClient({ url: \"https:\u002F\u002Fx402.org\u002Ffacilitator\" });\n\nconst paywall = createPaywall()\n  .withNetwork(evmPaywall)\n  .withConfig({ appName: \"My API\", testnet: true })\n  .build();\n\napp.use(\n  paymentMiddleware(\n    {\n      \"GET \u002Fpremium\": {\n        accepts: [{ scheme: \"exact\", price: \"$0.01\", network: \"eip155:84532\", payTo: \"0x...\" }],\n        description: \"Premium content\",\n        mimeType: \"application\u002Fjson\",\n      },\n    },\n    new x402ResourceServer(facilitatorClient).register(\"eip155:84532\", new ExactEvmScheme()),\n    undefined,  \u002F\u002F paywallConfig (using custom paywall instead)\n    paywall,    \u002F\u002F custom paywall provider\n  ),\n);\n\napp.get(\"\u002Fpremium\", (req, res) => res.json({ content: \"Premium data\" }));\napp.listen(4021);\n```\n\n## Auto-Detection (Simple Usage)\n\nIf you pass a `paywallConfig` object instead of a custom paywall, the middleware will automatically use `@x402\u002Fpaywall` if installed:\n\n```typescript\napp.use(\n  paymentMiddleware(\n    routes,\n    server,\n    { appName: \"My App\", testnet: true },  \u002F\u002F paywallConfig - auto-detects @x402\u002Fpaywall\n  ),\n);\n```\n\n## How First-Match Selection Works\n\nWhen the server returns multiple payment options, the paywall selects the first one that has a registered handler:\n\n```typescript\n\u002F\u002F Server returns:\n{ \"accepts\": [\n  { \"network\": \"solana:5eykt...\", ... },  \u002F\u002F First option\n  { \"network\": \"eip155:8453\", ... }       \u002F\u002F Second option\n]}\n\n\u002F\u002F If both handlers registered, Solana is selected (first in accepts)\nconst paywall = createPaywall()\n  .withNetwork(evmPaywall)\n  .withNetwork(svmPaywall)\n  .build();\n```\n\n---\n\n## Pricing Configuration\n\n### Simple USD Pricing\n```typescript\n{ scheme: \"exact\", price: \"$0.001\", network: \"eip155:84532\", payTo: evmAddress }\n```\n\n### Custom Token Amount (ERC-20)\n```typescript\n{\n  scheme: \"exact\",\n  price: {\n    amount: \"10000\",  \u002F\u002F atomic units ($0.01 USDC = 10000 because USDC has 6 decimals)\n    asset: \"0x036CbD53842c5426634e7929541eC2318f3dCF7e\",  \u002F\u002F USDC on Base Sepolia\n    extra: { name: \"USDC\", version: \"2\" }  \u002F\u002F EIP-712 params\n  },\n  network: \"eip155:84532\",\n  payTo: evmAddress\n}\n```\n\n---\n\n## Testing\n\nFor testing, use:\n- **Network:** `eip155:84532` (Base Sepolia) or `solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1` (Solana Devnet)\n- **Facilitator:** `https:\u002F\u002Fx402.org\u002Ffacilitator` (testnet only)\n- **Faucets:** Get testnet USDC from Base Sepolia faucet\n\nFor production, switch to mainnet networks and a production facilitator.\n",{"name":5,"metadata":36,"description":7},{"openclaw":37},{"emoji":38},"?","main","f4cb2d49f7667e79ef7804f50396d5aaffdf1f56","爪机器人工具\u002Fx402-enhanced",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":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add Kernel8901\u002Fai-agent-skills-classification --skill x402",{"tool":53,"command":54},"bunx","bunx skills add Kernel8901\u002Fai-agent-skills-classification --skill x402",{"tool":56,"command":57},"pnpm","pnpm dlx skills add Kernel8901\u002Fai-agent-skills-classification --skill x402","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F爪机器人工具\u002Fx402-enhanced\u002FSKILL.md",true,[61],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"_meta.json","REFERENCE","参考文档",476,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F爪机器人工具\u002Fx402-enhanced\u002F_meta.json",[68,92,114,122,129,155],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":31},"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",[],[70,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91],"safe","ethereum","defi","Optimization","user","use","Wallet","base","deposit","withdraw","yield","arbitrum","non-custodial","passive","defi yield","earn","yield optimization",{"skillNo":93,"name":94,"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":95,"categories":96,"keywords":97,"publishedAt":31},"01M6Q5R337B5JSNER4P4YS03TN","zerion-api","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api\u002FSKILL.md",[],[21,98,99,100,101,102,103,77,104,81,105,106,107,108,109,110,111,112,113],"zerion api","zerion","MCP","mcp server","server","blockchain","transactions","crypto wallet","crypto","evm","solana","query","across","positions","token","prices",{"skillNo":115,"name":116,"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":117,"categories":118,"keywords":119,"publishedAt":31},"01M6Q5QZFYTDAZMZ27BN5VZXAR","zerion-api-skill","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-skill\u002FSKILL.md",[],[21,120,121,98,99,100,101,102,103,77,104,81,106,107,108,109,110,111,112,113],"api skill","zerion api skill",{"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":31},"01M6Q5QW17QW98RA3FE45E4RD8","zerion-api-mcp","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-mcp\u002FSKILL.md",[],[100,21,128,98,99,101,102,77,104,81,105,106,107,108,109,110,111,112,113],"zerion api mcp",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":31},"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",[],[136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,29],"finance","yahoo finance","forex","yahoo","yahoo finance forex","github","https","sentiment","real-time","python3","install","Market","usd","news","time","currency","gbp","pip","market data",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":31},"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",[],[136,137,139,162,163,164,165,166,23,147,167,168,169,170,171,172,173,174,113,154],"cli","homebrew","find","check","brew","local","get","stock","link","trending","sf","quotes","ln"]