hono
Functions
createMiddleware()
createMiddleware(Defined in: packages/middleware/src/hono.ts:32 Creates Hono middleware that gates routes behind x402 and MPP payment. The middleware intercepts requests, checks for payment headers, validates and settles payments via x402 or MPP protocol, and only allows the request to proceed if payment is successful.args):Promise<MiddlewareHandler>
Parameters
args
CreateMiddlewareArgs
Configuration including handlers + pricing or facilitator URL
Returns
Promise<MiddlewareHandler>
A Hono middleware handler