Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 942 Bytes

File metadata and controls

14 lines (9 loc) · 942 Bytes

x402-dev-facilitator

Run the x402 facilitator on a custom network.

Built to be used with Tenderly's virtual networks - using testnets sucks!.

To run the facilitator, use go run main.go and set the environment variables in the .env file. Example server can be run with go run examples/server/server.go. Example client can be run with go run examples/client.go or uv run examples/client.py.

#1 extends the x402 protocol with verifiable receipt as an acceptable X-PAYMENT header. This means the client can settle payments, through a facilitator or not, while the server can use a facilitator to abstract blockchain interaction when validating a receipt. This extension will likely be replaced with https://github.com/coinbase/x402/issues/277.

NOTE: This was built to understand x402 and is heavily AI-generated. Do not use any of it in production.