x402-express
Express middleware integration for the x402 Payment Protocol. This package allows you to easily add paywall functionality to your Express.js applications using the x402 protocol.Installation
Quick Start
Configuration
ThepaymentMiddleware
function accepts three parameters:
payTo
: Your receiving address (0x${string}
)routes
: Route configurations for protected endpointsfacilitator
: (Optional) Configuration for the x402 facilitator servicepaywall
: (Optional) Configuration for the built-in paywall