-
Notifications
You must be signed in to change notification settings - Fork 1
/
swagger_devnet.yaml
383 lines (376 loc) · 9.93 KB
/
swagger_devnet.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
openapi: 3.0.1
info:
title: luminex
description: "luminex Inscription Service"
version: 0.0.1
servers:
- url: "https://luminex-backend-production.up.railway.app/api"
- url: "http://localhost:8081/api"
tags:
- name: Status
- name: Inscribe
- name: Estimate
paths:
/status/price:
get:
summary: Get Current bitcoin price
tags:
- Status
responses:
"200":
description: Current Bitcoin Price
content:
application/json:
schema:
type: string
"400":
description: Get Bitcoin Price Failed!
content:
application/json:
schema:
type: string
/status/avgFeeRate:
get:
summary: Get last 15 blocks average feeRate
tags:
- Status
responses:
"200":
description: Last 15 blocks average feeRate
content:
application/json:
schema:
type: string
"400":
description: Get average feeRate failed!
content:
application/json:
schema:
type: string
/status/recommendFeeRate:
get:
summary: Get recommended block feeRate
tags:
- Status
responses:
"200":
description: Recommended block feeRate Success!
content:
application/json:
schema:
type: string
"400":
description: Recommended block feeRate Failed!
content:
application/json:
schema:
type: string
/wallet/utxo-split:
get:
summary: Split large UTXO of Admin wallet
tags:
- Status
responses:
"200":
description: Split large UTXO of Admin wallet Success!
content:
application/json:
schema:
type: string
"400":
description: Split large UTXO of Admin wallet Failed!
content:
application/json:
schema:
type: string
/inscribe/text:
post:
summary: Create new Text Inscription
tags:
- Inscribe
requestBody:
content:
multipart/form-data:
schema:
$ref: "#/components/schemas/TextInscription"
responses:
"200":
description: Text Inscription Success!
content:
application/json:
schema:
type: string
"400":
description: Text Inscription Failed!
content:
application/json:
schema:
type: string
/inscribe/file:
post:
summary: Create new file inscription.
tags:
- Inscribe
requestBody:
content:
multipart/form-data:
schema:
$ref: "#/components/schemas/FileInscription"
responses:
"200":
description: File Inscription Success!
content:
application/json:
schema:
type: string
"400":
description: File Inscription Failed!
content:
application/json:
schema:
type: string
/inscribe/delegate:
post:
summary: Create new Delegate Inscription
tags:
- Inscribe
requestBody:
content:
multipart/form-data:
schema:
$ref: "#/components/schemas/DelegateInscription"
responses:
"200":
description: Delegate Inscription Success!
content:
application/json:
schema:
type: string
"400":
description: Delegate Inscription Failed!
content:
application/json:
schema:
type: string
/sendOrdinal/getSendingOrdinalBtcPsbt:
post:
summary: Get new Sending Ordinals Psbt
tags:
- Inscribe
requestBody:
content:
multipart/form-data:
schema:
$ref: "#/components/schemas/SendingOrdialBtcPsbt"
responses:
"200":
description: Get new Sending Ordinals Psbt Success!
content:
application/json:
schema:
type: string
"400":
description: Get new Sending Ordinals Psbt Failed!
content:
application/json:
schema:
type: string
/estimate/text:
post:
summary: Estimate Text Inscription
tags:
- Estimate
requestBody:
content:
multipart/form-data:
schema:
$ref: "#/components/schemas/TextInscription"
responses:
"200":
description: Estimate Text Inscription Success!
content:
application/json:
schema:
type: string
"400":
description: Estimate Text Inscription Failed!
content:
application/json:
schema:
type: string
/estimate/file:
post:
summary: Estimate file inscription
tags:
- Estimate
requestBody:
content:
multipart/form-data:
schema:
$ref: "#/components/schemas/FileInscription"
responses:
"200":
description: Estimate File Inscription Success!
content:
application/json:
schema:
type: string
"400":
description: Estimate File Inscription Failed!
content:
application/json:
schema:
type: string
/estimate/delegate:
post:
summary: Estimate Delegate Inscription
tags:
- Estimate
requestBody:
content:
multipart/form-data:
schema:
$ref: "#/components/schemas/DelegateInscription"
responses:
"200":
description: Estimate Delegate Inscription Success!
content:
application/json:
schema:
type: string
"400":
description: Estimate Delegate Inscription Failed!
content:
application/json:
schema:
type: string
components:
schemas:
TextInscription:
type: object
properties:
receiveAddress:
type: string
example: tb1p0sd5xq6sz0eg3r9j5df0qk38pgnuqreav2qqtq5jfvwpk3yhzuxqjyttjy
contents:
type: array
items:
type: string
example: 350.364807.luminex
feeRate:
type: number
example: 130
padding:
type: number
example: 546
parentId:
type: string
example: ffbfbf47059f29e36d17ad7d6e538fe821ab7407ba17a93c24a2b02601baf4ffi0
metadata:
type: string
example: '{"type":"dog","size":"medium"}'
metaprotocol:
type: string
example: luminex
reinscriptionId:
type: string
example: 77b603ea0671c2430ee86e59defa1bc05dee7808bd21334f0c6d3451b8614cd8i0
required:
- receiveAddress
- contents
- feeRate
- padding
FileInscription:
type: object
properties:
receiveAddress:
type: string
example: tb1p0sd5xq6sz0eg3r9j5df0qk38pgnuqreav2qqtq5jfvwpk3yhzuxqjyttjy
feeRate:
type: number
example: 130
files:
type: array
items:
type: string
format: binary
padding:
type: string
example: 546
parentId:
type: string
example: ffbfbf47059f29e36d17ad7d6e538fe821ab7407ba17a93c24a2b02601baf4ffi0
metadata:
type: string
example: '{"type":"dog","size":"medium"}'
metaprotocol:
type: string
example: luminex
reinscriptionId:
type: string
example: 77b603ea0671c2430ee86e59defa1bc05dee7808bd21334f0c6d3451b8614cd8i0
required:
- receiveAddress
- feeRate
- files
- padding
DelegateInscription:
type: object
properties:
receiveAddress:
type: string
example: tb1p0sd5xq6sz0eg3r9j5df0qk38pgnuqreav2qqtq5jfvwpk3yhzuxqjyttjy
delegateId:
type: array
items:
type: string
example: ffbfbf47059f29e36d17ad7d6e538fe821ab7407ba17a93c24a2b02601baf4ffi0
feeRate:
type: number
example: 130
padding:
type: number
example: 546
parentId:
type: string
example: ffbfbf47059f29e36d17ad7d6e538fe821ab7407ba17a93c24a2b02601baf4ffi0
metadata:
type: string
example: '{"type":"dog","size":"medium"}'
metaprotocol:
type: string
example: luminex
reinscriptionId:
type: string
example: 77b603ea0671c2430ee86e59defa1bc05dee7808bd21334f0c6d3451b8614cd8i0
required:
- receiveAddress
- delegateId
- feeRate
- padding
SendingOrdialBtcPsbt:
type: object
properties:
receiveAddress:
type: string
example: tb1p0sd5xq6sz0eg3r9j5df0qk38pgnuqreav2qqtq5jfvwpk3yhzuxqjyttjy
feeRate:
type: number
example: 130
parentId:
type: string
example: ffbfbf47059f29e36d17ad7d6e538fe821ab7407ba17a93c24a2b02601baf4ffi0
reinscriptionId:
type: string
example: 77b603ea0671c2430ee86e59defa1bc05dee7808bd21334f0c6d3451b8614cd8i0
btcAmount:
type: number
example: 100000
publicKey:
type: string
example: 03cd6f1283151e05d2c0a2ad6faa38c43e807d7039a68356df950c489957e4c754
required:
- receiveAddress
- feeRate
- btcAmount
- publicKey