-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopenapi.yaml
More file actions
483 lines (483 loc) · 13.5 KB
/
openapi.yaml
File metadata and controls
483 lines (483 loc) · 13.5 KB
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
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
info:
title: Transaction Describer
version: 0.0.0
license:
name: MIT
url: ../LICENSE
openapi: 3.0.4
servers:
- description: Development Server
url: http://127.0.0.1:35183
paths:
/api/v0/addresses/{address}:
parameters:
- in: path
name: address
description: Bech32 Cardano address
schema:
type: string
required: true
- in: query
name: count
description: 'The number of transactions. Min: 1; Max: 10; Default: 5'
schema:
type: integer
required: false
get:
summary: Describe Address Transactions
description: Get the descriptions of the last number of transactions of an address.
responses:
'200':
description: >-
Return the manifest for the last number of transactions of the
requested address
content:
application/json:
schema:
$ref: '#/components/schemas/Manifest'
'400': &ref_0
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429': &ref_1
description: Usage limit reached
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500': &ref_2
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: v0_addresses
/api/v0/addresses/{address}/txs/{hash}:
parameters:
- in: path
name: address
description: Bech32 Cardano Address
schema:
type: string
required: true
- in: path
name: hash
description: Cardano Transaction Hash
schema:
type: string
required: true
get:
summary: Describe Specific Address Transaction
description: Get the manifest for a specific transaction of an address.
responses:
'200':
description: >-
Return the manifest for the requested transaction from the point of
view of the requested address
content:
application/json:
schema:
$ref: '#/components/schemas/Manifest'
'400': *ref_0
'429': *ref_1
'500': *ref_2
operationId: v0_addresses_txs
/api/v0/stats:
get:
summary: Statistics
description: >-
Get the statistics of the service, such as how many transaction
categories and dApps there are.
responses:
'200':
description: Return the statistics of the service
content:
application/json:
schema:
$ref: '#/components/schemas/Stats'
'400': *ref_0
'429': *ref_1
'500': *ref_2
operationId: v0_stats
components:
schemas:
Stats:
title: Service Statistics
description: >-
The statistics of the service, such as how many transaction categories
and dApps there are.
type: object
properties:
category:
title: Transaction Category
description: Transaction categories supported by the service.
type: object
nullable: false
properties:
names:
title: Category Names
description: Transaction category names.
type: array
nullable: false
items:
type: string
uniqueItems: true
count:
title: Category Count
description: Transaction category count.
type: integer
nullable: false
required:
- names
- count
merchant:
title: dApp Projects
description: Supported dApp projects recognized by the service.
type: object
nullable: false
properties:
names:
title: Project Names
description: dApp project names.
type: array
nullable: false
items:
type: string
uniqueItems: true
count:
title: Project Count
description: dApp project count.
type: integer
nullable: false
required:
- names
- count
required:
- category
- merchant
example:
category:
names:
- amm_dex
- blockchain
- catalyst_deregistration
- catalyst_registration
- charity
- community
- concentrated_liquidity_dex
- defi
- dex_aggregator
- gaming
- hybrid_dex
- launchpad
- layer_2
- lending_borrowing
- marketplace
- mining
- mobile_network
- multi_stake_delegation
- nft
- option
- oracle
- orderbook_dex
- other_dex
- receive_ada
- receive_tokens
- send_ada
- send_tokens
- setup_collateral
- stablecoin
- stake_delegation
- stake_registration
- staking
- stealth_wallet
- synthetics
- token_distribution
- token_minting
- unknown_activity
- wrapped_assets
- yield_farming
count: 39
merchant:
names:
- $USDM
- ADA Blobs
- ADA Handle
- ADA Inmates
- adadomains
- ADAO
- ADAX PRO
- anetaBTC
- Artano.
- Artifct
- Astarter
- Astor Pool Tokens
- Axo
- Book.io
- Cardahub
- Cardania
- Cardano Art
- Cardano in Color
- Cardano Name Service
- Cardano Waifus
- Cerra
- Charli3
- CherryLend
- Chilled Kongs
- Cicada NFT
- Clay Nation
- Coinecta
- CryptoDino
- Cryptrolls
- CSWAP DEX
- CypherMonks
- Danogo Bond
- DEADPXLZ
- Derp Birds
- DexHunter
- Disco Solaris
- Djed StableCoin
- DripDropz
- Dropspot
- ENCOINS
- Epoch Art
- Explosif
- Fabul.art
- Filthy Rich Horses
- flipr.io
- Fluid Tokens
- Fortuna
- Genesis House
- Genius Yield
- GOAT Tribe
- H.Y.P.E. CNFT
- Horrocubes
- Hydra
- Iagon
- Indigo Protocol
- Jam On Bread
- jpg.store
- Kalyx
- Kreate
- Lending Pond
- Lenfi
- Levvy Finance
- Liqwid Finance
- Lobster Challenge
- Mad Dog Car Club
- Martify Labs
- Mashdapp
- Matrix Berry
- MELD
- Meowswap
- Milkomeda C1
- Minswap
- MuesliSwap
- MutantNFTs
- NFTJAM
- old-tales
- Optim Finance
- OptionFlow
- Orcfax
- PIGY Oracle
- PixelCat
- Plutus.Art
- Project NEWM's Marketplace
- RagAlley
- RatsDAO
- SaturnNFT
- Seedelf
- SingularityNET
- SmartClaimz
- SpaceBudz
- Spectrum Finance
- Splash Protocol
- Summon Platform
- SundaeSwap
- TeddySwap
- The Ape Society
- Token Riot
- Tokhun
- VyFinance
- Wanchain
- Wild Tangz
- Wingriders
- World Mobile Token
- World of Pirates
- Yummi Universe
count: 105
Asset:
type: object
properties:
currency:
type: string
nullable: false
example: ADA
amount:
type: number
nullable: false
required:
- currency
- amount
Account:
type: object
properties:
address:
title: Bech32 Cardano Address
type: string
nullable: false
format: addr1_...
example: addr1_...
role:
description: Role associated with during the particular transaction.
type: string
nullable: false
format: User Address | Unknown Address | Unknown Script | etc.
example: User Address | Unknown Address | Unknown Script | etc.
total:
description: >-
The aggregate amount of the movement of values during the particular
transaction.
type: array
nullable: false
items:
$ref: '#/components/schemas/Asset'
required:
- address
- role
- total
Manifest:
type: object
properties:
version:
title: Version Number
description: The manifest format version number.
type: integer
nullable: false
id:
title: Manifest UUID
description: The manifest UUID.
type: string
nullable: false
example: 12345678-1234-1234-1234-1234567890ab
institution:
title: Institution Info
description: The information about the institution.
type: object
nullable: false
properties:
name:
title: Institution Name
description: The name of the institution.
type: string
nullable: false
example: Cardano
network:
title: Institution Network
description: The network of the institution.
type: string
nullable: false
example: Mainnet
required:
- name
- network
transactions:
title: Transactions Info
description: The information about the transactions.
type: array
nullable: false
items:
title: Transaction Info
description: The information about a transaction.
type: object
nullable: false
properties:
transaction_id:
title: Transaction Hash
description: >-
The transaction hash that can be queried on a Cardano
blockchain explorer.
type: string
nullable: false
example: Tx Hash
timestamp:
title: Timestamp
description: The transaction timestamp in epoch millisecond.
type: integer
nullable: false
type:
title: Transaction Type
description: The value is one of the transaction categories.
type: string
nullable: false
example: undefined
description:
title: Transaction Description
description: The human-readable description of the transaction.
type: string
nullable: false
example: undefined
confidence:
title: Confidence Score
description: Transaction type/description confidence score.
type: integer
nullable: true
minimum: 0
maximum: 100
accounts:
title: Transaction Accounts
description: Accounts associated with the particular transaction.
type: object
nullable: false
properties:
user:
type: array
nullable: false
items:
$ref: '#/components/schemas/Account'
other:
type: array
nullable: false
items:
$ref: '#/components/schemas/Account'
required:
- user
- other
withdrawal_amount:
$ref: '#/components/schemas/Asset'
network_fee:
$ref: '#/components/schemas/Asset'
metadata:
title: Transaction Metadata
description: Metadata attached during the particular transaction, if any.
type: array
nullable: false
items:
type: object
required:
- transaction_id
- timestamp
- type
- description
- confidence
- accounts
- network_fee
- metadata
required:
- version
- id
- institution
- transactions
Error:
type: object
properties:
error:
title: Error Message
description: Describes the error reason.
type: string
nullable: false
required:
- error
security: []