-
Notifications
You must be signed in to change notification settings - Fork 16
/
openapi.yaml
12482 lines (12319 loc) · 408 KB
/
openapi.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
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
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
version: 0.1.69
title: Blockfrost.io ~ API Documentation
x-logo:
url: 'https://staging.blockfrost.io/images/logo.svg'
altText: Blockfrost
contact:
name: Blockfrost Team
url: 'https://blockfrost.io'
email: contact@blockfrost.io
license:
name: MIT
url: 'https://opensource.org/licenses/MIT'
termsOfService: 'https://blockfrost.io/terms'
description: >
Blockfrost is an API as a service that allows users to interact with the
Cardano blockchain and parts of its ecosystem.
## Tokens
After signing up on https://blockfrost.io, a `project_id` token is
automatically generated for each project.
HTTP header of your request MUST include this `project_id` in order to
authenticate against Blockfrost servers.
## Available networks
At the moment, you can use the following networks. Please, note that each
network has its own `project_id`.
<table>
<tbody>
<tr>
<td>
<b>Network</b>
</td>
<td>
<b>Endpoint</b>
</td>
</tr>
<tr>
<td>Cardano mainnet</td>
<td>
<code>https://cardano-mainnet.blockfrost.io/api/v0</code>
</td>
</tr>
<tr>
<td>Cardano preprod</td>
<td>
<code>https://cardano-preprod.blockfrost.io/api/v0</code>
</td>
</tr>
<tr>
<td>Cardano preview</td>
<td>
<code>https://cardano-preview.blockfrost.io/api/v0</code>
</td>
</tr>
<tr>
<td>InterPlanetary File System</td>
<td>
<code>https://ipfs.blockfrost.io/api/v0</code>
</td>
</tr>
<tr>
<td>Milkomeda mainnet</td>
<td>
<code>https://milkomeda-mainnet.blockfrost.io/api/v0</code>
</td>
</tr>
<tr>
<td>Milkomeda testnet</td>
<td>
<code>https://milkomeda-testnet.blockfrost.io/api/v0</code>
</td>
</tr>
</tbody>
</table>
## Milkomeda
<p>
<span>
For more information about how to use Milkomeda as well as the list of available endpoints, see the <a href="https://blockfrost.dev/start-building/milkomeda" target="_blank">Milkomeda section</a>.
</span>
</p>
## Concepts
* All endpoints return either a JSON object or an array.
* Data is returned in *ascending* (oldest first, newest last) order, if not
stated otherwise.
* You might use the `?order=desc` query parameter to reverse this order.
* By default, we return 100 results at a time. You have to use `?page=2` to
list through the results.
* All time and timestamp related fields (except `server_time`) are in
seconds of UNIX time.
* All amounts are returned in Lovelaces, where 1 ADA = 1 000 000 Lovelaces.
* Addresses, accounts and pool IDs are in Bech32 format.
* All values are case sensitive.
* All hex encoded values are lower case.
* Examples are not based on real data. Any resemblance to actual events is
purely coincidental.
* We allow to upload files up to 100MB of size to IPFS. This might increase
in the future.
* Only pinned IPFS files are counted towards the IPFS quota.
* Non-pinned IPFS files are subject to regular garbage collection and will
be removed unless pinned.
* We allow maximum of 100 queued pins per IPFS user.
## Errors
### HTTP Status codes
The following are HTTP status code your application might receive when
reaching Blockfrost endpoints and
it should handle all of these cases.
* HTTP `400` return code is used when the request is not valid.
* HTTP `402` return code is used when the projects exceed their daily
request limit.
* HTTP `403` return code is used when the request is not authenticated.
* HTTP `404` return code is used when the resource doesn't exist.
* HTTP `418` return code is used when the user has been auto-banned for
flooding too much after previously receiving error code `402` or `429`.
* HTTP `425` return code is used in Cardano networks, when the user has
submitted a transaction when the mempool is already full, not accepting new
txs straight away.
* HTTP `425` return code is used in IPFS network, when the user has
submitted a pin when the pin queue is already full, not accepting new pins
straight away.
* HTTP `429` return code is used when the user has sent too many requests in
a given amount of time and therefore has been rate-limited.
* HTTP `500` return code is used when our endpoints are having a problem.
### Error codes
An internal error code number is used for better indication of the error in
question. It is passed using the following payload.
```json
{
"status_code": 403,
"error": "Forbidden",
"message": "Invalid project token."
}
```
## Limits
There are two types of limits we are enforcing:
The first depends on your plan and is the number of request we allow per
day. We defined the day from midnight to midnight of UTC time.
The second is rate limiting. We limit an end user, distinguished by IP
address, to 10 requests per second. On top of that, we allow
each user to send burst of 500 requests, which cools off at rate of 10
requests per second. In essence, a user is allowed to make another
whole burst after (currently) 500/10 = 50 seconds. E.g. if a user attempts
to make a call 3 seconds after whole burst, 30 requests will be processed.
We believe this should be sufficient for most of the use cases. If it is not
and you have a specific use case, please get in touch with us, and
we will make sure to take it into account as much as we can.
## SDKs
We support a number of SDKs that will help you in developing your
application on top of Blockfrost.
<table>
<tbody>
<tr>
<td><b>Programming language</b></td>
<td><b>SDK</b></td>
</tr>
<tr>
<td>JavaScript</td>
<td>
<a href="https://github.com/blockfrost/blockfrost-js">blockfrost-js</a>
</td>
</tr>
<tr>
<td>Haskell</td>
<td>
<a href="https://github.com/blockfrost/blockfrost-haskell">blockfrost-haskell</a>
</td>
</tr>
<tr>
<td>Python</td>
<td>
<a href="https://github.com/blockfrost/blockfrost-python">blockfrost-python</a>
</td>
</tr>
<tr>
<td>Rust</td>
<td>
<a href="https://github.com/blockfrost/blockfrost-rust">blockfrost-rust</a>
</td>
</tr>
<tr>
<td>Golang</td>
<td>
<a href="https://github.com/blockfrost/blockfrost-go">blockfrost-go</a>
</td>
</tr>
<tr>
<td>Ruby</td>
<td>
<a href="https://github.com/blockfrost/blockfrost-ruby">blockfrost-ruby</a>
</td>
</tr>
<tr>
<td>Java</td>
<td>
<a href="https://github.com/blockfrost/blockfrost-java">blockfrost-java</a>
</td>
</tr>
<tr>
<td>Scala</td>
<td>
<a href="https://github.com/blockfrost/blockfrost-scala">blockfrost-scala</a>
</td>
</tr>
<tr>
<td>Swift</td>
<td>
<a href="https://github.com/blockfrost/blockfrost-swift">blockfrost-swift</a>
</td>
</tr>
<tr>
<td>Kotlin</td>
<td>
<a href="https://github.com/blockfrost/blockfrost-kotlin">blockfrost-kotlin</a>
</td>
</tr>
<tr>
<td>Elixir</td>
<td>
<a href="https://github.com/blockfrost/blockfrost-elixir">blockfrost-elixir</a>
</td>
</tr>
<tr>
<td>.NET</td>
<td>
<a href="https://github.com/blockfrost/blockfrost-dotnet">blockfrost-dotnet</a>
</td>
</tr>
<tr>
<td>Arduino</td>
<td>
<a href="https://github.com/blockfrost/blockfrost-arduino">blockfrost-arduino</a>
</td>
</tr>
<tr>
<td>PHP</td>
<td>
<a href="https://github.com/blockfrost/blockfrost-php">blockfrost-php</a>
</td>
</tr>
<tr>
<td>Crystal</td>
<td>
<a href="https://github.com/blockfrost/blockfrost-crystal">blockfrost-crystal</a>
</td>
</tr>
</tbody>
</table>
servers:
- url: 'https://cardano-mainnet.blockfrost.io/api/v0'
description: Cardano Mainnet network
- url: 'https://cardano-preprod.blockfrost.io/api/v0'
description: Cardano Preprod network
- url: 'https://cardano-preview.blockfrost.io/api/v0'
description: Cardano Preview network
- url: 'https://localhost:3000'
description: local
security:
- project_id: []
tags:
- name: Health
- name: Metrics
- name: Cardano » Accounts
- name: Cardano » Addresses
- name: Cardano » Assets
- name: Cardano » Blocks
- name: Cardano » Epochs
- name: Cardano » Governance
- name: Cardano » Ledger
- name: Cardano » Mempool
- name: Cardano » Metadata
- name: Cardano » Network
- name: Cardano » Pools
- name: Cardano » Scripts
- name: Cardano » Transactions
- name: Cardano » Utilities
- name: IPFS » Add
- name: IPFS » Gateway
- name: IPFS » Pins
paths:
/:
get:
tags:
- Health
summary: Root endpoint
description: >
Root endpoint has no other function than to point end users to
documentation.
responses:
'200':
description: Information pointing to the documentation.
content:
application/json:
schema:
type: object
properties:
url:
type: string
example: 'https://blockfrost.io/'
version:
type: string
example: 0.1.0
required:
- url
- version
'400':
$ref: '#/components/responses/400'
'403':
$ref: '#/components/responses/403'
'418':
$ref: '#/components/responses/418'
'429':
$ref: '#/components/responses/429'
'500':
$ref: '#/components/responses/500'
/health:
get:
tags:
- Health
summary: Backend health status
security: []
description: >
Return backend status as a boolean. Your application should handle
situations when backend for the given chain is unavailable.
responses:
'200':
description: Return the boolean indicating the health of the backend.
content:
application/json:
schema:
type: object
properties:
is_healthy:
type: boolean
example: true
required:
- is_healthy
'400':
$ref: '#/components/responses/400'
'403':
$ref: '#/components/responses/403'
'418':
$ref: '#/components/responses/418'
'429':
$ref: '#/components/responses/429'
'500':
$ref: '#/components/responses/500'
/health/clock:
get:
tags:
- Health
summary: Current backend time
description: |
This endpoint provides the current UNIX time. Your application might
use this to verify if the client clock is not out of sync.
responses:
'200':
description: Return the current UNIX time in milliseconds.
content:
application/json:
schema:
type: object
properties:
server_time:
type: integer
format: int64
example: 1603400958947
required:
- server_time
'400':
$ref: '#/components/responses/400'
'403':
$ref: '#/components/responses/403'
'418':
$ref: '#/components/responses/418'
'429':
$ref: '#/components/responses/429'
'500':
$ref: '#/components/responses/500'
/blocks/latest:
get:
tags:
- Cardano » Blocks
summary: Latest block
description: |
Return the latest block available to the backends, also known as the
tip of the blockchain.
responses:
'200':
description: Return the contents of the block
content:
application/json:
schema:
$ref: '#/components/schemas/block_content'
'400':
$ref: '#/components/responses/400'
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'418':
$ref: '#/components/responses/418'
'429':
$ref: '#/components/responses/429'
'500':
$ref: '#/components/responses/500'
/blocks/latest/txs:
get:
tags:
- Cardano » Blocks
summary: Latest block transactions
description: Return the transactions within the latest block.
parameters:
- in: query
name: count
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 100
description: The number of results displayed on one page.
- in: query
name: page
required: false
schema:
type: integer
minimum: 1
maximum: 21474836
default: 1
description: The page number for listing the results.
- in: query
name: order
required: false
schema:
type: string
enum:
- asc
- desc
default: asc
description: >
Ordered by tx index in the block.
The ordering of items from the point of view of the blockchain,
not the page listing itself. By default, we return oldest first,
newest last.
responses:
'200':
description: Return the contents of the block
content:
application/json:
schema:
$ref: '#/components/schemas/block_content_txs'
'400':
$ref: '#/components/responses/400'
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'418':
$ref: '#/components/responses/418'
'429':
$ref: '#/components/responses/429'
'500':
$ref: '#/components/responses/500'
'/blocks/{hash_or_number}':
get:
tags:
- Cardano » Blocks
summary: Specific block
description: |
Return the content of a requested block.
parameters:
- in: path
name: hash_or_number
required: true
schema:
type: string
format: 64-character case-sensitive hexadecimal string or block number.
description: Hash or number of the requested block.
example: 4ea1ba291e8eef538635a53e59fddba7810d1679631cc3aed7c8e6c4091a516a
responses:
'200':
description: Return the contents of the block
content:
application/json:
schema:
$ref: '#/components/schemas/block_content'
'400':
$ref: '#/components/responses/400'
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'418':
$ref: '#/components/responses/418'
'429':
$ref: '#/components/responses/429'
'500':
$ref: '#/components/responses/500'
'/blocks/{hash_or_number}/next':
get:
tags:
- Cardano » Blocks
summary: Listing of next blocks
description: |
Return the list of blocks following a specific block.
parameters:
- in: path
name: hash_or_number
required: true
schema:
type: string
format: 64-character case-sensitive hexadecimal string or block number.
description: Hash of the requested block.
example: 5ea1ba291e8eef538635a53e59fddba7810d1679631cc3aed7c8e6c4091a516a
- in: query
name: count
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 100
description: The number of results displayed on one page.
- in: query
name: page
required: false
schema:
type: integer
minimum: 1
maximum: 21474836
default: 1
description: The page number for listing the results.
responses:
'200':
description: Return the contents of the block
content:
application/json:
schema:
$ref: '#/components/schemas/block_content_array'
'400':
$ref: '#/components/responses/400'
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'418':
$ref: '#/components/responses/418'
'429':
$ref: '#/components/responses/429'
'500':
$ref: '#/components/responses/500'
'/blocks/{hash_or_number}/previous':
get:
tags:
- Cardano » Blocks
summary: Listing of previous blocks
description: |
Return the list of blocks preceding a specific block.
parameters:
- in: path
name: hash_or_number
required: true
schema:
type: string
format: 64-character case-sensitive hexadecimal string or block number.
description: Hash of the requested block
example: '4873401'
- in: query
name: count
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 100
description: The number of results displayed on one page.
- in: query
name: page
required: false
schema:
type: integer
minimum: 1
maximum: 21474836
default: 1
description: The page number for listing the results.
responses:
'200':
description: Return the contents of the block
content:
application/json:
schema:
$ref: '#/components/schemas/block_content_array'
'400':
$ref: '#/components/responses/400'
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'418':
$ref: '#/components/responses/418'
'429':
$ref: '#/components/responses/429'
'500':
$ref: '#/components/responses/500'
'/blocks/slot/{slot_number}':
get:
tags:
- Cardano » Blocks
summary: Specific block in a slot
description: |
Return the content of a requested block for a specific slot.
parameters:
- in: path
name: slot_number
required: true
schema:
type: integer
format: slot number
description: Slot position for requested block.
example: 30895909
responses:
'200':
description: Return the contents of the block
content:
application/json:
schema:
$ref: '#/components/schemas/block_content'
'400':
$ref: '#/components/responses/400'
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'418':
$ref: '#/components/responses/418'
'429':
$ref: '#/components/responses/429'
'500':
$ref: '#/components/responses/500'
'/blocks/epoch/{epoch_number}/slot/{slot_number}':
get:
tags:
- Cardano » Blocks
summary: Specific block in a slot in an epoch
description: |
Return the content of a requested block for a specific slot in an epoch.
parameters:
- in: path
name: epoch_number
required: true
schema:
type: integer
format: slot number
description: Epoch for specific epoch slot.
example: 219
- in: path
name: slot_number
required: true
schema:
type: integer
format: slot number
description: Slot position for requested block.
example: 30895909
responses:
'200':
description: Return the contents of the block
content:
application/json:
schema:
$ref: '#/components/schemas/block_content'
'400':
$ref: '#/components/responses/400'
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'418':
$ref: '#/components/responses/418'
'429':
$ref: '#/components/responses/429'
'500':
$ref: '#/components/responses/500'
'/blocks/{hash_or_number}/txs':
get:
tags:
- Cardano » Blocks
summary: Block transactions
description: Return the transactions within the block.
parameters:
- in: path
name: hash_or_number
required: true
schema:
type: string
format: 64-character case-sensitive hexadecimal string or block number.
description: Hash of the requested block.
example: '4873401'
- in: query
name: count
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 100
description: The number of results displayed on one page.
- in: query
name: page
required: false
schema:
type: integer
minimum: 1
maximum: 21474836
default: 1
description: The page number for listing the results.
- in: query
name: order
required: false
schema:
type: string
enum:
- asc
- desc
default: asc
description: >
Ordered by tx index in the block.
The ordering of items from the point of view of the blockchain,
not the page listing itself. By default, we return oldest first,
newest last.
responses:
'200':
description: Return the contents of the block
content:
application/json:
schema:
$ref: '#/components/schemas/block_content_txs'
'400':
$ref: '#/components/responses/400'
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'418':
$ref: '#/components/responses/418'
'429':
$ref: '#/components/responses/429'
'500':
$ref: '#/components/responses/500'
'/blocks/{hash_or_number}/addresses':
get:
tags:
- Cardano » Blocks
summary: Addresses affected in a specific block
description: >-
Return list of addresses affected in the specified block with additional
information, sorted by the bech32 address, ascending.
parameters:
- in: path
name: hash_or_number
required: true
schema:
type: string
format: 64-character case-sensitive hexadecimal string or block number.
description: Hash of the requested block.
example: '4873401'
- in: query
name: count
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 100
description: The number of results displayed on one page.
- in: query
name: page
required: false
schema:
type: integer
minimum: 1
maximum: 21474836
default: 1
description: The page number for listing the results.
responses:
'200':
description: Return the contents of the block
content:
application/json:
schema:
$ref: '#/components/schemas/block_content_addresses'
'400':
$ref: '#/components/responses/400'
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'418':
$ref: '#/components/responses/418'
'429':
$ref: '#/components/responses/429'
'500':
$ref: '#/components/responses/500'
/genesis:
get:
tags:
- Cardano » Ledger
summary: Blockchain genesis
description: Return the information about blockchain genesis.
responses:
'200':
description: Return the genesis parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/genesis_content'
'400':
$ref: '#/components/responses/400'
'403':
$ref: '#/components/responses/403'
'418':
$ref: '#/components/responses/418'
'429':
$ref: '#/components/responses/429'
'500':
$ref: '#/components/responses/500'
/governance/dreps:
get:
tags:
- Cardano » Governance
summary: Delegate Representatives (DReps)
description: Return the information about Delegate Representatives (DReps)
parameters:
- in: query
name: count
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 100
description: The number of results displayed on one page.
- in: query
name: page
required: false
schema:
type: integer
minimum: 1
maximum: 21474836
default: 1
description: The page number for listing the results.
- in: query
name: order
required: false
schema:
type: string
enum:
- asc
- desc
default: asc
description: >
The ordering of items from the point of view of the blockchain,
not the page listing itself. By default, we return oldest first,
newest last.
Ordering in this case is based on the time of the first mint
transaction.
responses:
'200':
description: Paginated array with the Delegate Representatives (DReps) data
content:
application/json:
schema:
$ref: '#/components/schemas/dreps'
'400':
$ref: '#/components/responses/400'
'403':
$ref: '#/components/responses/403'
'418':
$ref: '#/components/responses/418'
'429':
$ref: '#/components/responses/429'
'500':
$ref: '#/components/responses/500'
'/governance/dreps/{drep_id}':
get:
tags:
- Cardano » Governance
summary: Specific DRep
description: DRep information.
parameters:
- in: path
name: drep_id
required: true
schema:
type: string
description: Bech32 or hexadecimal DRep ID.
example: drep15cfxz9exyn5rx0807zvxfrvslrjqfchrd4d47kv9e0f46uedqtc
responses:
'200':
description: Return the DRep information content
content:
application/json:
schema:
$ref: '#/components/schemas/drep'
'400':
$ref: '#/components/responses/400'
'403':
$ref: '#/components/responses/403'
'418':
$ref: '#/components/responses/418'
'429':
$ref: '#/components/responses/429'
'500':
$ref: '#/components/responses/500'
'/governance/dreps/{drep_id}/delegators':
get:
tags:
- Cardano » Governance
summary: DRep delegators
description: List of Drep delegators.
parameters:
- in: path
name: drep_id