You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3.Deposit sats by POSTing a TXO URI to `/pay/.deposit`
91
+
1.Get your deposit address: `GET /pay/.address?user=did:nostr:YOUR_PUBKEY`
92
+
2.Send sats to that address from any Bitcoin wallet
93
+
3.Check balance at `/pay/.balance` — deposits are auto-detected
92
94
4. Access paid resources — each request deducts the configured cost
93
-
5. Optionally buy tokens (`/pay/.buy`) or withdraw as portable tokens (`/pay/.withdraw`)
94
-
6. Balance tracked in a [Web Ledger](https://webledgers.org/) at `/.well-known/webledgers/webledgers.json`
95
+
5. Withdraw sats as a portable voucher: `POST /pay/.withdraw-sats`
96
+
6. Optionally buy tokens (`/pay/.buy`) or withdraw as portable tokens (`/pay/.withdraw`)
97
+
7. Balance tracked in a [Web Ledger](https://webledgers.org/) at `/.well-known/webledgers/webledgers.json`
98
+
99
+
Each user gets a unique taproot deposit address derived from the pod's master key + their identity. The pod auto-detects deposits by scanning the mempool API when you check your balance.
curl -X POST -H "Authorization: Nostr <base64-event>" \
112
134
-H "Content-Type: application/json" \
113
135
http://localhost:4443/pay/.buy \
114
-
-d '{"amount": 100}'
136
+
-d '{"amount": 100, "currency": "tbtc4"}'
115
137
116
138
# Withdraw entire balance as portable tokens
117
139
curl -X POST -H "Authorization: Nostr <base64-event>" \
118
140
-H "Content-Type: application/json" \
119
141
http://localhost:4443/pay/.withdraw \
120
-
-d '{"all": true}'
142
+
-d '{"all": true, "currency": "tbtc4"}'
121
143
```
122
144
123
-
Deposit verification uses the mempool API (default: testnet4). The `X-Balance`and `X-Cost` headers are returned on successful paid requests. Buy and withdraw return portable MRC20 proofs with Bitcoin anchor data for independent verification.
145
+
Three deposit methods: (1) send to your per-user address and check balance (auto-detected), (2) TXO voucher URI with private key, (3) claim a txid after sending to the pod's address. The `X-Balance`, `X-Cost`, and `X-Pay-Currency` headers are returned on successful paid requests. Buy and withdraw return portable MRC20 proofs with Bitcoin anchor data for independent verification.
0 commit comments