Skip to main content

Goals

  • Quickly obtain a deployed EIP-7702 recipient address (Seller Address)
  • Use the address in your X402 server and connect to the WTF Facilitator (BSC / USD1)

Steps

  1. Open the platform: app.x402x.ai
  2. Connect your wallet and register as a Seller
  3. Deploy EIP-7702 authorization (the platform injects restricted code into your EOA)
  4. Copy the recipient address (same as your wallet address, but with contract capabilities)
  5. Configure it on the server:

Integration example (Express)

import express from "express";
import { X402Server } from "x402x-server";
import { Facilitator } from "x402x-facilitator";
import { createPublicClient, http } from "viem";
import { bsc } from "viem/chains";

const RECIPIENT_ADDRESS='0xYourSellerAddress';

const app = express();
const client = createPublicClient({ chain: bsc, transport: http() });
const facilitator = new Facilitator({
  recipientAddress: RECIPIENT_ADDRESS
});
const server = new X402Server({ client, facilitator });

app.post("/api/data", async (req, res) => {
  const USD1 = "0x8d0D000Ee44948FC98c9B98A4FA4921476f08B0d";
  const requirements = await server.createRequirements({
    asset: USD1,
    maxAmountRequired: "1000000000000000000",
    description: "Premium API",
  });
  const result = await server.process(req.headers["x-payment"], requirements);
  if (!result.success) return res.status(result.status).json(result.response);
  return res.json({ data: "ok", payer: result.data.payer, txHash: result.data.txHash });
});

FAQs

  • The platform only generates the recipient address and does not custody keys; all settlements are gas-sponsored by the Facilitator
  • The current network is BSC and only supports USD1; other chains/tokens will be added progressively