Plinth
Devnet

Accept x402 payments

Sell API access per request. Receive USDC directly in your wallet.

Not available here

The facilitator is not set up on this site yet (it needs a database).

Register a service

Connect the wallet that gets paid

Sign one message to register your payTo wallet. No funds are transferred.

Registration is closed

This facilitator is not taking new merchants right now.

An https link to your service or its docs. It is shown publicly.
0/280

Registering the same wallet again updates the listing and issues a new key; the old key stops working.

Put a price on a route

official x402 packages

Install @x402/core and @x402/svm with the package for your framework. Prices are USDC in atomic units (6 decimals): 10000 is 0.01 USDC. Keep the key in an environment variable, never in the code.

import express from "express";
import { paymentMiddleware, x402ResourceServer } from "@x402/express";
import { HTTPFacilitatorClient } from "@x402/core/server";
import { ExactSvmScheme } from "@x402/svm/exact/server";

const auth = { Authorization: `Bearer ${process.env.FACILITATOR_KEY}` };
const facilitator = new HTTPFacilitatorClient({
  url: "https://www.plinthcity.com/api/facilitator",
  createAuthHeaders: async () => ({ verify: auth, settle: auth, supported: {} }),
});
const server = new x402ResourceServer(facilitator).register("solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1", new ExactSvmScheme());

const app = express();
app.use(paymentMiddleware({
  "GET /weather": {
    accepts: [{
      scheme: "exact",
      network: "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
      payTo: process.env.PAY_TO, // the wallet you registered
      price: { amount: "10000", asset: "7k8RSp2TLduCfVJKyMsjMWHCoc3cYQQJrJm6pF44B5c7" }, // extra.feePayer is filled in from the facilitator
    }],
    description: "Weather report",
  },
}, server));
app.get("/weather", (req, res) => res.json({ forecast: "sunny" }));
app.listen(4021);

Merchants

0 listed

No merchants yet

Registered services appear here with what they have settled.

Recent settlements

latest 0

Nothing settled yet

Every payment this facilitator settles is listed here with its transaction.