Skip to main content
Accept crypto payments in your Express API with the Armory middleware.

Installation

Quick Start


Accessing Payment Info

The middleware attaches payment information to every request:

Protecting Specific Routes

You can apply the middleware to specific routes only:

Route Configuration

For per-route pricing or requirements, use routeAwarePaymentMiddleware:

Tips

Want to accept payments on Base using USDC? Use token address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 with 6 decimals.
Express middleware runs sequentially — place paymentMiddleware before any routes that require payment protection.

More Information

See @armory-sh/middleware-express for full configuration options.