-
Notifications
You must be signed in to change notification settings - Fork 33
/
openapi.yaml
1882 lines (1870 loc) · 50.7 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
servers:
- url: "http://localhost:50832"
- url: "http://localhost:50836"
- url: "http://localhost:50837"
info:
description: >-
This is the API definition Pocket Network Node RPC interface.
Pocket is a distributed network that relays data requests and responses to and from any blockchain system.
Pocket verifies all relayed data and proportionally rewards the participating nodes with POKT.
version: 1.0.0
title: Pocket Network
termsOfService: "https://pokt.network/terms/"
contact:
email: [email protected]
license:
name: MIT License
url: "https://github.com/pokt-network/pocket/blob/main/LICENSE"
tags:
- name: version
description: Version of the Pocket API
- name: health
description: Liveness of the Pocket API node
- name: client
description: Dispatch and relay services
- name: consensus
description: Consensus related methods
paths:
/v1/health:
get:
tags:
- health
summary: Get the liveness of the Pocket API node
responses:
"200":
description: Healthy
"404":
description: Unhealthy - Unreachable
"500":
description: Unhealthy - Server Error
/v1/version:
get:
tags:
- version
summary: Get the current version of the Pocket Network API
responses:
default:
description: Default response
content:
text/plain:
schema:
type: string
example: 1.0.0
/v1/consensus/state:
get:
tags:
- consensus
summary: Gets the current height, round and step
responses:
default:
description: Default response
content:
application/json:
schema:
$ref: "#/components/schemas/ConsensusState"
example: { "height": 75016, "round": 0, "step": 3 }
/v1/client/broadcast_tx_sync:
post:
tags:
- client
summary: Broadcast raw transaction bytes
requestBody:
description: Raw transaction to be broadcasted
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/RawTXRequest"
responses:
"200":
description: Transaction added to the mempool without errors
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while adding the transaction to the mempool
content:
text/plain:
example: "description of failure"
/v1/client/get_session:
post:
tags:
- client
summary: Sends a session request to the network and get the nodes that will be servicing your requests for the session
requestBody:
description: Retrieve the list of actors involved in servicing and verifying a session
content:
application/json:
schema:
$ref: "#/components/schemas/SessionRequest"
required: true
responses:
"200":
description: Session response
content:
application/json:
schema:
$ref: "#/components/schemas/Session"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while sending the session request to the network
content:
text/plain:
example: "description of failure"
# TODO: Update this handler and its schemas when the HandleRelay function has been implemented
/v1/client/relay:
post:
tags:
- client
summary: Sends a relay to the servicer to receive a response. The payload is the serialized form of one of the supported formats in a protobuf.
requestBody:
description: Request a relay to be sent on behalf of your application. The server is responsible for unpacking the payload as one of the supported formats.
content:
application/json:
schema:
$ref: "#/components/schemas/RelayRequest"
required: true
responses:
"200":
description: Relay request response
content:
application/json:
schema:
$ref: "#/components/schemas/RelayResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while sending the relay request to the network
content:
text/plain:
example: "description of failure"
# TODO: Update this handler and its schemas when the HandleChallenge function has been implemented
/v1/client/challenge:
post:
tags:
- client
summary: Sends a challenge request to the network
requestBody:
description: Request a challenge for invalid data returned from an RPC request
content:
application/json:
schema:
$ref: "#/components/schemas/ChallengeRequest"
required: true
responses:
"200":
description: Challenge request response
content:
application/json:
schema:
$ref: "#/components/schemas/ChallengeResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while sending the challenge request to the network
content:
text/plain:
example: "description of failure"
/v1/p2p/staked_actors_address_book:
get:
tags:
- p2p
summary: Returns the protocol actor address book
parameters:
- in: query
name: height
required: false
schema:
type: integer
format: int64
minimum: 0
description: The height the query will be executed on. By default it uses the current height of the consensus module. This may be the latest height if synched or an earlier height if synching.
- in: query
name: actor_type
required: false
schema:
$ref: "#/components/schemas/ActorTypesEnum"
description: The type of actor the address book will be populated with. By default it returns an address book for all protocol actors supported by the blockchain
responses:
"200":
description: Staked actors response
content:
application/json:
schema:
$ref: "#/components/schemas/P2PStakedActorsResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the staked actors address book
content:
text/plain:
example: "description of failure"
/v1/query/account:
post:
tags:
- query
summary: Returns the data of the account specified at a given height
requestBody:
description: Request account data at the specified height, height = 0 is used as the latest
content:
application/json:
schema:
$ref: "#/components/schemas/QueryAccountHeight"
example:
address: da034209758b78eaea06dd99c07909ab54c99b45
height: 0
required: true
responses:
"200":
description: Returns account data at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/Account"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the account data at the specified height
content:
text/plain:
example: "description of failure"
/v1/query/accounts:
post:
tags:
- query
summary: Returns the paginated data of all accounts specified at a given height
requestBody:
description: Request all account data at the specified height, height = 0 is used as the latest; Max per_page=1000
content:
application/json:
schema:
$ref: "#/components/schemas/QueryHeightPaginated"
example:
height: 0
page: 1
per_page: 50
required: true
responses:
"200":
description: Returns account data for all accounts at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/QueryAccountsResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving accounts at the specified height
content:
text/plain:
example: "description of failure"
/v1/query/account_txs:
post:
tags:
- query
summary: Returns all transactions sent by the specified address paginated
requestBody:
description: Returns all transactions sent by the address provided; Max per_page=1000, can be sorted either asc or desc (default)
content:
application/json:
schema:
$ref: "#/components/schemas/QueryAccountPaginated"
example:
address: da034209758b78eaea06dd99c07909ab54c99b45
page: 1
per_page: 1000
sort: desc
required: true
responses:
"200":
description: Returns the transaction list for the account
content:
application/json:
schema:
$ref: "#/components/schemas/QueryAccountTxsResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the transactions for the account
content:
text/plain:
example: "description of failure"
/v1/query/all_chain_params:
get:
tags:
- query
summary: Returns the current values of all on-chain governance parameters
responses:
"200":
description: Returns all the chain parameters
content:
application/json:
schema:
$ref: "#/components/schemas/AllChainParamsResponse"
"500":
description: An error occurred while retrieving the current chain parameters
content:
text/plain:
example: "description of failure"
/v1/query/app:
post:
tags:
- query
summary: Returns the data for the specific app address at a given height
requestBody:
description: Request application data at the specified height, height = 0 is used as the latest
content:
application/json:
schema:
$ref: "#/components/schemas/QueryAccountHeight"
example:
address: da034209758b78eaea06dd99c07909ab54c99b45
height: 0
required: true
responses:
"200":
description: Returns application data at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/ProtocolActor"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the application data at the specified height
content:
text/plain:
example: "description of failure"
# TODO: (h5law) Determine a parameter to give the request that differentiates
# the staking status of an app and returns only that type of staked application
# This will be equivalent to the `staking_status` field from the V0 RPC spec
/v1/query/apps:
post:
tags:
- query
summary: Returns the data for the all apps at the specified height
requestBody:
description: Request all application data at the specified height, height = 0 is used as the latest; Max per_page=1000
content:
application/json:
schema:
$ref: "#/components/schemas/QueryHeightPaginated"
example:
height: 0
page: 1
per_page: 50
required: true
responses:
"200":
description: Returns application data at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/QueryAppsResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving all application data at the specified height
content:
text/plain:
example: "description of failure"
/v1/query/balance:
post:
tags:
- query
summary: Returns the balance of the account at the specified height
requestBody:
description: Request account balance at the specified height, height = 0 is used as the latest
content:
application/json:
schema:
$ref: "#/components/schemas/QueryAccountHeight"
example:
address: da034209758b78eaea06dd99c07909ab54c99b45
height: 99
required: true
responses:
"200":
description: Returns account balance at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/QueryBalanceResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the account balance at the specified height
content:
text/plain:
example: "description of failure"
/v1/query/block:
post:
tags:
- query
summary: Returns the block structure at the specified height
requestBody:
description: Request the block at the specified height, height = 0 is used as the latest
content:
application/json:
schema:
$ref: "#/components/schemas/QueryHeight"
example:
height: 0
required: true
responses:
"200":
description: Returns block structure at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/QueryBlockResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the block structure at the specified height
content:
text/plain:
example: "description of failure"
/v1/query/block_txs:
post:
tags:
- query
summary: Returns all the transactions in the block at the specified height
requestBody:
description: Request the transactions in the block at the specified height, height = 0 is used as the latest; Max per_page=1000, can be sorted either asc or desc (default)
content:
application/json:
schema:
$ref: "#/components/schemas/QueryHeightPaginated"
example:
height: 0
page: 1
per_page: 1000
sort: desc
required: true
responses:
"200":
description: Returns all transactions in the block at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/QueryTxsResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the block transactions at the specified height
content:
text/plain:
example: "description of failure"
/v1/query/fisherman:
post:
tags:
- query
summary: Returns the data for the specific fisherman address at a given height
requestBody:
description: Request fisherman data at the specified height, height = 0 is used as the latest
content:
application/json:
schema:
$ref: "#/components/schemas/QueryAccountHeight"
example:
address: da034209758b78eaea06dd99c07909ab54c99b45
height: 0
required: true
responses:
"200":
description: Returns fisherman data at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/ProtocolActor"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the fisherman data at the specified height
content:
text/plain:
example: "description of failure"
/v1/query/fishermen:
post:
tags:
- query
summary: Returns the data for the all fishermen at the specified height
requestBody:
description: Request all fishermen data at the specified height, height = 0 is used as the latest; Max per_page=1000
content:
application/json:
schema:
$ref: "#/components/schemas/QueryHeightPaginated"
example:
height: 0
page: 1
per_page: 50
required: true
responses:
"200":
description: Returns all fishermen data at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/QueryFishermenResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving all fishermen data at the specified height
content:
text/plain:
example: "description of failure"
/v1/query/height:
get:
tags:
- query
summary: Returns the current block height
responses:
"200":
description: Returns the current height
content:
application/json:
schema:
$ref: "#/components/schemas/QueryHeight"
"500":
description: An error occurred while retrieving the current height
content:
text/plain:
example: "description of failure"
/v1/query/param:
post:
tags:
- query
requestBody:
description: Request the value of the specified chain parameter at the given height, height = 0 is used as the latest
content:
application/json:
schema:
$ref: "#/components/schemas/QueryParameter"
example:
param: blocks_per_session
height: 2
required: true
responses:
"200":
description: Returns the value of the parameter at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/Parameter"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the parameter
content:
text/plain:
example: "description of failure"
/v1/query/servicer:
post:
tags:
- query
summary: Returns the data for the specific servicer address at a given height
requestBody:
description: Request servicer data at the specified height, height = 0 is used as the latest
content:
application/json:
schema:
$ref: "#/components/schemas/QueryAccountHeight"
example:
address: da034209758b78eaea06dd99c07909ab54c99b45
height: 0
required: true
responses:
"200":
description: Returns servicer data at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/ProtocolActor"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the servicer data at the specified height
content:
text/plain:
example: "description of failure"
/v1/query/servicers:
post:
tags:
- query
summary: Returns the data for the all servicers at the specified height
requestBody:
description: Request all servicers data at the specified height, height = 0 is used as the latest; Max per_page=1000
content:
application/json:
schema:
$ref: "#/components/schemas/QueryHeightPaginated"
example:
height: 0
page: 1
per_page: 50
required: true
responses:
"200":
description: Returns all servicers data at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/QueryServicersResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving all servicers data at the specified height
content:
text/plain:
example: "description of failure"
/v1/query/supply:
post:
tags:
- query
summary: Returns the token supply at the specified height
requestBody:
description: Request the token supply data at the specified height, height = 0 is used as the latest; Max per_page=1000
content:
application/json:
schema:
$ref: "#/components/schemas/QueryHeight"
example:
height: 0
required: true
responses:
"200":
description: Returns the token supply data at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/QuerySupplyResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the token supply data at the specified height
content:
text/plain:
example: "description of failure"
/v1/query/supported_chains:
post:
tags:
- query
summary: Returns the supported chains at the specified height
requestBody:
description: Request the supported chains at the specified height, height = 0 is used as the latest; Max per_page=1000
content:
application/json:
schema:
$ref: "#/components/schemas/QueryHeight"
example:
height: 0
required: true
responses:
"200":
description: Returns the supported chains list at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/QuerySupportedChainsResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the supported chains at the specified height
content:
text/plain:
example: "description of failure"
/v1/query/tx:
post:
tags:
- query
summary: Returns the transaction by its hash
requestBody:
description: Request a transaction from its hash
content:
application/json:
schema:
$ref: "#/components/schemas/QueryHash"
example:
hash: c05a67912d84860ff5db13e29b453c578c3fc0c95333f6a4987b2060f56639b6
required: true
responses:
"200":
description: Returns the transaction
content:
application/json:
schema:
$ref: "#/components/schemas/IndexedTransaction"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the transaction
content:
text/plain:
example: "description of failure"
/v1/query/unconfirmed_tx:
post:
tags:
- query
summary: Returns the unconfirmed transaction by its hash from mempool
requestBody:
description: Request an unconfirmed transaction currently in the mempool from its hash
content:
application/json:
schema:
$ref: "#/components/schemas/QueryHash"
example:
hash: c05a67912d84860ff5db13e29b453c578c3fc0c95333f6a4987b2060f56639b6
required: true
responses:
"200":
description: Returns the unconfirmed transaction from the mempool
content:
application/json:
schema:
$ref: "#/components/schemas/IndexedTransaction"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the transaction from the mempool
content:
text/plain:
example: "description of failure"
/v1/query/unconfirmed_txs:
post:
tags:
- query
summary: Returns all unconfirmed transactions handled by the mempool
requestBody:
description: Request the unconfirmed transactions currently in the mempool
content:
application/json:
schema:
$ref: "#/components/schemas/QueryPaginated"
example:
page: 1
per_page: 1000
sort: desc
required: true
responses:
"200":
description: Returns all the unconfirmed transactions in the mempool
content:
application/json:
schema:
$ref: "#/components/schemas/QueryTxsResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the transactions in the mempool
content:
text/plain:
example: "description of failure"
/v1/query/upgrade:
post:
tags:
- query
summary: Returns the upgrade information for the specified height
requestBody:
description: Request the upgrade information for the specified height, height = 0 is used as latest
content:
application/json:
schema:
$ref: "#/components/schemas/QueryHeight"
example:
height: 5
required: true
responses:
"200":
description: Returns the upgrade information for the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/QueryUpgradeResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the update information
content:
text/plain:
example: "description of failure"
/v1/query/validator:
post:
tags:
- query
summary: Returns the data for the specific validator address at a given height
requestBody:
description: Request validator data at the specified height, height = 0 is used as the latest
content:
application/json:
schema:
$ref: "#/components/schemas/QueryAccountHeight"
example:
address: da034209758b78eaea06dd99c07909ab54c99b45
height: 0
required: true
responses:
"200":
description: Returns validator data at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/ProtocolActor"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving the validator data at the specified height
content:
text/plain:
example: "description of failure"
/v1/query/validators:
post:
tags:
- query
summary: Returns the data for the all validators at the specified height
requestBody:
description: Request all validators data at the specified height, height = 0 is used as the latest; Max per_page=1000
content:
application/json:
schema:
$ref: "#/components/schemas/QueryHeightPaginated"
example:
height: 0
page: 1
per_page: 50
required: true
responses:
"200":
description: Returns all validators data at the specified height
content:
application/json:
schema:
$ref: "#/components/schemas/QueryValidatorsResponse"
"400":
description: Bad request
content:
text/plain:
example: "description of failure"
"500":
description: An error occurred while retrieving all validators data at the specified height
content:
text/plain:
example: "description of failure"
/v1/query/nodeRoles:
post:
tags:
- query
summary: Returns the type of utility actor(s) running on the node
responses:
"200":
description: A list of the node's utility actor(s)
content:
application/json:
schema:
$ref: "#/components/schemas/QueryNodeRolesResponse"
example:
node_roles:
- "validator"
- "servicer"
externalDocs:
description: Find out more about Pocket Network
url: "https://pokt.network"
components:
schemas:
# Requests
ChallengeRequest:
type: object
required:
- majority_responses
- minority_response
- address
- servicer_pub_key
- session_id
properties:
majority_responses:
type: array
items:
$ref: "#/components/schemas/RelayResponse"
minority_response:
$ref: "#/components/schemas/RelayResponse"
address:
type: string
servicer_pub_key:
type: string
session_id:
type: string
QueryAccountHeight:
type: object
required:
- height
- address
properties:
height:
type: integer
format: int64
address:
type: string
QueryAccountPaginated:
type: object
required:
- address
- page
- per_page
properties:
address: