Hono middleware integration for x402 Payment Protocol
paymentMiddleware
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