Prism acts as the x402 facilitator — it adds payment enforcement to your HTTP endpoints without you implementing the protocol directly. You configure prices; Prism handles the 402 response, payment verification, and on-chain settlement.Documentation Index
Fetch the complete documentation index at: https://developers.fd.xyz/llms.txt
Use this file to discover all available pages before exploring further.
How It Works
The Prism SDK provides a middleware layer for your server:- A request arrives without a valid payment header
- Middleware returns 402 Payment Required with
x402Version,accepts, andresourcefields - The agent’s wallet pays on-chain and retries with an
X-PAYMENTheader - Prism’s Spectrum layer verifies the on-chain transfer
- If valid, the request proceeds and the transaction hash returns in
X-PAYMENT-RESPONSE
Integration
The middleware is available for TypeScript, Python, and Java frameworks. Configuration is a single block:SDK Overview
Framework guides for TypeScript, Python, and Java
x402 Protocol Concepts
Full x402 breakdown from the merchant/facilitator perspective