Neuronto Payments: x402 facilitator and API gateway

السجل الرسمي المالية والمدفوعات

Put any API behind x402 in one call, settle USDC on Base, buy credits, find paid resources

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http neuronto-payments-x402-facilitator-and-a 'https://pay.neuronto.com/mcp'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "neuronto-payments-x402-facilitator-and-a": {
            "type": "http",
            "url": "https://pay.neuronto.com/mcp"
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. x402 starters
  2. Pick one
  3. Run one in a minute
  4. The facilitator
  5. Testing without spending anything
  6. What you need
  7. Licence

x402 starters

The shortest working way to charge for an HTTP route, and to pay for one, using the official x402 SDKs. Every file here runs as it is; the only thing you must change is the wallet that gets paid.

x402 revives HTTP 402 Payment Required. Your server answers an unpaid request with 402 and machine-readable terms, the client signs a stablecoin payment, and a facilitator verifies the signature and settles it on-chain. Your server never holds a key and never talks to a chain.

Pick one

FolderStackWhat it is
expressNode, ExpressOne paid GET /premium route
honoNode, HonoThe same route on Hono
nextNext.js App RouterA paid API route
fastapiPython, FastAPIThe same route in Python
clientNode and PythonPaying for a 402 route from a script or an agent

Run one in a minute

cd express
npm install
export MERCHANT=0xYourWalletAddress      # where the money goes, on Base
npm start
curl -i localhost:3000/premium           # 402 with terms

Then pay it with a client from client, or point any x402 client at it.

The facilitator

These starters use https://pay.neuronto.com as the facilitator: the service that verifies the payer's signature and broadcasts the settlement. It is one line in every file, and any x402 facilitator can take its place:

new HTTPFacilitatorClient({ url: "https://pay.neuronto.com" })

Base mainnet (eip155:8453) is live there. GET https://pay.neuronto.com/supported lists every network, scheme and version it settles right now; a network that cannot settle disappears from that list before it starts refusing, so a server that reads /supported never advertises a price it cannot take.

Testing without spending anything

https://pay.neuronto.com/echo is a live merchant that charges $0.001 and sends it straight back in the same request, so a client can be run end to end for the cost of nothing:

curl -i https://pay.neuronto.com/echo        # a real 402, with real terms

Point any of the clients in client at that URL. The refund is automatic; the gas is not yours.

What you need

  • A wallet address to be paid to. Nothing is installed on your side to receive money: payments arrive as USDC transfers to the address you put in MERCHANT.
  • For a paying client, a funded key. Never put a real key in a file: every example here reads it from the environment.

Licence

Apache-2.0.

الأسئلة الشائعة

ما هو Neuronto Payments: x402 facilitator and API gateway؟

Put any API behind x402 in one call, settle USDC on Base, buy credits, find paid resources

كيف أثبّت Neuronto Payments: x402 facilitator and API gateway؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http neuronto-payments-x402-facilitator-and-a 'https://pay.neuronto.com/mcp'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Neuronto Payments: x402 facilitator and API gateway إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل Neuronto Payments: x402 facilitator and API gateway مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص Apache-2.0.

من يصون Neuronto Payments: x402 facilitator and API gateway؟

ينشره neuronto. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.