x402 facilitator for Solana
pr402 is an early-stage Rust project in the AI payments / x402 ecosystem, focused on agentic-economy, payment, pr402, solana. It currently has 0 GitHub stars and 0 forks, and sits alongside related tools like solana-x402-payment, ag402, Agent402, x402, magpie-x402, AgentFund.
pr402 is the REST-to-Solana gateway for the x402 agentic economy, optimized for serverless environments (Vercel). It translates simple REST API requests from off-chain agents into on-chain instructions for UniversalSettle and SLA-Escrow.
Integrations must use the origin configured for that environment. Confirm the cluster and capability parameters via GET /api/v1/facilitator/health on your host.
| Environment | Primary Origin (Concise) | Alternate Host (Same Service) | OpenAPI Schema |
|---|---|---|---|
| Production | https://ipay.sh |
https://agent.pay402.me |
/openapi.json |
| Preview | https://preview.ipay.sh |
https://preview.agent.pay402.me |
/openapi.json |
All endpoints are detailed in the openapi.json schema. The primary endpoints are:
/capabilities (GET): Returns the facilitator's supported rails, networks, default oracles, and fee rates./payment-required/enrich (POST): Enriches a draft payment required body into an institutional-grade, client-ready 402 template./build-exact-payment-tx (POST): Builds an unsigned VersionedTransaction for the exact rail./build-sla-escrow-payment-tx (POST): Builds an unsigned VersionedTransaction for the sla-escrow rail./verify (POST): Dry-runs payment signature validation./settle (POST): Validates and broadcasts the transaction on-chain, completing settlement.Detailed guides are served directly by the deployments or can be found in the workspace:
npm i @pr402/client or cargo install pr402-client) and refer to the Buyer Quickstart.npx -y @pr402/mcp-server to connect tools directly to LLMs or Cursor.Deployments require the following environment variables:
| Variable | Description |
|---|---|
SOLANA_RPC_URL |
Solana RPC node provider URL. |
SOLANA_CHAIN_ID |
CAIP-2 chain identifier. |
FEE_PAYER_PRIVATE_KEY |
Base58 private key of the facilitator (pays gas for JIT vaults and sweeps). |
UNIVERSALSETTLE_PROGRAM_ID |
Program ID of the UniversalSettle program. |
ESCROW_PROGRAM_ID |
Program ID of the SLA-Escrow program. |
ORACLE_AUTHORITIES |
Comma-separated list of trusted oracle public keys. |
x402 payment on solana
Zero latency! Zero code change! Empower your AI agent with payment ability via x402 protocol! (Openclaw, Claude code, Cursor, Langchain, CrewAI, AutoGen...)
500+ pay-per-call web tools + skill packs for AI agents — every one tested, priced, and settled on-chain. Paid in USDC over x402 on 8 chains, or free via proof-of-work on the pure-CPU tools. Self-hostable, MCP-native, deterministic. Plus the open x402 index (Find / Route / Leaderboard).
x402 Ecosystem Hub: The Solana Agentic Economy
Collateral that can still sell itself — Magpie's x402 agent API: borrow SOL programmatically on Solana.
Fundraising infrastructure for AI agents on Solana — x402 payments, milestone escrow, on-chain reputation. REST + WebSocket + MCP + ACP.
Agent behavior that compiles
An open SDK for agentic payments. Let AI agents make payments, hold funds, and move money across chains with policy enforcement and human approval built in.
x402 payments in Rust: verify, settle, and monitor payments over HTTP 402 flows
The self-improving LLM router that optimize your agentic workflows with every runs, works with any harnesses, any models, any loops.
Production-ready x402 facilitator server.
Rust SDK for the x402 payment protocol.