About us.
At Mogami, we believe that the future of the internet lies in seamless, frictionless value exchange.
That’s why we build open-source Java tools for x402 — the new protocol powering instant, stablecoin-based payments over HTTP.
Whether you're monetizing APIs, enabling machine-to-machine commerce, or building AI Agent, Mogami delivers the building blocks you need to create fast, and secure payment flows.
Simplify x402 Adoption with intuitive, production-ready Java tools.
Enable Frictionless Monetization to sell and consume services instantly.
Foster an Open x402 Ecosystem by releasing our core tools as open source.
Java client SDK
The Mogami Java Client SDK makes it easy to interact with x402 payment endpoints (get requirements and make payments).
Java server SDK
The Mogami Spring Boot Starter lets you protect any API route with x402 pay-per-call logic using just one annotation.
Facilitator server (Work in progress)
The Mogami Facilitator Server acts as your on-chain payment gateway, verifying and settling x402 transactions in real-time.
Examples
Our usage examples showcase real-world x402 flows (Paywalled endpoints & payments) to help you get started in minutes.
Java client SDK
The Mogami Java Client SDK makes it easy to interact with x402 payment endpoints - from fetching payment requirements to generating and sending signed payloads.
Fetch Payment Requirements
Automatically retrieves the payment details required by an x402-protected endpoint, including the amount, currency, and expiration time.
Generate Signed Payloads
Builds cryptographically signed payloads using your private key, fully compliant with EIP-712 standards for secure and verifiable transactions.
Submit and Handle Transactions
Sends the signed payment to the server and handles the response, including success confirmation, settlement data, or error messages.
Java server SDK
The Mogami Java Server SDK lets you turn any endpoint into a pay-per-call API using the x402 protocol. With just one annotation, you can require stablecoin payments before granting access to your services - no accounts, no subscriptions, no friction. It handles payment verification, expiration, and signatures seamlessly, so you can focus on your business logic.
Pay-Gate Any Endpoint
Secure your API routes with a single annotation. Instantly require payment before granting access to any resource - no custom logic needed.
Verify x402 Payments
Automatically verifies incoming x402 payment payloads, including signature validation, expiration checks, and amount enforcement.
Plug & Play with Spring Boot
Built for seamless integration into Spring Boot apps, the SDK handles configuration, error handling, and response formatting out of the box.
Java facilitator server
The Mogami Facilitator Service is your backend gateway for processing x402 payments on-chain. It verifies and settles transactions, acting as a trusted bridge between clients and smart contracts. Designed for reliability and automation, it powers real-time payment flows between humans, machines, and APIs.
On-Chain Payment Settlement
Executes and confirms stablecoin payments directly on supported blockchains, ensuring secure and final transfers.
Built-in debug console
Monitor incoming requests, view payment logs, and debug transaction flows in real time from a web interface.
Examples
The Mogami usage examples provide ready-to-run code that demonstrates how to integrate x402 payments in real-world scenarios. From securing API endpoints to initiating payments from a client, each example is crafted to be practical, minimal, and easy to adapt. Whether you're building a human-facing app or an AI-driven agent, these examples help you get started in minutes
Client-Side Example Code
Demonstrates how to use the Java client SDK to fetch payment requirements, sign payloads, and interact with x402-protected resources.
Server-Side Example Code
Shows how to secure endpoints with the Spring Boot SDK, verify payments, and return gated content using real-world API patterns.
Still have questions?
We're still in the early stages of building and exploring what x402 can unlock — and we'd love your input. If you're curious, confused, or just want to chat about use cases, feel free to reach out.