x402 payment facilitator for Flow EVM (eip155:747)
x402-flow-facilitator is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on blockchain, eip-1271, eip-3009, eip-712. It currently has 0 GitHub stars and 1 forks, and sits alongside related tools like piprail, x402charity, x402-pay, Sentinel, AgenticCommerce, sdk.
x402 payment facilitator and examples for Flow EVM (eip155:747).
This repo contains:
sequenceDiagram
participant C as Client (payer)
participant S as Resource Server (paywall)
participant F as Facilitator
participant E as Flow EVM (on-chain)
C->>S: 1. GET /weather
S-->>C: 2. 402 + PaymentRequirements
Note over C: Sign payment with<br/>EOA key or COA (EIP-1271)
C->>S: 3. GET /weather + payment signature
S->>F: 4. POST /verify
F-->>S: Payment valid
S-->>C: 5. Weather data + tx receipt
S->>F: 6. POST /settle
F->>E: transferWithAuthorization (stgUSDC)
E-->>F: tx hash
F-->>S: Settlement confirmed
URL: https://facilitator.flowindex.io
| Endpoint | Method | Description |
|---|---|---|
/verify |
POST | Verify a payment signature |
/settle |
POST | Settle payment on-chain |
/supported |
GET | List supported networks |
/health |
GET | Health check |
| Example | Framework | Description |
|---|---|---|
server |
Express | Basic Express resource server |
hono-server |
Hono | Hono resource server |
mcp-server |
MCP + Express | MCP server with paid tools |
nextjs |
Next.js | Full-stack Next.js app with withX402 |
| Example | Library | Description |
|---|---|---|
client |
fetch | Native fetch with @x402/fetch |
axios-client |
axios | Axios with @x402/axios interceptor |
mcp-client |
MCP | MCP client that pays for tool calls |
cd examples/server
npm install
cp .env.example .env
# Edit .env: set PAY_TO_ADDRESS to your wallet
npm start
The server starts at http://localhost:4021 with a paid /weather endpoint ($0.001 per request in stgUSDC on Flow EVM).
cd examples/client
npm install
cp .env.example .env
# Edit .env: set EVM_PRIVATE_KEY (needs stgUSDC on Flow EVM)
npm start
The client automatically handles the 402 payment flow:
/weather → gets 402 + payment requirements| Property | Value |
|---|---|
| Chain ID | 747 |
| CAIP-2 | eip155:747 |
| RPC | https://mainnet.evm.nodes.onflow.org |
| Explorer | https://evm.flow.com |
| Gas | ~16 Gwei |
| Contract | Address |
|---|---|
| stgUSDC (FiatTokenV2_2) | 0xF1815bd50389c46847f0Bda824eC8da914045D14 |
| Permit2 | 0x000000000022D473030F116dDEE9F6B43aC78BA3 |
| x402ExactPermit2Proxy | 0x402085c248EeA27D92E8b30b2C58ed07f9E20001 |
x402 natively supports EIP-1271 smart contract signature verification, so COA (Cadence Owned Account) users can make x402 payments without any special handling.
| Transaction | Description |
|---|---|
setup_x402.cdc |
One-shot: create COA + fund with FLOW + approve Permit2 for stgUSDC |
approve_permit2.cdc |
Approve Permit2 to spend stgUSDC (if COA already exists) |
# One-shot setup: create COA, deposit 1.0 FLOW, approve max stgUSDC for Permit2
flow transactions send cadence/transactions/setup_x402.cdc \
1.0 \
115792089237316195423570985008687907853269984665640564039457584007913129639935 \
--network mainnet --signer mainnet-account
git clone https://github.com/onflow/x402-flow-facilitator.git
cd x402-flow-facilitator
npm install
cp .env.example .env
# Edit .env: set EVM_PRIVATE_KEY (needs FLOW for gas)
npm start
Use this in your resource server to accept payments on Flow EVM:
{
scheme: "exact",
network: "eip155:747",
asset: "0xF1815bd50389c46847f0Bda824eC8da914045D14",
extra: {
name: "Bridged USDC (Stargate)",
version: "2",
},
}
This repo is part of the Flow network, a Layer 1 blockchain built for consumer applications, AI agents, and DeFi at scale.
x402 (HTTP 402 Payment Required) SDK + MCP server: let any API charge for itself and any AI agent pay for itself, USDC & stablecoins across EVM, Solana & 8 more chain families, in a couple of lines. Backendless, no fee, self-custodial, paid straight to your wallet. TypeScript, MIT.
Automatic micro-donations powered by x402. Drop-in Express/Next.js middleware that sends USDC to charities on every user action. npm install x402charity.
Open-source x402 payment processor for AI agents. Sub-400ms settlement on Solana + 7 EVM chains. Let LLMs pay for APIs programmatically with USDC. npm: nory-x402
Enterprise audit, compliance & budget enforcement layer for the x402 payment protocol
x402 payment protocol implementation in .NET - enable AI agents to pay for your APIs with USDC micropayments
TypeScript SDK for Azeth — smart accounts, x402 payments, reputation, and service discovery
Production-ready x402 facilitator server.
Rust SDK for the x402 payment protocol.
Accept payments from AI agents. Open-source. Your data, your domain, your rules. Free forever.
A production-ready payment settlement service for the x402 protocol. Built with Elysia and Node.js, it verifies cryptographic payment signatures and settles transactions on-chain for EVM, SVM (Solana), and Starknet networks.
Golang implementation of an x402 payment facilitator
x402 payment facilitator — verifies and settles EIP-3009 USDC micropayments on Base, Arbitrum, and Ethereum.