satsgate-sdk 0.10.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ """satsgate-sdk
2
+
3
+ Python client for the satsgate API under model B.
4
+
5
+ - ``create_account`` opens an account. No API key is sent. The ``sg_`` key is returned once.
6
+ - Top up a free amount with ``topup_lightning`` or ``topup_usdc``. The prepaid balance
7
+ is milisatoshis (``balance_msat``). It is not redeemable for sats, USDC, or fiat.
8
+ - A restricted ``sgr_`` key can read the balance. It cannot open an account or top up.
9
+ - The buyer payment still happens on Lightning or USDC. This SDK does not sign and
10
+ does not ask for a seed or a private key.
11
+ - ``SatsgateClient.create_connect_link`` mints a one-time browser link. The URL is not logged.
12
+ - The customer backend submits ``Authorization: L402 ...`` and satsgate verifies it.
13
+ - ``max_uses`` / ``access_seconds`` on a challenge, with ``consume=True``, say what one payment buys.
14
+ - ``paywall_challenge(..., buyer_ip=)`` sends the end buyer's address. The server
15
+ uses it only when the TCP peer is a trusted proxy.
16
+ """
17
+
18
+ from .client import SatsgateClient, SatsgateError, create_account
19
+
20
+ __version__ = "0.10.0"
21
+
22
+ __all__ = ["SatsgateClient", "SatsgateError", "create_account"]