PitchHut logo
Monetize APIs with Lightning L402 paywalls and prepaid credits.
Pitch

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.

Description

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.

Hosted Service

For those wishing to start immediately, a hosted beta version is available at satsgate hosted API. Further integration guidance can be found in CUSTOMER_QUICKSTART.md.

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.

Comprehensive API Endpoints

The API encompasses functionality for:

  • Listing prepaid plans
  • Topping up balances
  • Retrieving current credit balances and usage summaries
  • Providing verification processes for customers

For a complete list of endpoints and their usage, see the documentation within the repository.

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.

Conclusion

satsgate delivers a robust solution for implementing a scalable payment system for digital assets, offering usage tracking and reporting that support effective resource management. Ideal for developers and businesses looking to monetize APIs and digital services through satoshis.

0 comments

No comments yet.

Sign in to be the first to comment.