402-announce 1.3.0 → 1.4.1
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.
- package/README.md +14 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,8 @@ Announce HTTP 402 services on Nostr for decentralised discovery. Supports both L
|
|
|
6
6
|
|
|
7
7
|
Publishes **kind 31402** parameterised replaceable events so that AI agents (and any Nostr client) can discover paid APIs without a central registry.
|
|
8
8
|
|
|
9
|
+
**[Live Dashboard](https://discover.trotters.dev)** — see every service announcing on the network right now.
|
|
10
|
+
|
|
9
11
|
## How it works
|
|
10
12
|
|
|
11
13
|
```mermaid
|
|
@@ -41,7 +43,7 @@ const handle = await announceService({
|
|
|
41
43
|
pricing: [
|
|
42
44
|
{ capability: 'get_joke', price: 1, currency: 'sats' },
|
|
43
45
|
],
|
|
44
|
-
paymentMethods: ['bitcoin-lightning-bolt11', 'bitcoin-cashu'],
|
|
46
|
+
paymentMethods: ['bitcoin-lightning-bolt11', 'bitcoin-cashu', 'bitcoin-cashu-xcashu'],
|
|
45
47
|
topics: ['comedy', 'ai'],
|
|
46
48
|
capabilities: [
|
|
47
49
|
{ name: 'get_joke', description: 'Returns a random joke' },
|
|
@@ -199,6 +201,15 @@ graph TB
|
|
|
199
201
|
| `t` | no | Topic tag for search/filtering (repeatable) | `comedy` |
|
|
200
202
|
| `picture` | no | Icon URL | `https://example.com/icon.png` |
|
|
201
203
|
|
|
204
|
+
### Recognised Payment Method Identifiers
|
|
205
|
+
|
|
206
|
+
| Identifier | Description |
|
|
207
|
+
|------------|-------------|
|
|
208
|
+
| `bitcoin-lightning-bolt11` | Lightning Network (BOLT-11 invoices) |
|
|
209
|
+
| `bitcoin-cashu` | Cashu ecash (generic) |
|
|
210
|
+
| `bitcoin-cashu-xcashu` | Cashu ecash via NUT-24 (X-Cashu header) |
|
|
211
|
+
| `x402-evm` | x402 stablecoin payments (EVM chains) |
|
|
212
|
+
|
|
202
213
|
### Content
|
|
203
214
|
|
|
204
215
|
The event content is a JSON object with optional fields:
|
|
@@ -224,8 +235,10 @@ The event content is a JSON object with optional fields:
|
|
|
224
235
|
| Package | Purpose |
|
|
225
236
|
|---------|---------|
|
|
226
237
|
| [toll-booth](https://github.com/TheCryptoDonkey/toll-booth) | L402 middleware — any API becomes a toll booth in minutes |
|
|
238
|
+
| [toll-booth-announce](https://github.com/TheCryptoDonkey/toll-booth-announce) | Bridge — announce toll-booth services with one function call |
|
|
227
239
|
| [satgate](https://github.com/TheCryptoDonkey/satsgate) | Production L402 gateway with Lightning and Cashu support |
|
|
228
240
|
| [402-mcp](https://github.com/TheCryptoDonkey/402-mcp) | MCP server for AI agents to discover, pay, and consume 402 APIs |
|
|
241
|
+
| [Live Dashboard](https://discover.trotters.dev) | See every service announcing on the network |
|
|
229
242
|
|
|
230
243
|
## Licence
|
|
231
244
|
|
package/package.json
CHANGED