AI agents are increasingly making programmatic requests, but traditional billing (credit cards, OAuth, complex API keys) creates friction for automated microtransactions. With x402-express , you can monetize any Express.js endpoint using HTTP 402 payment requirements on Base in 3 lines of code. 1. Installation bash npm install x402-express 2. Implementation Add the middleware to any route you want to protect: javascript const express = require('express'); ...