Cross-chain x402 payments

Pay on any chain.
Get paid on any chain.

x402Interop extends upstream x402 with cross-chain payment flows, a facilitator, and a marketplace where buyers discover services and sellers publish endpoints. Cross-chain settlement runs on NEAR Intents.

BuyerPays on the chain it already uses
x402Interop facilitatorQuotes; verifies on EVM; settles via 1Click
NEAR IntentsCross-chain settlement
SellerPaid on the chain it already uses
Buyer → facilitator → NEAR Intents → seller

Two lines to start

Protect a route. Pay from anywhere.

The same x402 flow from both sides. Snippets are taken from the quickstart and the API reference.

@x402interop/servers
import { x402interop } from '@x402interop/servers/express'

app.get(
  '/api/report',
  x402interop({
    facilitator: process.env.FACILITATOR_URL,
    apiKey: process.env.FACILITATOR_API_KEY,
    payTo: process.env.SELLER_ADDRESS,
    network: 'sui:mainnet',
    asset: process.env.SELLER_ASSET,
    price: '0.20',
    amount: '200000',
    deliveryMode: 'on_deposit',
    mintQuotes: true,
    buyerNetwork: 'eip155:8453',
    buyerAsset: 'nep141:base-usdc.omft.near',
  }),
  (req, res) => res.json({ report: '…' }),
)

What it does

An open-source cross-chain facilitator, scheme family, and discovery layer for x402.

  • Pay from anywhere

    Pay on your chain: the buyer signs a gasless payment on its own chain - no bridge, no extra wallet.

  • Get paid on yours

    Settle on your chain: the seller receives an exact amount on its own chain via NEAR Intents.

  • Discover anything

    Find services across chains: one search across federated catalogs, exposed as MCP tools.

  • Fast enough for HTTP

    Tiered delivery keeps the swap off the critical path.

  • Bitcoin included

    BTC holders top up over Lightning and spend as stablecoin.

  • No float

    Facilitator never fronts liquidity: zero facilitator float - the facilitator never fronts its own money.

Supported chains

Day-one chains from the chain reference. Settlement runs on NEAR Intents.

  • Base
  • Arbitrum One
  • Ethereum
  • Optimism
  • Polygon
  • Avalanche C-Chain
  • BNB Smart Chain
  • Berachain
  • Plasma
  • Monad
  • X Layer
  • Scroll
  • Bitcoin
  • Bitcoin Cash
  • Litecoin
  • Dash
  • Zcash
  • Dogecoin
  • Aptos
  • NEAR
  • Solana
  • Stellar
  • Sui
  • TON
  • TRON
  • XRP Ledger
  • Starknet
  • Lightning