Satsgate enables seamless monetization of APIs and web applications using Lightning L402 paywalls. With a simple setup and no need for a payment stack, users can charge in sats while gaining access to detailed usage reporting and forecasting capabilities. Built on FastAPI, it allows for both hosted and self-hosted implementations.
Satsgate is an innovative service designed to facilitate the integration of Lightning paywalls for AI agents, APIs, and web applications, enabling users to charge satoshis (sats) effortlessly, without the complexities of developing a payment infrastructure.
Key Features:
- L402 Paywall Management: Seamlessly implement a Lightning paywall by utilizing two straightforward API calls: /v1/paywall/challenge (to return a 402 status) and /v1/paywall/verify.
- Prepaid Credits: Manage financial transactions with prepaid credit plans, ensuring predictable cost structures where 1 credit equates to 1 successful verification.
- Usage Reporting and Forecasting: Gain insights through detailed usage reports, ledger entries, daily summaries, and forecasts that guide purchasing decisions, ensuring efficient budget management.
- Lightweight Design: Satsgate functions as a cash management system, serving as a turnstile for your agent without placing additional load on LLMs in real-time processing.
This hosted and self-hostable FastAPI service allows users to receive payments directly to their Lightning Address (LNURL-pay), negating the need to manage a node or webhooks, thereby simplifying the payment collection process.
Supported Operational Modes
- Mock Mode for Testing: Easily configure the environment to simulate invoice generation during local development, facilitating smooth testing phases.
- Real Invoice Generation: Utilize your Lightning Address for legitimate transactions, ensuring accurate and reliable payment processing.
For a complete list of endpoints and their usage, see the documentation within the repository: https://github.com/Mike-io-hash/satsgate
SDK Integration
A Python SDK is also provided for integrating with satsgate, allowing for ease of use in your applications. Installation and configuration instructions are outlined within the SDK directory.