Build and deploy a paid API that other agents can pay to use via x402. Use when you or the user want to monetize an API, make money, earn money, offer a service, sell a service to other agents, charge for endpoints, create a paid endpoint, or set up a paid service. Covers "make money by offering an endpoint", "sell a service", "monetize your data", "create a paid API".
The `monetize-service` skill enables developers and organizations to build and deploy paid APIs that can be monetized directly via the x402 payment protocol. This skill addresses the challenge of offering API-based services without requiring users to manage traditional subscriptions, API keys, or accounts. By integrating x402, services can receive payments in USDC on the Base network per individual request, allowing a seamless and automated monetization flow. The skill provides the infrastructure needed for other agents to discover, access, and pay for endpoints effortlessly.
Key features of this skill include setting up an Express server protected by x402 payment middleware, automatically handling payment verification and settlement, and registering services in the x402 Bazaar for discoverability. Developers can define per-route payment requirements, including price, payment scheme, network, and destination wallet address. The middleware enforces payment before processing requests, returning HTTP 402 for unpaid requests. The skill also guides users through initializing a wallet, retrieving the payment address, and configuring the server with x402 facilitators and schemes.
This skill is suitable for developers, businesses, and individuals who want to monetize digital services or data through API endpoints. Typical use cases include creating paid API endpoints for data access, offering premium service features, selling digital services to other agents, or enabling automatic payments from other systems without traditional subscription management. It is particularly useful for those looking to integrate crypto-based payment mechanisms and simplify the monetization of online services.
Begin by confirming that your wallet is initialized and authenticated using `npx [email protected] status`. Then retrieve your payment address with `npx [email protected] address`, set up an Express project with the required x402 packages, and configure the payment middleware.
This skill is designed for JavaScript using the Node.js runtime and the Express framework. It also requires installing the x402-related packages to handle payments and resource server functionality.
The skill supports USDC payments on the Base network. Each request to a protected endpoint is charged individually, and payments are processed automatically via the x402 facilitator.
No. The x402 protocol allows clients to pay per request without requiring traditional accounts, API keys, or subscriptions.
Yes. Once your service is registered with the x402 Bazaar, it is discoverable by other agents who can pay for access automatically.
Quick Setup:
.claude/skills/Repository
coinbase/agentic-wallet-skills