@kaleidorg/mind 0.9.0 → 0.10.0
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/dist/guards.d.ts.map +1 -1
- package/dist/guards.js +20 -0
- package/dist/guards.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/kaleidoswap/contract.d.ts +7 -0
- package/dist/kaleidoswap/contract.d.ts.map +1 -1
- package/dist/kaleidoswap/contract.js +71 -17
- package/dist/kaleidoswap/contract.js.map +1 -1
- package/dist/kaleidoswap/index.d.ts +1 -1
- package/dist/kaleidoswap/index.d.ts.map +1 -1
- package/dist/kaleidoswap/index.js +1 -1
- package/dist/kaleidoswap/index.js.map +1 -1
- package/dist/qvac/provider.d.ts.map +1 -1
- package/dist/qvac/provider.js +115 -96
- package/dist/qvac/provider.js.map +1 -1
- package/dist/recipe/asset-send.js +1 -1
- package/dist/recipe/asset-send.js.map +1 -1
- package/dist/testing/mock-wallet.d.ts.map +1 -1
- package/dist/testing/mock-wallet.js +6 -0
- package/dist/testing/mock-wallet.js.map +1 -1
- package/dist/wallet/contract.d.ts +5 -0
- package/dist/wallet/contract.d.ts.map +1 -1
- package/dist/wallet/contract.js +39 -6
- package/dist/wallet/contract.js.map +1 -1
- package/package.json +1 -1
- package/scripts/snapshot-mcp-tools.mjs +38 -0
- package/skills/README.md +98 -64
- package/skills/bitrefill/SKILL.md +30 -157
- package/skills/channel-manager/SKILL.md +31 -52
- package/skills/flashnet-swaps/SKILL.md +24 -150
- package/skills/kaleido-node/SKILL.md +25 -55
- package/skills/kaleido-trading/SKILL.md +28 -172
- package/skills/kaleido-trading/references/assets.md +4 -4
- package/skills/kaleido-trading/references/atomic.md +5 -7
- package/skills/merchant-finder/SKILL.md +25 -108
- package/skills/paid-data/SKILL.md +25 -58
- package/skills/portfolio-manager/SKILL.md +26 -60
- package/skills/rgb-lightning-node/SKILL.md +37 -255
- package/skills/rgb-lightning-node/references/channels.md +34 -0
- package/skills/spark-wallet/SKILL.md +26 -228
- package/skills/submarine-swaps/SKILL.md +19 -37
- package/skills/wallet-assistant/SKILL.md +26 -44
- package/src/funnel.mind.test.ts +6 -5
- package/src/guards.test.ts +12 -0
- package/src/guards.ts +20 -0
- package/src/index.ts +1 -0
- package/src/kaleidoswap/contract.test.ts +32 -3
- package/src/kaleidoswap/contract.ts +65 -17
- package/src/kaleidoswap/index.ts +1 -0
- package/src/qvac/provider.test.ts +17 -0
- package/src/qvac/provider.ts +23 -4
- package/src/recipe/asset-send.ts +1 -1
- package/src/recipe/recipe.test.ts +1 -1
- package/src/skills/catalog.test.ts +215 -0
- package/src/skills/mcp-tools.snapshot.json +1938 -0
- package/src/testing/mock-wallet.ts +6 -0
- package/src/wallet/contract.test.ts +20 -1
- package/src/wallet/contract.ts +36 -6
- package/skills/dca/SKILL.md +0 -48
- package/skills/kaleido-lsps/SKILL.md +0 -131
- package/skills/liquidity-optimizer/SKILL.md +0 -91
|
@@ -0,0 +1,1938 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "kaleido-mcp",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"tools": {
|
|
5
|
+
"get_market_data": {
|
|
6
|
+
"required": [
|
|
7
|
+
"assets"
|
|
8
|
+
],
|
|
9
|
+
"properties": {
|
|
10
|
+
"assets": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"description": ""
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"get_ohlcv": {
|
|
17
|
+
"required": [
|
|
18
|
+
"asset"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"asset": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": ""
|
|
24
|
+
},
|
|
25
|
+
"days": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"description": "Days of candles (default: 1, max: 90)"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"get_price": {
|
|
32
|
+
"required": [
|
|
33
|
+
"asset"
|
|
34
|
+
],
|
|
35
|
+
"properties": {
|
|
36
|
+
"asset": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": ""
|
|
39
|
+
},
|
|
40
|
+
"vs_currency": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "Quote currency (default: usd)"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"get_sentiment": {
|
|
47
|
+
"required": [],
|
|
48
|
+
"properties": {}
|
|
49
|
+
},
|
|
50
|
+
"getAddress": {
|
|
51
|
+
"required": [
|
|
52
|
+
"chain"
|
|
53
|
+
],
|
|
54
|
+
"properties": {
|
|
55
|
+
"chain": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "The blockchain to get the address for"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"getBalance": {
|
|
62
|
+
"required": [
|
|
63
|
+
"chain"
|
|
64
|
+
],
|
|
65
|
+
"properties": {
|
|
66
|
+
"chain": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"description": "The blockchain to get the balance for"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"getCurrentPrice": {
|
|
73
|
+
"required": [
|
|
74
|
+
"base",
|
|
75
|
+
"quote"
|
|
76
|
+
],
|
|
77
|
+
"properties": {
|
|
78
|
+
"base": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"description": "Base currency symbol (e.g., \"BTC\", \"ETH\")"
|
|
81
|
+
},
|
|
82
|
+
"quote": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"description": "Quote currency symbol (e.g., \"USD\", \"USDT\")"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"getFeeRates": {
|
|
89
|
+
"required": [
|
|
90
|
+
"chain"
|
|
91
|
+
],
|
|
92
|
+
"properties": {
|
|
93
|
+
"chain": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"description": "The blockchain to get fee rates for"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"getHistoricalPrice": {
|
|
100
|
+
"required": [
|
|
101
|
+
"from",
|
|
102
|
+
"to"
|
|
103
|
+
],
|
|
104
|
+
"properties": {
|
|
105
|
+
"from": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "Base currency symbol (e.g., \"BTC\", \"ETH\")"
|
|
108
|
+
},
|
|
109
|
+
"to": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "Quote currency symbol (e.g., \"USD\", \"USDT\")"
|
|
112
|
+
},
|
|
113
|
+
"start": {
|
|
114
|
+
"type": "integer",
|
|
115
|
+
"description": "Start timestamp in milliseconds (unix epoch)"
|
|
116
|
+
},
|
|
117
|
+
"end": {
|
|
118
|
+
"type": "integer",
|
|
119
|
+
"description": "End timestamp in milliseconds (unix epoch)"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"getMaxSpendableBtc": {
|
|
124
|
+
"required": [],
|
|
125
|
+
"properties": {}
|
|
126
|
+
},
|
|
127
|
+
"getTokenBalance": {
|
|
128
|
+
"required": [
|
|
129
|
+
"chain",
|
|
130
|
+
"token"
|
|
131
|
+
],
|
|
132
|
+
"properties": {
|
|
133
|
+
"chain": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"description": "The blockchain to check"
|
|
136
|
+
},
|
|
137
|
+
"token": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"description": "Token symbol (e.g., \"USDT\", \"USDC\", \"DAI\")"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"kaleido_node_down": {
|
|
144
|
+
"required": [],
|
|
145
|
+
"properties": {
|
|
146
|
+
"name": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"description": "Environment name."
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"kaleido_node_info": {
|
|
153
|
+
"required": [],
|
|
154
|
+
"properties": {}
|
|
155
|
+
},
|
|
156
|
+
"kaleido_node_init": {
|
|
157
|
+
"required": [
|
|
158
|
+
"password"
|
|
159
|
+
],
|
|
160
|
+
"properties": {
|
|
161
|
+
"password": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"description": "Wallet password to set."
|
|
164
|
+
},
|
|
165
|
+
"mnemonic": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"description": "Optional BIP39 mnemonic to restore from."
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"kaleido_node_list": {
|
|
172
|
+
"required": [],
|
|
173
|
+
"properties": {}
|
|
174
|
+
},
|
|
175
|
+
"kaleido_node_lock": {
|
|
176
|
+
"required": [],
|
|
177
|
+
"properties": {}
|
|
178
|
+
},
|
|
179
|
+
"kaleido_node_ps": {
|
|
180
|
+
"required": [],
|
|
181
|
+
"properties": {
|
|
182
|
+
"name": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"description": "Environment name."
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"kaleido_node_status": {
|
|
189
|
+
"required": [],
|
|
190
|
+
"properties": {}
|
|
191
|
+
},
|
|
192
|
+
"kaleido_node_stop": {
|
|
193
|
+
"required": [],
|
|
194
|
+
"properties": {
|
|
195
|
+
"name": {
|
|
196
|
+
"type": "string",
|
|
197
|
+
"description": "Environment name."
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"kaleido_node_unlock": {
|
|
202
|
+
"required": [
|
|
203
|
+
"password"
|
|
204
|
+
],
|
|
205
|
+
"properties": {
|
|
206
|
+
"password": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"description": "Wallet password."
|
|
209
|
+
},
|
|
210
|
+
"announce_alias": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"description": "Optional Lightning peer alias to announce."
|
|
213
|
+
},
|
|
214
|
+
"announce_address": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"description": "Optional public address for peer discovery (host:port)."
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"kaleido_node_up": {
|
|
221
|
+
"required": [],
|
|
222
|
+
"properties": {
|
|
223
|
+
"name": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"description": "Environment name. Omit to auto-detect if only one exists."
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"kaleido_node_use": {
|
|
230
|
+
"required": [
|
|
231
|
+
"name"
|
|
232
|
+
],
|
|
233
|
+
"properties": {
|
|
234
|
+
"name": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"description": "Environment name."
|
|
237
|
+
},
|
|
238
|
+
"node": {
|
|
239
|
+
"type": "number",
|
|
240
|
+
"description": "1-based node index (default: 1)."
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"kaleidoswap_atomic_execute": {
|
|
245
|
+
"required": [
|
|
246
|
+
"swapstring",
|
|
247
|
+
"taker_pubkey",
|
|
248
|
+
"payment_hash"
|
|
249
|
+
],
|
|
250
|
+
"properties": {
|
|
251
|
+
"swapstring": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"description": ""
|
|
254
|
+
},
|
|
255
|
+
"taker_pubkey": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"description": "Node pubkey from rln_get_node_info"
|
|
258
|
+
},
|
|
259
|
+
"payment_hash": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"description": ""
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"kaleidoswap_atomic_init": {
|
|
266
|
+
"required": [
|
|
267
|
+
"rfq_id",
|
|
268
|
+
"from_asset_id",
|
|
269
|
+
"from_amount_raw",
|
|
270
|
+
"to_asset_id",
|
|
271
|
+
"to_amount_raw"
|
|
272
|
+
],
|
|
273
|
+
"properties": {
|
|
274
|
+
"rfq_id": {
|
|
275
|
+
"type": "string",
|
|
276
|
+
"description": ""
|
|
277
|
+
},
|
|
278
|
+
"from_asset_id": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"description": ""
|
|
281
|
+
},
|
|
282
|
+
"from_amount_raw": {
|
|
283
|
+
"type": "integer",
|
|
284
|
+
"description": "Raw integer units from quote"
|
|
285
|
+
},
|
|
286
|
+
"to_asset_id": {
|
|
287
|
+
"type": "string",
|
|
288
|
+
"description": ""
|
|
289
|
+
},
|
|
290
|
+
"to_amount_raw": {
|
|
291
|
+
"type": "integer",
|
|
292
|
+
"description": "Raw integer units from quote"
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"kaleidoswap_atomic_status": {
|
|
297
|
+
"required": [
|
|
298
|
+
"payment_hash"
|
|
299
|
+
],
|
|
300
|
+
"properties": {
|
|
301
|
+
"payment_hash": {
|
|
302
|
+
"type": "string",
|
|
303
|
+
"description": ""
|
|
304
|
+
},
|
|
305
|
+
"access_token": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"description": "Per-swap token from kaleidoswap_atomic_init; required once the maker enforces it"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"kaleidoswap_get_assets": {
|
|
312
|
+
"required": [],
|
|
313
|
+
"properties": {}
|
|
314
|
+
},
|
|
315
|
+
"kaleidoswap_get_pairs": {
|
|
316
|
+
"required": [],
|
|
317
|
+
"properties": {}
|
|
318
|
+
},
|
|
319
|
+
"kaleidoswap_get_quote": {
|
|
320
|
+
"required": [
|
|
321
|
+
"from_asset_id",
|
|
322
|
+
"to_asset_id"
|
|
323
|
+
],
|
|
324
|
+
"properties": {
|
|
325
|
+
"from_asset_id": {
|
|
326
|
+
"type": "string",
|
|
327
|
+
"description": "Asset to sell — ticker ('BTC') or RGB protocol ID ('rgb:...')"
|
|
328
|
+
},
|
|
329
|
+
"to_asset_id": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"description": "Asset to buy"
|
|
332
|
+
},
|
|
333
|
+
"from_layer": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"description": "Source layer: 'BTC_LN', 'BTC_SPARK', 'RGB_LN'. Optional — derived from the asset when omitted."
|
|
336
|
+
},
|
|
337
|
+
"to_layer": {
|
|
338
|
+
"type": "string",
|
|
339
|
+
"description": "Destination layer: 'RGB_LN', 'BTC_SPARK', 'BTC_LN'. Optional — derived from the asset when omitted."
|
|
340
|
+
},
|
|
341
|
+
"from_amount": {
|
|
342
|
+
"type": "number",
|
|
343
|
+
"description": "Amount to SELL in display units (e.g. 0.001 BTC). Provide either from_amount or to_amount, not both."
|
|
344
|
+
},
|
|
345
|
+
"to_amount": {
|
|
346
|
+
"type": "number",
|
|
347
|
+
"description": "Amount to BUY/receive in display units (e.g. 1.0 USDT). Provide either from_amount or to_amount, not both."
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"kaleidoswap_get_spreads": {
|
|
352
|
+
"required": [
|
|
353
|
+
"from_asset_id",
|
|
354
|
+
"to_asset_id",
|
|
355
|
+
"from_amount"
|
|
356
|
+
],
|
|
357
|
+
"properties": {
|
|
358
|
+
"from_asset_id": {
|
|
359
|
+
"type": "string",
|
|
360
|
+
"description": ""
|
|
361
|
+
},
|
|
362
|
+
"to_asset_id": {
|
|
363
|
+
"type": "string",
|
|
364
|
+
"description": ""
|
|
365
|
+
},
|
|
366
|
+
"from_amount": {
|
|
367
|
+
"type": "number",
|
|
368
|
+
"description": "Amount to sell in display units"
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"kaleidoswap_lsp_create_asset_channel": {
|
|
373
|
+
"required": [
|
|
374
|
+
"asset",
|
|
375
|
+
"asset_amount",
|
|
376
|
+
"rfq_id"
|
|
377
|
+
],
|
|
378
|
+
"properties": {
|
|
379
|
+
"asset": {
|
|
380
|
+
"type": "string",
|
|
381
|
+
"description": "Asset ticker or id (must match the quote)"
|
|
382
|
+
},
|
|
383
|
+
"asset_amount": {
|
|
384
|
+
"type": "number",
|
|
385
|
+
"description": "Asset amount in display units (must match the quote)"
|
|
386
|
+
},
|
|
387
|
+
"rfq_id": {
|
|
388
|
+
"type": "string",
|
|
389
|
+
"description": "The rfq_id from kaleidoswap_lsp_quote_asset_channel (must still be valid)"
|
|
390
|
+
},
|
|
391
|
+
"total_sat": {
|
|
392
|
+
"type": [
|
|
393
|
+
"number",
|
|
394
|
+
"null"
|
|
395
|
+
],
|
|
396
|
+
"description": "Internal: total cost in sats (from the quote). Do not set."
|
|
397
|
+
},
|
|
398
|
+
"btc_amount_sat": {
|
|
399
|
+
"type": [
|
|
400
|
+
"number",
|
|
401
|
+
"null"
|
|
402
|
+
],
|
|
403
|
+
"description": "Internal: asset price in sats (from the quote). Do not set."
|
|
404
|
+
},
|
|
405
|
+
"channel_fee_sat": {
|
|
406
|
+
"type": [
|
|
407
|
+
"number",
|
|
408
|
+
"null"
|
|
409
|
+
],
|
|
410
|
+
"description": "Internal: channel fee in sats (from the quote). Do not set."
|
|
411
|
+
},
|
|
412
|
+
"expires_at": {
|
|
413
|
+
"type": [
|
|
414
|
+
"number",
|
|
415
|
+
"null"
|
|
416
|
+
],
|
|
417
|
+
"description": "Internal: quote expiry unix seconds. Do not set."
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"kaleidoswap_lsp_create_order": {
|
|
422
|
+
"required": [
|
|
423
|
+
"client_pubkey",
|
|
424
|
+
"lsp_balance_sat",
|
|
425
|
+
"client_balance_sat",
|
|
426
|
+
"channel_expiry_blocks"
|
|
427
|
+
],
|
|
428
|
+
"properties": {
|
|
429
|
+
"client_pubkey": {
|
|
430
|
+
"type": "string",
|
|
431
|
+
"description": ""
|
|
432
|
+
},
|
|
433
|
+
"lsp_balance_sat": {
|
|
434
|
+
"type": "integer",
|
|
435
|
+
"description": ""
|
|
436
|
+
},
|
|
437
|
+
"client_balance_sat": {
|
|
438
|
+
"type": "integer",
|
|
439
|
+
"description": ""
|
|
440
|
+
},
|
|
441
|
+
"required_channel_confirmations": {
|
|
442
|
+
"type": "integer",
|
|
443
|
+
"description": "0 for zero-conf (default 0)"
|
|
444
|
+
},
|
|
445
|
+
"funding_confirms_within_blocks": {
|
|
446
|
+
"type": "integer",
|
|
447
|
+
"description": "default 6"
|
|
448
|
+
},
|
|
449
|
+
"channel_expiry_blocks": {
|
|
450
|
+
"type": "integer",
|
|
451
|
+
"description": ""
|
|
452
|
+
},
|
|
453
|
+
"announce_channel": {
|
|
454
|
+
"type": "boolean",
|
|
455
|
+
"description": "default false (private)"
|
|
456
|
+
},
|
|
457
|
+
"asset_id": {
|
|
458
|
+
"type": "string",
|
|
459
|
+
"description": ""
|
|
460
|
+
},
|
|
461
|
+
"lsp_asset_amount": {
|
|
462
|
+
"type": "number",
|
|
463
|
+
"description": ""
|
|
464
|
+
},
|
|
465
|
+
"client_asset_amount": {
|
|
466
|
+
"type": "number",
|
|
467
|
+
"description": ""
|
|
468
|
+
},
|
|
469
|
+
"rfq_id": {
|
|
470
|
+
"type": "string",
|
|
471
|
+
"description": ""
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
"kaleidoswap_lsp_estimate_fees": {
|
|
476
|
+
"required": [
|
|
477
|
+
"lsp_balance_sat",
|
|
478
|
+
"client_balance_sat",
|
|
479
|
+
"channel_expiry_blocks"
|
|
480
|
+
],
|
|
481
|
+
"properties": {
|
|
482
|
+
"client_pubkey": {
|
|
483
|
+
"type": "string",
|
|
484
|
+
"description": ""
|
|
485
|
+
},
|
|
486
|
+
"lsp_balance_sat": {
|
|
487
|
+
"type": "integer",
|
|
488
|
+
"description": ""
|
|
489
|
+
},
|
|
490
|
+
"client_balance_sat": {
|
|
491
|
+
"type": "integer",
|
|
492
|
+
"description": ""
|
|
493
|
+
},
|
|
494
|
+
"channel_expiry_blocks": {
|
|
495
|
+
"type": "integer",
|
|
496
|
+
"description": ""
|
|
497
|
+
},
|
|
498
|
+
"required_channel_confirmations": {
|
|
499
|
+
"type": "integer",
|
|
500
|
+
"description": ""
|
|
501
|
+
},
|
|
502
|
+
"funding_confirms_within_blocks": {
|
|
503
|
+
"type": "integer",
|
|
504
|
+
"description": ""
|
|
505
|
+
},
|
|
506
|
+
"asset_id": {
|
|
507
|
+
"type": "string",
|
|
508
|
+
"description": ""
|
|
509
|
+
},
|
|
510
|
+
"lsp_asset_amount": {
|
|
511
|
+
"type": "number",
|
|
512
|
+
"description": ""
|
|
513
|
+
},
|
|
514
|
+
"rfq_id": {
|
|
515
|
+
"type": "string",
|
|
516
|
+
"description": ""
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
"kaleidoswap_lsp_get_info": {
|
|
521
|
+
"required": [],
|
|
522
|
+
"properties": {}
|
|
523
|
+
},
|
|
524
|
+
"kaleidoswap_lsp_get_order": {
|
|
525
|
+
"required": [
|
|
526
|
+
"order_id"
|
|
527
|
+
],
|
|
528
|
+
"properties": {
|
|
529
|
+
"order_id": {
|
|
530
|
+
"type": "string",
|
|
531
|
+
"description": ""
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
"kaleidoswap_lsp_quote_asset_channel": {
|
|
536
|
+
"required": [
|
|
537
|
+
"asset",
|
|
538
|
+
"asset_amount"
|
|
539
|
+
],
|
|
540
|
+
"properties": {
|
|
541
|
+
"asset": {
|
|
542
|
+
"type": "string",
|
|
543
|
+
"description": "Asset ticker or id, e.g. \"USDT\" or \"XAUT\""
|
|
544
|
+
},
|
|
545
|
+
"asset_amount": {
|
|
546
|
+
"type": "number",
|
|
547
|
+
"description": "Amount of the asset to load into the channel, in display units (e.g. 100)"
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
"kaleidoswap_submarine_create": {
|
|
552
|
+
"required": [
|
|
553
|
+
"invoice"
|
|
554
|
+
],
|
|
555
|
+
"properties": {
|
|
556
|
+
"invoice": {
|
|
557
|
+
"type": "string",
|
|
558
|
+
"description": "BOLT11 Lightning invoice to pay (lnbc…/lntb…/lntbs…/lnbcrt…), with an amount"
|
|
559
|
+
},
|
|
560
|
+
"from_asset": {
|
|
561
|
+
"type": "string",
|
|
562
|
+
"description": "Asset to pay with (default L-USDT)"
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
"kaleidoswap_submarine_fund": {
|
|
567
|
+
"required": [
|
|
568
|
+
"swap_id"
|
|
569
|
+
],
|
|
570
|
+
"properties": {
|
|
571
|
+
"swap_id": {
|
|
572
|
+
"type": "string",
|
|
573
|
+
"description": "Swap id returned by kaleidoswap_submarine_create"
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"kaleidoswap_submarine_pairs": {
|
|
578
|
+
"required": [],
|
|
579
|
+
"properties": {}
|
|
580
|
+
},
|
|
581
|
+
"kaleidoswap_submarine_status": {
|
|
582
|
+
"required": [
|
|
583
|
+
"swap_id"
|
|
584
|
+
],
|
|
585
|
+
"properties": {
|
|
586
|
+
"swap_id": {
|
|
587
|
+
"type": "string",
|
|
588
|
+
"description": "Swap id returned by kaleidoswap_submarine_create"
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
"l402_fetch_resource": {
|
|
593
|
+
"required": [
|
|
594
|
+
"resource_url",
|
|
595
|
+
"token"
|
|
596
|
+
],
|
|
597
|
+
"properties": {
|
|
598
|
+
"resource_url": {
|
|
599
|
+
"type": "string",
|
|
600
|
+
"description": ""
|
|
601
|
+
},
|
|
602
|
+
"token": {
|
|
603
|
+
"type": "string",
|
|
604
|
+
"description": "L402 Bearer token in format \"macaroon:preimage\""
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
"l402_get_market_data": {
|
|
609
|
+
"required": [
|
|
610
|
+
"assets"
|
|
611
|
+
],
|
|
612
|
+
"properties": {
|
|
613
|
+
"assets": {
|
|
614
|
+
"type": "array",
|
|
615
|
+
"description": ""
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
"l402_get_ohlcv": {
|
|
620
|
+
"required": [
|
|
621
|
+
"asset"
|
|
622
|
+
],
|
|
623
|
+
"properties": {
|
|
624
|
+
"asset": {
|
|
625
|
+
"type": "string",
|
|
626
|
+
"description": ""
|
|
627
|
+
},
|
|
628
|
+
"days": {
|
|
629
|
+
"type": "integer",
|
|
630
|
+
"description": "Days of candles (default: 1, max: 90)"
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"l402_get_price": {
|
|
635
|
+
"required": [
|
|
636
|
+
"asset"
|
|
637
|
+
],
|
|
638
|
+
"properties": {
|
|
639
|
+
"asset": {
|
|
640
|
+
"type": "string",
|
|
641
|
+
"description": ""
|
|
642
|
+
},
|
|
643
|
+
"vs_currency": {
|
|
644
|
+
"type": "string",
|
|
645
|
+
"description": "Quote currency (default: usd)"
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"l402_get_sentiment": {
|
|
650
|
+
"required": [],
|
|
651
|
+
"properties": {}
|
|
652
|
+
},
|
|
653
|
+
"l402_request_challenge": {
|
|
654
|
+
"required": [
|
|
655
|
+
"resource_url"
|
|
656
|
+
],
|
|
657
|
+
"properties": {
|
|
658
|
+
"resource_url": {
|
|
659
|
+
"type": "string",
|
|
660
|
+
"description": "URL of the L402-protected resource"
|
|
661
|
+
},
|
|
662
|
+
"price_sats": {
|
|
663
|
+
"type": "integer",
|
|
664
|
+
"description": "Max price in sats willing to pay (default: 10)"
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
"liquid_get_address": {
|
|
669
|
+
"required": [],
|
|
670
|
+
"properties": {}
|
|
671
|
+
},
|
|
672
|
+
"liquid_get_asset_balance": {
|
|
673
|
+
"required": [
|
|
674
|
+
"asset_id"
|
|
675
|
+
],
|
|
676
|
+
"properties": {
|
|
677
|
+
"asset_id": {
|
|
678
|
+
"type": "string",
|
|
679
|
+
"description": "Liquid asset id (64 hex characters)"
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
"liquid_get_balance": {
|
|
684
|
+
"required": [],
|
|
685
|
+
"properties": {}
|
|
686
|
+
},
|
|
687
|
+
"liquid_get_fee_rates": {
|
|
688
|
+
"required": [],
|
|
689
|
+
"properties": {}
|
|
690
|
+
},
|
|
691
|
+
"liquid_get_node_info": {
|
|
692
|
+
"required": [],
|
|
693
|
+
"properties": {}
|
|
694
|
+
},
|
|
695
|
+
"liquid_list_assets": {
|
|
696
|
+
"required": [],
|
|
697
|
+
"properties": {}
|
|
698
|
+
},
|
|
699
|
+
"liquid_list_transactions": {
|
|
700
|
+
"required": [],
|
|
701
|
+
"properties": {}
|
|
702
|
+
},
|
|
703
|
+
"liquid_list_unspents": {
|
|
704
|
+
"required": [],
|
|
705
|
+
"properties": {}
|
|
706
|
+
},
|
|
707
|
+
"liquid_send_asset": {
|
|
708
|
+
"required": [
|
|
709
|
+
"asset_id",
|
|
710
|
+
"recipient",
|
|
711
|
+
"amount"
|
|
712
|
+
],
|
|
713
|
+
"properties": {
|
|
714
|
+
"asset_id": {
|
|
715
|
+
"type": "string",
|
|
716
|
+
"description": "Liquid asset id (64 hex characters)"
|
|
717
|
+
},
|
|
718
|
+
"recipient": {
|
|
719
|
+
"type": "string",
|
|
720
|
+
"description": "Liquid confidential (CT) destination address"
|
|
721
|
+
},
|
|
722
|
+
"amount": {
|
|
723
|
+
"type": "integer",
|
|
724
|
+
"description": "Amount to send, in the asset smallest unit"
|
|
725
|
+
},
|
|
726
|
+
"fee_rate": {
|
|
727
|
+
"type": "number",
|
|
728
|
+
"description": "Fee rate in sat/vB (default: network minimum)"
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
"liquid_send_btc": {
|
|
733
|
+
"required": [
|
|
734
|
+
"recipient",
|
|
735
|
+
"amount_sats"
|
|
736
|
+
],
|
|
737
|
+
"properties": {
|
|
738
|
+
"recipient": {
|
|
739
|
+
"type": "string",
|
|
740
|
+
"description": "Liquid confidential (CT) destination address"
|
|
741
|
+
},
|
|
742
|
+
"amount_sats": {
|
|
743
|
+
"type": "integer",
|
|
744
|
+
"description": "Amount to send, in satoshis"
|
|
745
|
+
},
|
|
746
|
+
"fee_rate": {
|
|
747
|
+
"type": "number",
|
|
748
|
+
"description": "Fee rate in sat/vB (default: network minimum)"
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
"mpp_parse_challenge_header": {
|
|
753
|
+
"required": [
|
|
754
|
+
"url",
|
|
755
|
+
"www_authenticate"
|
|
756
|
+
],
|
|
757
|
+
"properties": {
|
|
758
|
+
"url": {
|
|
759
|
+
"type": "string",
|
|
760
|
+
"description": "URL that issued the 402"
|
|
761
|
+
},
|
|
762
|
+
"www_authenticate": {
|
|
763
|
+
"type": "string",
|
|
764
|
+
"description": "Raw value of the WWW-Authenticate header"
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
"mpp_request_challenge": {
|
|
769
|
+
"required": [
|
|
770
|
+
"url"
|
|
771
|
+
],
|
|
772
|
+
"properties": {
|
|
773
|
+
"url": {
|
|
774
|
+
"type": "string",
|
|
775
|
+
"description": "URL of the MPP-protected resource"
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
"mpp_submit_credential": {
|
|
780
|
+
"required": [
|
|
781
|
+
"url",
|
|
782
|
+
"credential"
|
|
783
|
+
],
|
|
784
|
+
"properties": {
|
|
785
|
+
"url": {
|
|
786
|
+
"type": "string",
|
|
787
|
+
"description": "Same URL used in mpp_request_challenge"
|
|
788
|
+
},
|
|
789
|
+
"credential": {
|
|
790
|
+
"type": "string",
|
|
791
|
+
"description": "Credential JSON string from rln_mpp_pay or spark_mpp_pay"
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
"quoteSendTransaction": {
|
|
796
|
+
"required": [
|
|
797
|
+
"chain",
|
|
798
|
+
"to",
|
|
799
|
+
"value"
|
|
800
|
+
],
|
|
801
|
+
"properties": {
|
|
802
|
+
"chain": {
|
|
803
|
+
"type": "string",
|
|
804
|
+
"description": "The blockchain to quote on"
|
|
805
|
+
},
|
|
806
|
+
"to": {
|
|
807
|
+
"type": "string",
|
|
808
|
+
"description": "The recipient address"
|
|
809
|
+
},
|
|
810
|
+
"value": {
|
|
811
|
+
"type": "string",
|
|
812
|
+
"description": "The amount to send in base unit (satoshis for Bitcoin, wei for Ethereum, etc.)"
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
"quoteTransfer": {
|
|
817
|
+
"required": [
|
|
818
|
+
"chain",
|
|
819
|
+
"token",
|
|
820
|
+
"recipient",
|
|
821
|
+
"amount"
|
|
822
|
+
],
|
|
823
|
+
"properties": {
|
|
824
|
+
"chain": {
|
|
825
|
+
"type": "string",
|
|
826
|
+
"description": "The blockchain to quote on"
|
|
827
|
+
},
|
|
828
|
+
"token": {
|
|
829
|
+
"type": "string",
|
|
830
|
+
"description": "Token symbol (e.g., \"USDT\", \"USDC\", \"DAI\")"
|
|
831
|
+
},
|
|
832
|
+
"recipient": {
|
|
833
|
+
"type": "string",
|
|
834
|
+
"description": "The recipient address"
|
|
835
|
+
},
|
|
836
|
+
"amount": {
|
|
837
|
+
"type": "string",
|
|
838
|
+
"description": "The amount to transfer in human-readable format (e.g., \"10\" or \"0.5\")"
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
},
|
|
842
|
+
"rln_atomic_taker": {
|
|
843
|
+
"required": [
|
|
844
|
+
"swapstring"
|
|
845
|
+
],
|
|
846
|
+
"properties": {
|
|
847
|
+
"swapstring": {
|
|
848
|
+
"type": "string",
|
|
849
|
+
"description": "Swapstring from kaleidoswap_atomic_init"
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
"rln_close_channel": {
|
|
854
|
+
"required": [
|
|
855
|
+
"channel_id",
|
|
856
|
+
"peer_pubkey"
|
|
857
|
+
],
|
|
858
|
+
"properties": {
|
|
859
|
+
"channel_id": {
|
|
860
|
+
"type": "string",
|
|
861
|
+
"description": "Channel ID from rln_list_channels"
|
|
862
|
+
},
|
|
863
|
+
"peer_pubkey": {
|
|
864
|
+
"type": "string",
|
|
865
|
+
"description": "Peer pubkey from rln_list_channels"
|
|
866
|
+
},
|
|
867
|
+
"force": {
|
|
868
|
+
"type": "boolean",
|
|
869
|
+
"description": "Force close (unilateral). Default: false (cooperative close)"
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
"rln_connect_peer": {
|
|
874
|
+
"required": [
|
|
875
|
+
"peer_pubkey_and_addr"
|
|
876
|
+
],
|
|
877
|
+
"properties": {
|
|
878
|
+
"peer_pubkey_and_addr": {
|
|
879
|
+
"type": "string",
|
|
880
|
+
"description": "pubkey@host:port"
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
"rln_create_ln_invoice": {
|
|
885
|
+
"required": [],
|
|
886
|
+
"properties": {
|
|
887
|
+
"amount_sats": {
|
|
888
|
+
"type": "integer",
|
|
889
|
+
"description": "Amount in satoshis. Omit for any-amount."
|
|
890
|
+
},
|
|
891
|
+
"amount_msat": {
|
|
892
|
+
"type": "integer",
|
|
893
|
+
"description": "Amount in millisatoshis, instead of amount_sats"
|
|
894
|
+
},
|
|
895
|
+
"description": {
|
|
896
|
+
"type": "string",
|
|
897
|
+
"description": ""
|
|
898
|
+
},
|
|
899
|
+
"expiry_sec": {
|
|
900
|
+
"type": "integer",
|
|
901
|
+
"description": "Expiry in seconds (default: 3600)"
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
"rln_create_rgb_invoice": {
|
|
906
|
+
"required": [],
|
|
907
|
+
"properties": {
|
|
908
|
+
"asset_id": {
|
|
909
|
+
"type": "string",
|
|
910
|
+
"description": "RGB asset ID. Omit for any asset."
|
|
911
|
+
},
|
|
912
|
+
"amount": {
|
|
913
|
+
"type": "number",
|
|
914
|
+
"description": "Expected amount in display units (e.g. 65.5 for 65.5 USDT)"
|
|
915
|
+
},
|
|
916
|
+
"duration_seconds": {
|
|
917
|
+
"type": "integer",
|
|
918
|
+
"description": "Invoice expiry (default: 86400 = 24h)"
|
|
919
|
+
},
|
|
920
|
+
"transport_endpoints": {
|
|
921
|
+
"type": "array",
|
|
922
|
+
"description": "RGB proxy endpoints the payer posts the consignment to. Defaults to the network RGB proxy (RGB_PROXY_ENDPOINT)."
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
},
|
|
926
|
+
"rln_create_utxos": {
|
|
927
|
+
"required": [],
|
|
928
|
+
"properties": {
|
|
929
|
+
"num": {
|
|
930
|
+
"type": "integer",
|
|
931
|
+
"description": "Number of UTXOs to create (default: node decides, typically 5)"
|
|
932
|
+
},
|
|
933
|
+
"size": {
|
|
934
|
+
"type": "integer",
|
|
935
|
+
"description": "Size of each UTXO in sats (default: node decides)"
|
|
936
|
+
},
|
|
937
|
+
"up_to": {
|
|
938
|
+
"type": "boolean",
|
|
939
|
+
"description": "If true, only create enough UTXOs to reach `num` free ones (default: false)"
|
|
940
|
+
},
|
|
941
|
+
"fee_rate": {
|
|
942
|
+
"type": "number",
|
|
943
|
+
"description": "On-chain fee rate in sat/vbyte (default: 1)"
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"rln_get_address": {
|
|
948
|
+
"required": [],
|
|
949
|
+
"properties": {}
|
|
950
|
+
},
|
|
951
|
+
"rln_get_asset_balance": {
|
|
952
|
+
"required": [
|
|
953
|
+
"asset_id"
|
|
954
|
+
],
|
|
955
|
+
"properties": {
|
|
956
|
+
"asset_id": {
|
|
957
|
+
"type": "string",
|
|
958
|
+
"description": "RGB asset ID e.g. 'rgb:2JEUOrsc-...'"
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
"rln_get_balances": {
|
|
963
|
+
"required": [],
|
|
964
|
+
"properties": {
|
|
965
|
+
"skip_sync": {
|
|
966
|
+
"type": "boolean",
|
|
967
|
+
"description": "Skip blockchain sync for faster response (default: false)"
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
},
|
|
971
|
+
"rln_get_channel_id": {
|
|
972
|
+
"required": [
|
|
973
|
+
"temporary_channel_id"
|
|
974
|
+
],
|
|
975
|
+
"properties": {
|
|
976
|
+
"temporary_channel_id": {
|
|
977
|
+
"type": "string",
|
|
978
|
+
"description": "Temporary channel ID from rln_open_channel"
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
"rln_get_node_info": {
|
|
983
|
+
"required": [],
|
|
984
|
+
"properties": {}
|
|
985
|
+
},
|
|
986
|
+
"rln_get_swap": {
|
|
987
|
+
"required": [
|
|
988
|
+
"payment_hash"
|
|
989
|
+
],
|
|
990
|
+
"properties": {
|
|
991
|
+
"payment_hash": {
|
|
992
|
+
"type": "string",
|
|
993
|
+
"description": "Payment hash from kaleidoswap_atomic_init"
|
|
994
|
+
},
|
|
995
|
+
"taker": {
|
|
996
|
+
"type": "boolean",
|
|
997
|
+
"description": "Filter for taker-side swap"
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
"rln_issue_asset": {
|
|
1002
|
+
"required": [
|
|
1003
|
+
"name"
|
|
1004
|
+
],
|
|
1005
|
+
"properties": {
|
|
1006
|
+
"schema": {
|
|
1007
|
+
"type": "string",
|
|
1008
|
+
"description": "Asset schema (default: NIA)"
|
|
1009
|
+
},
|
|
1010
|
+
"name": {
|
|
1011
|
+
"type": "string",
|
|
1012
|
+
"description": "Asset name, e.g. \"Hackathon Ticket\""
|
|
1013
|
+
},
|
|
1014
|
+
"ticker": {
|
|
1015
|
+
"type": "string",
|
|
1016
|
+
"description": "Uppercase ticker, e.g. \"TICKET\". Required for NIA and UDA, ignored for CFA."
|
|
1017
|
+
},
|
|
1018
|
+
"amount": {
|
|
1019
|
+
"type": "number",
|
|
1020
|
+
"description": "Total supply in display units (e.g. 1000). Required for NIA and CFA; UDA always has supply 1."
|
|
1021
|
+
},
|
|
1022
|
+
"precision": {
|
|
1023
|
+
"type": "integer",
|
|
1024
|
+
"description": "Decimal places (default: 0). Raw supply = amount × 10^precision."
|
|
1025
|
+
},
|
|
1026
|
+
"details": {
|
|
1027
|
+
"type": "string",
|
|
1028
|
+
"description": "Optional free-text description (CFA and UDA only)"
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
"rln_list_assets": {
|
|
1033
|
+
"required": [],
|
|
1034
|
+
"properties": {
|
|
1035
|
+
"schemas": {
|
|
1036
|
+
"type": "array",
|
|
1037
|
+
"description": ""
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
"rln_list_channels": {
|
|
1042
|
+
"required": [],
|
|
1043
|
+
"properties": {
|
|
1044
|
+
"usable_only": {
|
|
1045
|
+
"type": "boolean",
|
|
1046
|
+
"description": "Return only usable channels (default: false)"
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
},
|
|
1050
|
+
"rln_list_payments": {
|
|
1051
|
+
"required": [],
|
|
1052
|
+
"properties": {
|
|
1053
|
+
"limit": {
|
|
1054
|
+
"type": "integer",
|
|
1055
|
+
"description": "Max payments to return (default: 20)"
|
|
1056
|
+
},
|
|
1057
|
+
"inbound_only": {
|
|
1058
|
+
"type": "boolean",
|
|
1059
|
+
"description": ""
|
|
1060
|
+
},
|
|
1061
|
+
"outbound_only": {
|
|
1062
|
+
"type": "boolean",
|
|
1063
|
+
"description": ""
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
},
|
|
1067
|
+
"rln_list_swaps": {
|
|
1068
|
+
"required": [],
|
|
1069
|
+
"properties": {}
|
|
1070
|
+
},
|
|
1071
|
+
"rln_list_transfers": {
|
|
1072
|
+
"required": [
|
|
1073
|
+
"asset_id"
|
|
1074
|
+
],
|
|
1075
|
+
"properties": {
|
|
1076
|
+
"asset_id": {
|
|
1077
|
+
"type": "string",
|
|
1078
|
+
"description": "RGB asset ID"
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
},
|
|
1082
|
+
"rln_mpp_pay": {
|
|
1083
|
+
"required": [
|
|
1084
|
+
"invoice"
|
|
1085
|
+
],
|
|
1086
|
+
"properties": {
|
|
1087
|
+
"invoice": {
|
|
1088
|
+
"type": "string",
|
|
1089
|
+
"description": "BOLT11 invoice from mpp_request_challenge"
|
|
1090
|
+
},
|
|
1091
|
+
"challenge_id": {
|
|
1092
|
+
"type": "string",
|
|
1093
|
+
"description": "MPP challenge_id"
|
|
1094
|
+
},
|
|
1095
|
+
"macaroon": {
|
|
1096
|
+
"type": "string",
|
|
1097
|
+
"description": "Macaroon for L402-compatible servers"
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
"rln_open_channel": {
|
|
1102
|
+
"required": [
|
|
1103
|
+
"peer_pubkey_and_addr",
|
|
1104
|
+
"capacity_sat"
|
|
1105
|
+
],
|
|
1106
|
+
"properties": {
|
|
1107
|
+
"peer_pubkey_and_addr": {
|
|
1108
|
+
"type": "string",
|
|
1109
|
+
"description": "pubkey@host:port"
|
|
1110
|
+
},
|
|
1111
|
+
"capacity_sat": {
|
|
1112
|
+
"type": "integer",
|
|
1113
|
+
"description": "Channel capacity in satoshis"
|
|
1114
|
+
},
|
|
1115
|
+
"push_msat": {
|
|
1116
|
+
"type": "integer",
|
|
1117
|
+
"description": "Millisatoshis to push to remote (default: 0)"
|
|
1118
|
+
},
|
|
1119
|
+
"asset_id": {
|
|
1120
|
+
"type": "string",
|
|
1121
|
+
"description": "RGB asset ID to allocate"
|
|
1122
|
+
},
|
|
1123
|
+
"asset_amount": {
|
|
1124
|
+
"type": "number",
|
|
1125
|
+
"description": "Amount of RGB asset to allocate"
|
|
1126
|
+
},
|
|
1127
|
+
"is_public": {
|
|
1128
|
+
"type": "boolean",
|
|
1129
|
+
"description": "Announce channel publicly (default: false)"
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
1133
|
+
"rln_pay_invoice": {
|
|
1134
|
+
"required": [
|
|
1135
|
+
"invoice"
|
|
1136
|
+
],
|
|
1137
|
+
"properties": {
|
|
1138
|
+
"invoice": {
|
|
1139
|
+
"type": "string",
|
|
1140
|
+
"description": "BOLT11 invoice string (lnbc... or lntb...)"
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
"rln_refresh_transfers": {
|
|
1145
|
+
"required": [],
|
|
1146
|
+
"properties": {
|
|
1147
|
+
"skip_sync": {
|
|
1148
|
+
"type": "boolean",
|
|
1149
|
+
"description": ""
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
},
|
|
1153
|
+
"rln_send_asset": {
|
|
1154
|
+
"required": [
|
|
1155
|
+
"asset_id",
|
|
1156
|
+
"recipient_id",
|
|
1157
|
+
"amount"
|
|
1158
|
+
],
|
|
1159
|
+
"properties": {
|
|
1160
|
+
"asset_id": {
|
|
1161
|
+
"type": "string",
|
|
1162
|
+
"description": "RGB asset ID"
|
|
1163
|
+
},
|
|
1164
|
+
"recipient_id": {
|
|
1165
|
+
"type": "string",
|
|
1166
|
+
"description": "Recipient identifier from an RGB invoice"
|
|
1167
|
+
},
|
|
1168
|
+
"amount": {
|
|
1169
|
+
"type": "number",
|
|
1170
|
+
"description": "Amount in display units (e.g. 65.5 for USDT)"
|
|
1171
|
+
},
|
|
1172
|
+
"transport_endpoints": {
|
|
1173
|
+
"type": "array",
|
|
1174
|
+
"description": "RGB proxy endpoints from the receiver invoice. Defaults to the network RGB proxy (RGB_PROXY_ENDPOINT)."
|
|
1175
|
+
},
|
|
1176
|
+
"fee_rate": {
|
|
1177
|
+
"type": "number",
|
|
1178
|
+
"description": ""
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
"rln_send_btc": {
|
|
1183
|
+
"required": [
|
|
1184
|
+
"address",
|
|
1185
|
+
"amount_sat"
|
|
1186
|
+
],
|
|
1187
|
+
"properties": {
|
|
1188
|
+
"address": {
|
|
1189
|
+
"type": "string",
|
|
1190
|
+
"description": "Destination Bitcoin address"
|
|
1191
|
+
},
|
|
1192
|
+
"amount_sat": {
|
|
1193
|
+
"type": "integer",
|
|
1194
|
+
"description": "Amount in satoshis"
|
|
1195
|
+
},
|
|
1196
|
+
"fee_rate": {
|
|
1197
|
+
"type": "number",
|
|
1198
|
+
"description": "Fee rate in sat/vbyte (default: 3)"
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
"search_paid_apis": {
|
|
1203
|
+
"required": [],
|
|
1204
|
+
"properties": {
|
|
1205
|
+
"query": {
|
|
1206
|
+
"type": "string",
|
|
1207
|
+
"description": "Search keyword (e.g. \"bitcoin price\", \"on-chain analytics\", \"sentiment\")"
|
|
1208
|
+
},
|
|
1209
|
+
"protocol": {
|
|
1210
|
+
"type": "string",
|
|
1211
|
+
"description": "L402=Lightning, MPP=Stripe/Tempo, x402=Base/Solana"
|
|
1212
|
+
},
|
|
1213
|
+
"category": {
|
|
1214
|
+
"type": "string",
|
|
1215
|
+
"description": "Category filter (e.g. \"finance\", \"crypto\", \"ai\", \"data\")"
|
|
1216
|
+
},
|
|
1217
|
+
"health": {
|
|
1218
|
+
"type": "string",
|
|
1219
|
+
"description": ""
|
|
1220
|
+
},
|
|
1221
|
+
"limit": {
|
|
1222
|
+
"type": "integer",
|
|
1223
|
+
"description": "Max results (default: 10)"
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1227
|
+
"sendTransaction": {
|
|
1228
|
+
"required": [
|
|
1229
|
+
"chain",
|
|
1230
|
+
"to",
|
|
1231
|
+
"value"
|
|
1232
|
+
],
|
|
1233
|
+
"properties": {
|
|
1234
|
+
"chain": {
|
|
1235
|
+
"type": "string",
|
|
1236
|
+
"description": "The blockchain to send on"
|
|
1237
|
+
},
|
|
1238
|
+
"to": {
|
|
1239
|
+
"type": "string",
|
|
1240
|
+
"description": "The recipient address"
|
|
1241
|
+
},
|
|
1242
|
+
"value": {
|
|
1243
|
+
"type": "string",
|
|
1244
|
+
"description": "The amount to send in base unit (satoshis for Bitcoin, wei for Ethereum, etc.)"
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
"sign": {
|
|
1249
|
+
"required": [
|
|
1250
|
+
"chain",
|
|
1251
|
+
"message"
|
|
1252
|
+
],
|
|
1253
|
+
"properties": {
|
|
1254
|
+
"chain": {
|
|
1255
|
+
"type": "string",
|
|
1256
|
+
"description": "The blockchain to use for signing"
|
|
1257
|
+
},
|
|
1258
|
+
"message": {
|
|
1259
|
+
"type": "string",
|
|
1260
|
+
"description": "The message to sign"
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
"spark_create_lightning_invoice": {
|
|
1265
|
+
"required": [],
|
|
1266
|
+
"properties": {
|
|
1267
|
+
"amount_sats": {
|
|
1268
|
+
"type": "integer",
|
|
1269
|
+
"description": "Amount in satoshis to receive. Omit for any-amount invoice."
|
|
1270
|
+
},
|
|
1271
|
+
"memo": {
|
|
1272
|
+
"type": "string",
|
|
1273
|
+
"description": "Invoice description"
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
"spark_create_sats_invoice": {
|
|
1278
|
+
"required": [],
|
|
1279
|
+
"properties": {
|
|
1280
|
+
"amount_sats": {
|
|
1281
|
+
"type": "integer",
|
|
1282
|
+
"description": "Amount in satoshis to receive. Omit for open (any-amount) invoice."
|
|
1283
|
+
},
|
|
1284
|
+
"amount": {
|
|
1285
|
+
"type": "integer",
|
|
1286
|
+
"description": "Alias of amount_sats"
|
|
1287
|
+
},
|
|
1288
|
+
"memo": {
|
|
1289
|
+
"type": "string",
|
|
1290
|
+
"description": "Optional description"
|
|
1291
|
+
},
|
|
1292
|
+
"sender_spark_address": {
|
|
1293
|
+
"type": "string",
|
|
1294
|
+
"description": "Optional Spark address of the expected sender (restricts who can pay)"
|
|
1295
|
+
},
|
|
1296
|
+
"expiry_minutes": {
|
|
1297
|
+
"type": "number",
|
|
1298
|
+
"description": "Optional expiry in minutes from now"
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
},
|
|
1302
|
+
"spark_create_tokens_invoice": {
|
|
1303
|
+
"required": [],
|
|
1304
|
+
"properties": {
|
|
1305
|
+
"token": {
|
|
1306
|
+
"type": "string",
|
|
1307
|
+
"description": "Spark token identifier (btkn1...). Omit to use configured USDT token."
|
|
1308
|
+
},
|
|
1309
|
+
"amount": {
|
|
1310
|
+
"type": "string",
|
|
1311
|
+
"description": "Amount in base token units as a string integer (e.g. \"1000000\" for 1 USDT). Omit for open invoice."
|
|
1312
|
+
},
|
|
1313
|
+
"memo": {
|
|
1314
|
+
"type": "string",
|
|
1315
|
+
"description": "Optional description"
|
|
1316
|
+
},
|
|
1317
|
+
"sender_spark_address": {
|
|
1318
|
+
"type": "string",
|
|
1319
|
+
"description": "Optional Spark address of the expected sender (restricts who can pay)"
|
|
1320
|
+
},
|
|
1321
|
+
"expiry_minutes": {
|
|
1322
|
+
"type": "number",
|
|
1323
|
+
"description": "Optional expiry in minutes from now"
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
},
|
|
1327
|
+
"spark_get_address": {
|
|
1328
|
+
"required": [],
|
|
1329
|
+
"properties": {}
|
|
1330
|
+
},
|
|
1331
|
+
"spark_get_balance": {
|
|
1332
|
+
"required": [],
|
|
1333
|
+
"properties": {}
|
|
1334
|
+
},
|
|
1335
|
+
"spark_get_deposit_address": {
|
|
1336
|
+
"required": [],
|
|
1337
|
+
"properties": {
|
|
1338
|
+
"reusable": {
|
|
1339
|
+
"type": "boolean",
|
|
1340
|
+
"description": "Return a static reusable address (default: false = single-use)"
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
},
|
|
1344
|
+
"spark_get_invoices": {
|
|
1345
|
+
"required": [
|
|
1346
|
+
"invoices"
|
|
1347
|
+
],
|
|
1348
|
+
"properties": {
|
|
1349
|
+
"invoices": {
|
|
1350
|
+
"type": "array",
|
|
1351
|
+
"description": "List of Spark invoice strings to query"
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
},
|
|
1355
|
+
"spark_get_spark_invoices": {
|
|
1356
|
+
"required": [
|
|
1357
|
+
"invoices"
|
|
1358
|
+
],
|
|
1359
|
+
"properties": {
|
|
1360
|
+
"invoices": {
|
|
1361
|
+
"type": "array",
|
|
1362
|
+
"description": "List of Spark invoice strings to query"
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
},
|
|
1366
|
+
"spark_get_token_balance": {
|
|
1367
|
+
"required": [],
|
|
1368
|
+
"properties": {
|
|
1369
|
+
"token": {
|
|
1370
|
+
"type": "string",
|
|
1371
|
+
"description": "Spark token identifier (e.g. btkn1...). Omit to use the configured USDT token."
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
},
|
|
1375
|
+
"spark_get_transfers": {
|
|
1376
|
+
"required": [],
|
|
1377
|
+
"properties": {
|
|
1378
|
+
"direction": {
|
|
1379
|
+
"type": "string",
|
|
1380
|
+
"description": "Direction filter (default: 'all')"
|
|
1381
|
+
},
|
|
1382
|
+
"limit": {
|
|
1383
|
+
"type": "integer",
|
|
1384
|
+
"description": "Max results (default: 20)"
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
"spark_mpp_pay": {
|
|
1389
|
+
"required": [
|
|
1390
|
+
"invoice"
|
|
1391
|
+
],
|
|
1392
|
+
"properties": {
|
|
1393
|
+
"invoice": {
|
|
1394
|
+
"type": "string",
|
|
1395
|
+
"description": "BOLT11 invoice from mpp_request_challenge"
|
|
1396
|
+
},
|
|
1397
|
+
"challenge_id": {
|
|
1398
|
+
"type": "string",
|
|
1399
|
+
"description": "MPP challenge_id"
|
|
1400
|
+
},
|
|
1401
|
+
"macaroon": {
|
|
1402
|
+
"type": "string",
|
|
1403
|
+
"description": "Macaroon for L402-compatible servers"
|
|
1404
|
+
},
|
|
1405
|
+
"max_fee_sats": {
|
|
1406
|
+
"type": "integer",
|
|
1407
|
+
"description": ""
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1411
|
+
"spark_pay_invoice": {
|
|
1412
|
+
"required": [
|
|
1413
|
+
"invoices"
|
|
1414
|
+
],
|
|
1415
|
+
"properties": {
|
|
1416
|
+
"invoices": {
|
|
1417
|
+
"type": "array",
|
|
1418
|
+
"description": "List of Spark invoices to pay"
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
"spark_pay_lightning_invoice": {
|
|
1423
|
+
"required": [
|
|
1424
|
+
"invoice"
|
|
1425
|
+
],
|
|
1426
|
+
"properties": {
|
|
1427
|
+
"invoice": {
|
|
1428
|
+
"type": "string",
|
|
1429
|
+
"description": "BOLT11 invoice (lnbc... or lntb...)"
|
|
1430
|
+
},
|
|
1431
|
+
"max_fee_sats": {
|
|
1432
|
+
"type": "integer",
|
|
1433
|
+
"description": "Maximum fee in satoshis"
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
},
|
|
1437
|
+
"spark_pay_spark_invoice": {
|
|
1438
|
+
"required": [
|
|
1439
|
+
"invoices"
|
|
1440
|
+
],
|
|
1441
|
+
"properties": {
|
|
1442
|
+
"invoices": {
|
|
1443
|
+
"type": "array",
|
|
1444
|
+
"description": "List of Spark invoices to pay"
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
"spark_quote_lightning_payment": {
|
|
1449
|
+
"required": [
|
|
1450
|
+
"invoice"
|
|
1451
|
+
],
|
|
1452
|
+
"properties": {
|
|
1453
|
+
"invoice": {
|
|
1454
|
+
"type": "string",
|
|
1455
|
+
"description": "BOLT11 invoice to quote"
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
"spark_quote_withdraw": {
|
|
1460
|
+
"required": [
|
|
1461
|
+
"onchain_address",
|
|
1462
|
+
"amount_sats"
|
|
1463
|
+
],
|
|
1464
|
+
"properties": {
|
|
1465
|
+
"onchain_address": {
|
|
1466
|
+
"type": "string",
|
|
1467
|
+
"description": "Destination Bitcoin L1 address"
|
|
1468
|
+
},
|
|
1469
|
+
"amount_sats": {
|
|
1470
|
+
"type": "integer",
|
|
1471
|
+
"description": "Amount in satoshis to withdraw"
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
},
|
|
1475
|
+
"spark_send_sats": {
|
|
1476
|
+
"required": [
|
|
1477
|
+
"to",
|
|
1478
|
+
"amount_sats"
|
|
1479
|
+
],
|
|
1480
|
+
"properties": {
|
|
1481
|
+
"to": {
|
|
1482
|
+
"type": "string",
|
|
1483
|
+
"description": "Destination Spark address (spark1...)"
|
|
1484
|
+
},
|
|
1485
|
+
"amount_sats": {
|
|
1486
|
+
"type": "integer",
|
|
1487
|
+
"description": "Amount in satoshis to send"
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
},
|
|
1491
|
+
"spark_transfer_token": {
|
|
1492
|
+
"required": [
|
|
1493
|
+
"to",
|
|
1494
|
+
"amount"
|
|
1495
|
+
],
|
|
1496
|
+
"properties": {
|
|
1497
|
+
"to": {
|
|
1498
|
+
"type": "string",
|
|
1499
|
+
"description": "Destination Spark address (spark1...)"
|
|
1500
|
+
},
|
|
1501
|
+
"amount": {
|
|
1502
|
+
"type": "string",
|
|
1503
|
+
"description": "Amount to send as a string integer in base units, e.g. \"1000000\" for 1 USDT with 6 decimals"
|
|
1504
|
+
},
|
|
1505
|
+
"token": {
|
|
1506
|
+
"type": "string",
|
|
1507
|
+
"description": "Spark token identifier. Omit to use the configured USDT token (SPARK_USDT_TOKEN)."
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
},
|
|
1511
|
+
"spark_withdraw": {
|
|
1512
|
+
"required": [
|
|
1513
|
+
"onchain_address"
|
|
1514
|
+
],
|
|
1515
|
+
"properties": {
|
|
1516
|
+
"onchain_address": {
|
|
1517
|
+
"type": "string",
|
|
1518
|
+
"description": "Destination Bitcoin L1 address"
|
|
1519
|
+
},
|
|
1520
|
+
"amount_sats": {
|
|
1521
|
+
"type": "integer",
|
|
1522
|
+
"description": "Amount in satoshis (omit to withdraw all)"
|
|
1523
|
+
},
|
|
1524
|
+
"exit_speed": {
|
|
1525
|
+
"type": "string",
|
|
1526
|
+
"description": "Exit speed (default: MEDIUM)"
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
"transfer": {
|
|
1531
|
+
"required": [
|
|
1532
|
+
"chain",
|
|
1533
|
+
"token",
|
|
1534
|
+
"to",
|
|
1535
|
+
"amount"
|
|
1536
|
+
],
|
|
1537
|
+
"properties": {
|
|
1538
|
+
"chain": {
|
|
1539
|
+
"type": "string",
|
|
1540
|
+
"description": "The blockchain to transfer on"
|
|
1541
|
+
},
|
|
1542
|
+
"token": {
|
|
1543
|
+
"type": "string",
|
|
1544
|
+
"description": "Token symbol (e.g., \"USDT\", \"USDC\", \"DAI\")"
|
|
1545
|
+
},
|
|
1546
|
+
"to": {
|
|
1547
|
+
"type": "string",
|
|
1548
|
+
"description": "The recipient address"
|
|
1549
|
+
},
|
|
1550
|
+
"amount": {
|
|
1551
|
+
"type": "string",
|
|
1552
|
+
"description": "The amount to transfer in human-readable format (e.g., \"10\" or \"0.5\")"
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
},
|
|
1556
|
+
"verify": {
|
|
1557
|
+
"required": [
|
|
1558
|
+
"chain",
|
|
1559
|
+
"message",
|
|
1560
|
+
"signature"
|
|
1561
|
+
],
|
|
1562
|
+
"properties": {
|
|
1563
|
+
"chain": {
|
|
1564
|
+
"type": "string",
|
|
1565
|
+
"description": "The blockchain to use for verification"
|
|
1566
|
+
},
|
|
1567
|
+
"message": {
|
|
1568
|
+
"type": "string",
|
|
1569
|
+
"description": "The original message"
|
|
1570
|
+
},
|
|
1571
|
+
"signature": {
|
|
1572
|
+
"type": "string",
|
|
1573
|
+
"description": "The signature to verify"
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
},
|
|
1577
|
+
"wdk_atomic_taker": {
|
|
1578
|
+
"required": [
|
|
1579
|
+
"swapstring"
|
|
1580
|
+
],
|
|
1581
|
+
"properties": {
|
|
1582
|
+
"swapstring": {
|
|
1583
|
+
"type": "string",
|
|
1584
|
+
"description": "Swapstring from kaleidoswap_atomic_init"
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
},
|
|
1588
|
+
"wdk_close_channel": {
|
|
1589
|
+
"required": [
|
|
1590
|
+
"channel_id",
|
|
1591
|
+
"peer_pubkey"
|
|
1592
|
+
],
|
|
1593
|
+
"properties": {
|
|
1594
|
+
"channel_id": {
|
|
1595
|
+
"type": "string",
|
|
1596
|
+
"description": "Channel ID from rln_list_channels"
|
|
1597
|
+
},
|
|
1598
|
+
"peer_pubkey": {
|
|
1599
|
+
"type": "string",
|
|
1600
|
+
"description": "Peer pubkey from rln_list_channels"
|
|
1601
|
+
},
|
|
1602
|
+
"force": {
|
|
1603
|
+
"type": "boolean",
|
|
1604
|
+
"description": "Force close (unilateral). Default: false (cooperative close)"
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
},
|
|
1608
|
+
"wdk_connect_peer": {
|
|
1609
|
+
"required": [
|
|
1610
|
+
"peer_pubkey_and_addr"
|
|
1611
|
+
],
|
|
1612
|
+
"properties": {
|
|
1613
|
+
"peer_pubkey_and_addr": {
|
|
1614
|
+
"type": "string",
|
|
1615
|
+
"description": "pubkey@host:port"
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
},
|
|
1619
|
+
"wdk_create_ln_invoice": {
|
|
1620
|
+
"required": [],
|
|
1621
|
+
"properties": {
|
|
1622
|
+
"amount_sats": {
|
|
1623
|
+
"type": "integer",
|
|
1624
|
+
"description": "Amount in satoshis. Omit for any-amount."
|
|
1625
|
+
},
|
|
1626
|
+
"amount_msat": {
|
|
1627
|
+
"type": "integer",
|
|
1628
|
+
"description": "Amount in millisatoshis, instead of amount_sats"
|
|
1629
|
+
},
|
|
1630
|
+
"description": {
|
|
1631
|
+
"type": "string",
|
|
1632
|
+
"description": ""
|
|
1633
|
+
},
|
|
1634
|
+
"expiry_sec": {
|
|
1635
|
+
"type": "integer",
|
|
1636
|
+
"description": "Expiry in seconds (default: 3600)"
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
},
|
|
1640
|
+
"wdk_create_rgb_invoice": {
|
|
1641
|
+
"required": [],
|
|
1642
|
+
"properties": {
|
|
1643
|
+
"asset_id": {
|
|
1644
|
+
"type": "string",
|
|
1645
|
+
"description": "RGB asset ID. Omit for any asset."
|
|
1646
|
+
},
|
|
1647
|
+
"amount": {
|
|
1648
|
+
"type": "number",
|
|
1649
|
+
"description": "Expected amount in display units (e.g. 65.5 for 65.5 USDT)"
|
|
1650
|
+
},
|
|
1651
|
+
"duration_seconds": {
|
|
1652
|
+
"type": "integer",
|
|
1653
|
+
"description": "Invoice expiry (default: 86400 = 24h)"
|
|
1654
|
+
},
|
|
1655
|
+
"transport_endpoints": {
|
|
1656
|
+
"type": "array",
|
|
1657
|
+
"description": "RGB proxy endpoints the payer posts the consignment to. Defaults to the network RGB proxy (RGB_PROXY_ENDPOINT)."
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
},
|
|
1661
|
+
"wdk_create_utxos": {
|
|
1662
|
+
"required": [],
|
|
1663
|
+
"properties": {
|
|
1664
|
+
"num": {
|
|
1665
|
+
"type": "integer",
|
|
1666
|
+
"description": "Number of UTXOs to create (default: node decides, typically 5)"
|
|
1667
|
+
},
|
|
1668
|
+
"size": {
|
|
1669
|
+
"type": "integer",
|
|
1670
|
+
"description": "Size of each UTXO in sats (default: node decides)"
|
|
1671
|
+
},
|
|
1672
|
+
"up_to": {
|
|
1673
|
+
"type": "boolean",
|
|
1674
|
+
"description": "If true, only create enough UTXOs to reach `num` free ones (default: false)"
|
|
1675
|
+
},
|
|
1676
|
+
"fee_rate": {
|
|
1677
|
+
"type": "number",
|
|
1678
|
+
"description": "On-chain fee rate in sat/vbyte (default: 1)"
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
},
|
|
1682
|
+
"wdk_get_address": {
|
|
1683
|
+
"required": [],
|
|
1684
|
+
"properties": {}
|
|
1685
|
+
},
|
|
1686
|
+
"wdk_get_asset_balance": {
|
|
1687
|
+
"required": [
|
|
1688
|
+
"asset_id"
|
|
1689
|
+
],
|
|
1690
|
+
"properties": {
|
|
1691
|
+
"asset_id": {
|
|
1692
|
+
"type": "string",
|
|
1693
|
+
"description": "RGB asset ID e.g. 'rgb:2JEUOrsc-...'"
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
},
|
|
1697
|
+
"wdk_get_balances": {
|
|
1698
|
+
"required": [],
|
|
1699
|
+
"properties": {
|
|
1700
|
+
"skip_sync": {
|
|
1701
|
+
"type": "boolean",
|
|
1702
|
+
"description": "Skip blockchain sync for faster response (default: false)"
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
},
|
|
1706
|
+
"wdk_get_channel_id": {
|
|
1707
|
+
"required": [
|
|
1708
|
+
"temporary_channel_id"
|
|
1709
|
+
],
|
|
1710
|
+
"properties": {
|
|
1711
|
+
"temporary_channel_id": {
|
|
1712
|
+
"type": "string",
|
|
1713
|
+
"description": "Temporary channel ID from rln_open_channel"
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1717
|
+
"wdk_get_node_info": {
|
|
1718
|
+
"required": [],
|
|
1719
|
+
"properties": {}
|
|
1720
|
+
},
|
|
1721
|
+
"wdk_get_swap": {
|
|
1722
|
+
"required": [
|
|
1723
|
+
"payment_hash"
|
|
1724
|
+
],
|
|
1725
|
+
"properties": {
|
|
1726
|
+
"payment_hash": {
|
|
1727
|
+
"type": "string",
|
|
1728
|
+
"description": "Payment hash from kaleidoswap_atomic_init"
|
|
1729
|
+
},
|
|
1730
|
+
"taker": {
|
|
1731
|
+
"type": "boolean",
|
|
1732
|
+
"description": "Filter for taker-side swap"
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
},
|
|
1736
|
+
"wdk_issue_asset": {
|
|
1737
|
+
"required": [
|
|
1738
|
+
"name"
|
|
1739
|
+
],
|
|
1740
|
+
"properties": {
|
|
1741
|
+
"schema": {
|
|
1742
|
+
"type": "string",
|
|
1743
|
+
"description": "Asset schema (default: NIA)"
|
|
1744
|
+
},
|
|
1745
|
+
"name": {
|
|
1746
|
+
"type": "string",
|
|
1747
|
+
"description": "Asset name, e.g. \"Hackathon Ticket\""
|
|
1748
|
+
},
|
|
1749
|
+
"ticker": {
|
|
1750
|
+
"type": "string",
|
|
1751
|
+
"description": "Uppercase ticker, e.g. \"TICKET\". Required for NIA and UDA, ignored for CFA."
|
|
1752
|
+
},
|
|
1753
|
+
"amount": {
|
|
1754
|
+
"type": "number",
|
|
1755
|
+
"description": "Total supply in display units (e.g. 1000). Required for NIA and CFA; UDA always has supply 1."
|
|
1756
|
+
},
|
|
1757
|
+
"precision": {
|
|
1758
|
+
"type": "integer",
|
|
1759
|
+
"description": "Decimal places (default: 0). Raw supply = amount × 10^precision."
|
|
1760
|
+
},
|
|
1761
|
+
"details": {
|
|
1762
|
+
"type": "string",
|
|
1763
|
+
"description": "Optional free-text description (CFA and UDA only)"
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
},
|
|
1767
|
+
"wdk_list_assets": {
|
|
1768
|
+
"required": [],
|
|
1769
|
+
"properties": {
|
|
1770
|
+
"schemas": {
|
|
1771
|
+
"type": "array",
|
|
1772
|
+
"description": ""
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
},
|
|
1776
|
+
"wdk_list_channels": {
|
|
1777
|
+
"required": [],
|
|
1778
|
+
"properties": {
|
|
1779
|
+
"usable_only": {
|
|
1780
|
+
"type": "boolean",
|
|
1781
|
+
"description": "Return only usable channels (default: false)"
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
},
|
|
1785
|
+
"wdk_list_payments": {
|
|
1786
|
+
"required": [],
|
|
1787
|
+
"properties": {
|
|
1788
|
+
"limit": {
|
|
1789
|
+
"type": "integer",
|
|
1790
|
+
"description": "Max payments to return (default: 20)"
|
|
1791
|
+
},
|
|
1792
|
+
"inbound_only": {
|
|
1793
|
+
"type": "boolean",
|
|
1794
|
+
"description": ""
|
|
1795
|
+
},
|
|
1796
|
+
"outbound_only": {
|
|
1797
|
+
"type": "boolean",
|
|
1798
|
+
"description": ""
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
},
|
|
1802
|
+
"wdk_list_swaps": {
|
|
1803
|
+
"required": [],
|
|
1804
|
+
"properties": {}
|
|
1805
|
+
},
|
|
1806
|
+
"wdk_list_transfers": {
|
|
1807
|
+
"required": [
|
|
1808
|
+
"asset_id"
|
|
1809
|
+
],
|
|
1810
|
+
"properties": {
|
|
1811
|
+
"asset_id": {
|
|
1812
|
+
"type": "string",
|
|
1813
|
+
"description": "RGB asset ID"
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
},
|
|
1817
|
+
"wdk_mpp_pay": {
|
|
1818
|
+
"required": [
|
|
1819
|
+
"invoice"
|
|
1820
|
+
],
|
|
1821
|
+
"properties": {
|
|
1822
|
+
"invoice": {
|
|
1823
|
+
"type": "string",
|
|
1824
|
+
"description": "BOLT11 invoice from mpp_request_challenge"
|
|
1825
|
+
},
|
|
1826
|
+
"challenge_id": {
|
|
1827
|
+
"type": "string",
|
|
1828
|
+
"description": "MPP challenge_id"
|
|
1829
|
+
},
|
|
1830
|
+
"macaroon": {
|
|
1831
|
+
"type": "string",
|
|
1832
|
+
"description": "Macaroon for L402-compatible servers"
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
},
|
|
1836
|
+
"wdk_open_channel": {
|
|
1837
|
+
"required": [
|
|
1838
|
+
"peer_pubkey_and_addr",
|
|
1839
|
+
"capacity_sat"
|
|
1840
|
+
],
|
|
1841
|
+
"properties": {
|
|
1842
|
+
"peer_pubkey_and_addr": {
|
|
1843
|
+
"type": "string",
|
|
1844
|
+
"description": "pubkey@host:port"
|
|
1845
|
+
},
|
|
1846
|
+
"capacity_sat": {
|
|
1847
|
+
"type": "integer",
|
|
1848
|
+
"description": "Channel capacity in satoshis"
|
|
1849
|
+
},
|
|
1850
|
+
"push_msat": {
|
|
1851
|
+
"type": "integer",
|
|
1852
|
+
"description": "Millisatoshis to push to remote (default: 0)"
|
|
1853
|
+
},
|
|
1854
|
+
"asset_id": {
|
|
1855
|
+
"type": "string",
|
|
1856
|
+
"description": "RGB asset ID to allocate"
|
|
1857
|
+
},
|
|
1858
|
+
"asset_amount": {
|
|
1859
|
+
"type": "number",
|
|
1860
|
+
"description": "Amount of RGB asset to allocate"
|
|
1861
|
+
},
|
|
1862
|
+
"is_public": {
|
|
1863
|
+
"type": "boolean",
|
|
1864
|
+
"description": "Announce channel publicly (default: false)"
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
},
|
|
1868
|
+
"wdk_pay_invoice": {
|
|
1869
|
+
"required": [
|
|
1870
|
+
"invoice"
|
|
1871
|
+
],
|
|
1872
|
+
"properties": {
|
|
1873
|
+
"invoice": {
|
|
1874
|
+
"type": "string",
|
|
1875
|
+
"description": "BOLT11 invoice string (lnbc... or lntb...)"
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
},
|
|
1879
|
+
"wdk_refresh_transfers": {
|
|
1880
|
+
"required": [],
|
|
1881
|
+
"properties": {
|
|
1882
|
+
"skip_sync": {
|
|
1883
|
+
"type": "boolean",
|
|
1884
|
+
"description": ""
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
},
|
|
1888
|
+
"wdk_send_asset": {
|
|
1889
|
+
"required": [
|
|
1890
|
+
"asset_id",
|
|
1891
|
+
"recipient_id",
|
|
1892
|
+
"amount"
|
|
1893
|
+
],
|
|
1894
|
+
"properties": {
|
|
1895
|
+
"asset_id": {
|
|
1896
|
+
"type": "string",
|
|
1897
|
+
"description": "RGB asset ID"
|
|
1898
|
+
},
|
|
1899
|
+
"recipient_id": {
|
|
1900
|
+
"type": "string",
|
|
1901
|
+
"description": "Recipient identifier from an RGB invoice"
|
|
1902
|
+
},
|
|
1903
|
+
"amount": {
|
|
1904
|
+
"type": "number",
|
|
1905
|
+
"description": "Amount in display units (e.g. 65.5 for USDT)"
|
|
1906
|
+
},
|
|
1907
|
+
"transport_endpoints": {
|
|
1908
|
+
"type": "array",
|
|
1909
|
+
"description": "RGB proxy endpoints from the receiver invoice. Defaults to the network RGB proxy (RGB_PROXY_ENDPOINT)."
|
|
1910
|
+
},
|
|
1911
|
+
"fee_rate": {
|
|
1912
|
+
"type": "number",
|
|
1913
|
+
"description": ""
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
},
|
|
1917
|
+
"wdk_send_btc": {
|
|
1918
|
+
"required": [
|
|
1919
|
+
"address",
|
|
1920
|
+
"amount_sat"
|
|
1921
|
+
],
|
|
1922
|
+
"properties": {
|
|
1923
|
+
"address": {
|
|
1924
|
+
"type": "string",
|
|
1925
|
+
"description": "Destination Bitcoin address"
|
|
1926
|
+
},
|
|
1927
|
+
"amount_sat": {
|
|
1928
|
+
"type": "integer",
|
|
1929
|
+
"description": "Amount in satoshis"
|
|
1930
|
+
},
|
|
1931
|
+
"fee_rate": {
|
|
1932
|
+
"type": "number",
|
|
1933
|
+
"description": "Fee rate in sat/vbyte (default: 3)"
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
}
|