-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathswagger.yaml
6266 lines (6097 loc) · 237 KB
/
swagger.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.0
servers:
- url: 'https://api.haskoin.com/bch/'
- url: 'https://api.haskoin.com/btc/'
- url: 'https://api.haskoin.com/bchtest/'
- url: 'https://api.haskoin.com/btctest/'
info:
version: &version 1.5.15
title: Haskoin Store
contact:
name: Haskoin
url: https://github.com/haskoin
email: [email protected]
license:
name: MIT
url: https://github.com/haskoin/haskoin-store/blob/master/store/LICENSE
description: |
Rich and fast API to query indexed block chain data for Bitcoin and Bitcoin
Cash.
tags:
- name: Address
description: Operations on addresses and extended public keys.
- name: Transaction
description: Operations related to transactions.
- name: Block
description: Operations related to blocks.
- name: Network
description: Network statistics and other miscelaneous operations.
- name: Blockchain
description: Blockchain.info compatibility. May be disabled.
paths:
'/health':
get:
tags:
- Network
summary: Health Check
operationId: healthCheck
parameters:
- $ref: '#/components/parameters/prettyParam'
responses:
'200':
description: success
content:
application/json:
schema:
$ref: '#/components/schemas/HealthCheck'
example:
ok: true
net: bch
blocks:
ok: true
max: 2
blocks: 688794
diff: 0
headers: 688794
pending-txs:
ok: true
max: 100
count: 0
version: *version
last-tx:
ok: true
max: 300
age: 0
last-block:
ok: true
max: 7200
age: 3279
peers:
ok: true
count: 20
min: 1
application/octet-stream:
schema:
type: string
format: binary
'503':
description: unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/HealthCheck'
example:
ok: false
net: bch
blocks:
ok: false
max: 2
blocks: 688794
diff: 4
headers: 688798
pending-txs:
ok: true
max: 100
count: 0
version: 0.52.14
last-tx:
ok: true
max: 300
age: 0
last-block:
ok: true
max: 7200
age: 3279
peers:
ok: false
count: 20
min: 0
'/address/{address}/transactions':
get:
tags:
- Address
summary: Transactions for Address
operationId: getAddressTxs
parameters:
- $ref: '#/components/parameters/addressParam'
- $ref: '#/components/parameters/heightParam'
- $ref: '#/components/parameters/offsetParam'
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/prettyParam'
responses:
'200':
description: Transaction list starting with most recent.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/TxRef'
example:
- txid: 00f304a6089a708168cd10d5ad8abd2977c36791156a55b040117cb5a3db7fad
block:
height: 688793
position: 3
- txid: b810589c80335083ed715c03abf62f23968846d2f54343bac305f890f292ec8e
block:
height: 688707
position: 786
application/octet-stream:
schema:
type: string
format: binary
'404':
description: Invalid address.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'/address/{address}/transactions/full':
get:
tags:
- Address
summary: Detailed Address Transactions
operationId: getAddressTxsFull
parameters:
- $ref: '#/components/parameters/addressParam'
- $ref: '#/components/parameters/heightParam'
- $ref: '#/components/parameters/offsetParam'
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/prettyParam'
responses:
'200':
description: Detailed transactions starting with most recent.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Transaction'
example:
- txid: 00f304a6089a708168cd10d5ad8abd2977c36791156a55b040117cb5a3db7fad
size: 225
version: 2
locktime: 688792
fee: 4500
inputs:
- coinbase: false
txid: b810589c80335083ed715c03abf62f23968846d2f54343bac305f890f292ec8e
output: 1
sigscript: 47304402206a11f253c8035be2d9f5958a9ca838b3fd5a1a120441885e10e6cad0fef3911f02202056263939a88fe06e7fc94368ff44c46f71e7daa603936d755b35b8b2a21c154121027eb504988cbc043dd4c9fac51685d68718a24d7f9f1d4c07b9f8c3d04327794c
sequence: 4294967294
pkscript: 76a91437d070b3c6716a6174080722579fbdddad39bfb388ac
value: 2275183814
address: bitcoincash:qqmaqu9nceck5ct5pqrjy4ulhhw66wdlkv2s7f2l9u
witness: []
outputs:
- address: bitcoincash:qqla8n6hwp9f86tc92t6f76680mlkxnqgu5flcqwfe
pkscript: 76a9143fd3cf57704a93e9782a97a4fb5a3bf7fb1a604788ac
value: 15197686
spent: false
spender: null
- address: bitcoincash:qql2wpu4fa36yf07gcc8q80sjfxfaq66xssezyukg2
pkscript: 76a9143ea707954f63a225fe4630701df0924c9e835a3488ac
value: 2259981628
spent: true
spender:
txid: 9e5fd342efb429df773d8208e3fde7af9b7440869e5963d761da0b317c4908ef
input: 0
block:
height: 688793
position: 3
deleted: false
time: 1621583361
rbf: false
weight: 900
- txid: b810589c80335083ed715c03abf62f23968846d2f54343bac305f890f292ec8e
size: 225
version: 2
locktime: 688706
fee: 4500
inputs:
- coinbase: false
txid: 741f605735c995ab6d79814da49002f7b4eea973656e70410cbf7969ebf467fd
output: 0
sigscript: 4730440220298e397d155bcd0c3371a17f11d6dc06392c72c6d4646ac27fad72e86e7f18f50220471c7338a0f4573955e52a95c4c2717f5ae5d369ad153ae62749d0dcd9250482412103c60a0fd16eaf3c72dee4bf12a566ee3a6ae181a29b66a1f2407442f7a6d39ad2
sequence: 4294967294
pkscript: 76a9145124c4e68eed7ffc6110c2326d7d3739f55a09eb88ac
value: 2775188314
address: bitcoincash:qpgjf38x3mkhllrpzrprymtaxuul2ksfavle5hmhl4
witness: []
outputs:
- address: bitcoincash:qqx0ende3cx70rdsmml6ap5pcc9nqmns5qlc8yvhga
pkscript: 76a9140cfccdb98e0de78db0deffae8681c60b306e70a088ac
value: 500000000
spent: false
spender: null
- address: bitcoincash:qqmaqu9nceck5ct5pqrjy4ulhhw66wdlkv2s7f2l9u
pkscript: 76a91437d070b3c6716a6174080722579fbdddad39bfb388ac
value: 2275183814
spent: true
spender:
txid: 00f304a6089a708168cd10d5ad8abd2977c36791156a55b040117cb5a3db7fad
input: 0
block:
height: 688707
position: 786
deleted: false
time: 1621533785
rbf: false
weight: 900
application/octet-stream:
schema:
type: string
format: binary
'404':
description: Invalid address.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'/address/transactions':
get:
tags:
- Address
summary: Multiple Address Transactions
operationId: getMultipleAddressTxs
parameters:
- $ref: '#/components/parameters/addressesParam'
- $ref: '#/components/parameters/heightParam'
- $ref: '#/components/parameters/offsetParam'
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/prettyParam'
responses:
'200':
description: List of transactions starting with most recent.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/TxRef'
example:
- txid: 9e5fd342efb429df773d8208e3fde7af9b7440869e5963d761da0b317c4908ef
block:
height: 688793
position: 458
- txid: 00f304a6089a708168cd10d5ad8abd2977c36791156a55b040117cb5a3db7fad
block:
height: 688793
position: 3
- txid: 00f304a6089a708168cd10d5ad8abd2977c36791156a55b040117cb5a3db7fad
block:
height: 688793
position: 3
- txid: b810589c80335083ed715c03abf62f23968846d2f54343bac305f890f292ec8e
block:
height: 688707
position: 786
application/octet-stream:
schema:
type: string
format: binary
'404':
description: Invalid address.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'/address/transactions/full':
get:
tags:
- Address
summary: Multiple Address Detailed Transactions
operationId: getMultipleAddressTxsFull
parameters:
- $ref: '#/components/parameters/addressesParam'
- $ref: '#/components/parameters/heightParam'
- $ref: '#/components/parameters/offsetParam'
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/prettyParam'
responses:
'200':
description: Detailed transactions starting with most recent.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Transaction'
example:
- txid: 9e5fd342efb429df773d8208e3fde7af9b7440869e5963d761da0b317c4908ef
size: 225
version: 2
locktime: 688792
fee: 4500
inputs:
- coinbase: false
txid: 00f304a6089a708168cd10d5ad8abd2977c36791156a55b040117cb5a3db7fad
output: 1
sigscript: 4730440220362587be41ff4ca25ef097b6c4229b031c26420f53143560fc8bf24f65418dac022034b0c97cef1ff51460346daca727f926ee675e1acaf63cb092a8a39cb3b5d8f94121029832be5ec435a55cd8c09474348cf7ffdcf266ae4fc88f390bde21d9a9c60d09
sequence: 4294967294
pkscript: 76a9143ea707954f63a225fe4630701df0924c9e835a3488ac
value: 2259981628
address: bitcoincash:qql2wpu4fa36yf07gcc8q80sjfxfaq66xssezyukg2
witness: []
outputs:
- address: bitcoincash:qpfscnfvsaydyru7wajy42lqumvpf7drzgc7wz87sj
pkscript: 76a914530c4d2c8748d20f9e77644aabe0e6d814f9a31288ac
value: 1400000000
spent: false
spender: null
- address: bitcoincash:qrw8u9tctjl4ndggrl6l9ssam4qdse3agynldjdn48
pkscript: 76a914dc7e15785cbf59b5081ff5f2c21ddd40d8663d4188ac
value: 859977128
spent: true
spender:
txid: 03b59d0fe4bb260587656f57a2f42a34e97f6502ffb7ee93b8e58f6f8933c99a
input: 0
block:
height: 688793
position: 458
deleted: false
time: 1621583381
rbf: false
weight: 900
- txid: 00f304a6089a708168cd10d5ad8abd2977c36791156a55b040117cb5a3db7fad
size: 225
version: 2
locktime: 688792
fee: 4500
inputs:
- coinbase: false
txid: b810589c80335083ed715c03abf62f23968846d2f54343bac305f890f292ec8e
output: 1
sigscript: 47304402206a11f253c8035be2d9f5958a9ca838b3fd5a1a120441885e10e6cad0fef3911f02202056263939a88fe06e7fc94368ff44c46f71e7daa603936d755b35b8b2a21c154121027eb504988cbc043dd4c9fac51685d68718a24d7f9f1d4c07b9f8c3d04327794c
sequence: 4294967294
pkscript: 76a91437d070b3c6716a6174080722579fbdddad39bfb388ac
value: 2275183814
address: bitcoincash:qqmaqu9nceck5ct5pqrjy4ulhhw66wdlkv2s7f2l9u
witness: []
outputs:
- address: bitcoincash:qqla8n6hwp9f86tc92t6f76680mlkxnqgu5flcqwfe
pkscript: 76a9143fd3cf57704a93e9782a97a4fb5a3bf7fb1a604788ac
value: 15197686
spent: false
spender: null
- address: bitcoincash:qql2wpu4fa36yf07gcc8q80sjfxfaq66xssezyukg2
pkscript: 76a9143ea707954f63a225fe4630701df0924c9e835a3488ac
value: 2259981628
spent: true
spender:
txid: 9e5fd342efb429df773d8208e3fde7af9b7440869e5963d761da0b317c4908ef
input: 0
block:
height: 688793
position: 3
deleted: false
time: 1621583361
rbf: false
weight: 900
- txid: 00f304a6089a708168cd10d5ad8abd2977c36791156a55b040117cb5a3db7fad
size: 225
version: 2
locktime: 688792
fee: 4500
inputs:
- coinbase: false
txid: b810589c80335083ed715c03abf62f23968846d2f54343bac305f890f292ec8e
output: 1
sigscript: 47304402206a11f253c8035be2d9f5958a9ca838b3fd5a1a120441885e10e6cad0fef3911f02202056263939a88fe06e7fc94368ff44c46f71e7daa603936d755b35b8b2a21c154121027eb504988cbc043dd4c9fac51685d68718a24d7f9f1d4c07b9f8c3d04327794c
sequence: 4294967294
pkscript: 76a91437d070b3c6716a6174080722579fbdddad39bfb388ac
value: 2275183814
address: bitcoincash:qqmaqu9nceck5ct5pqrjy4ulhhw66wdlkv2s7f2l9u
witness: []
outputs:
- address: bitcoincash:qqla8n6hwp9f86tc92t6f76680mlkxnqgu5flcqwfe
pkscript: 76a9143fd3cf57704a93e9782a97a4fb5a3bf7fb1a604788ac
value: 15197686
spent: false
spender: null
- address: bitcoincash:qql2wpu4fa36yf07gcc8q80sjfxfaq66xssezyukg2
pkscript: 76a9143ea707954f63a225fe4630701df0924c9e835a3488ac
value: 2259981628
spent: true
spender:
txid: 9e5fd342efb429df773d8208e3fde7af9b7440869e5963d761da0b317c4908ef
input: 0
block:
height: 688793
position: 3
deleted: false
time: 1621583361
rbf: false
weight: 900
- txid: b810589c80335083ed715c03abf62f23968846d2f54343bac305f890f292ec8e
size: 225
version: 2
locktime: 688706
fee: 4500
inputs:
- coinbase: false
txid: 741f605735c995ab6d79814da49002f7b4eea973656e70410cbf7969ebf467fd
output: 0
sigscript: 4730440220298e397d155bcd0c3371a17f11d6dc06392c72c6d4646ac27fad72e86e7f18f50220471c7338a0f4573955e52a95c4c2717f5ae5d369ad153ae62749d0dcd9250482412103c60a0fd16eaf3c72dee4bf12a566ee3a6ae181a29b66a1f2407442f7a6d39ad2
sequence: 4294967294
pkscript: 76a9145124c4e68eed7ffc6110c2326d7d3739f55a09eb88ac
value: 2775188314
address: bitcoincash:qpgjf38x3mkhllrpzrprymtaxuul2ksfavle5hmhl4
witness: []
outputs:
- address: bitcoincash:qqx0ende3cx70rdsmml6ap5pcc9nqmns5qlc8yvhga
pkscript: 76a9140cfccdb98e0de78db0deffae8681c60b306e70a088ac
value: 500000000
spent: false
spender: null
- address: bitcoincash:qqmaqu9nceck5ct5pqrjy4ulhhw66wdlkv2s7f2l9u
pkscript: 76a91437d070b3c6716a6174080722579fbdddad39bfb388ac
value: 2275183814
spent: true
spender:
txid: 00f304a6089a708168cd10d5ad8abd2977c36791156a55b040117cb5a3db7fad
input: 0
block:
height: 688707
position: 786
deleted: false
time: 1621533785
rbf: false
weight: 900
application/octet-stream:
schema:
type: string
format: binary
'404':
description: Invalid address.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'/address/{address}/balance':
get:
tags:
- Address
operationId: getBalance
summary: Address Balance
parameters:
- $ref: '#/components/parameters/addressParam'
- $ref: '#/components/parameters/prettyParam'
responses:
'200':
description: Address balance and other stats.
content:
application/json:
schema:
$ref: '#/components/schemas/Balance'
example:
address: bitcoincash:qqmaqu9nceck5ct5pqrjy4ulhhw66wdlkv2s7f2l9u
confirmed: 0
unconfirmed: 0
utxo: 0
txs: 2
received: 2275183814
application/octet-stream:
schema:
type: string
format: binary
'404':
description: Invalid address.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'/address/balances':
get:
tags:
- Address
summary: Multiple Address Balances
operationId: getMultipleAddressBalances
parameters:
- $ref: '#/components/parameters/addressesParam'
- $ref: '#/components/parameters/prettyParam'
responses:
'200':
description: Address balances and other stats.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Balance'
example:
- address: bitcoincash:qqmaqu9nceck5ct5pqrjy4ulhhw66wdlkv2s7f2l9u
confirmed: 0
unconfirmed: 0
utxo: 0
txs: 2
received: 2275183814
- address: bitcoincash:qql2wpu4fa36yf07gcc8q80sjfxfaq66xssezyukg2
confirmed: 0
unconfirmed: 0
utxo: 0
txs: 2
received: 2259981628
application/octet-stream:
schema:
type: string
format: binary
'404':
description: Invalid Address.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'/address/{address}/unspent':
get:
tags:
- Address
summary: Address Unspent Outputs
operationId: getAddressUnspent
parameters:
- $ref: '#/components/parameters/addressParam'
- $ref: '#/components/parameters/heightParam'
- $ref: '#/components/parameters/offsetParam'
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/prettyParam'
responses:
'200':
description: List of unspent outputs starting with most recent.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Unspent'
example:
- address: bitcoincash:qqla8n6hwp9f86tc92t6f76680mlkxnqgu5flcqwfe
block:
height: 688793
position: 3
txid: 00f304a6089a708168cd10d5ad8abd2977c36791156a55b040117cb5a3db7fad
index: 0
pkscript: 76a9143fd3cf57704a93e9782a97a4fb5a3bf7fb1a604788ac
value: 15197686
- address: bitcoincash:qqla8n6hwp9f86tc92t6f76680mlkxnqgu5flcqwfe
block:
height: 688664
position: 51
txid: 1c9337a7bad182b5cf303b6c3ad7aeac8cbc162dee11ace30671d12d83f80501
index: 1
pkscript: 76a9143fd3cf57704a93e9782a97a4fb5a3bf7fb1a604788ac
value: 28288039
- address: bitcoincash:qqla8n6hwp9f86tc92t6f76680mlkxnqgu5flcqwfe
block:
height: 688601
position: 3820
txid: c41e77bb8ab9f78a0ca26c43ba8a9e687510ccc303a9637e86bfb8affcd1dcf6
index: 0
pkscript: 76a9143fd3cf57704a93e9782a97a4fb5a3bf7fb1a604788ac
value: 42056933
- address: bitcoincash:qqla8n6hwp9f86tc92t6f76680mlkxnqgu5flcqwfe
block:
height: 686234
position: 3648
txid: d4cad6861428215ed6f86406eb445305b107ab041f02e7ef5879381e9cc11ec0
index: 0
pkscript: 76a9143fd3cf57704a93e9782a97a4fb5a3bf7fb1a604788ac
value: 24597765
application/octet-stream:
schema:
type: string
format: binary
'404':
description: Invalid address.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'/address/unspent':
get:
tags:
- Address
summary: Multiple Address Unspent Outputs
operationId: getMultipleAddressUnspent
parameters:
- $ref: '#/components/parameters/addressesParam'
- $ref: '#/components/parameters/heightParam'
- $ref: '#/components/parameters/offsetParam'
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/prettyParam'
responses:
'200':
description: List of unspent outputs starting with most recent.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Unspent'
example:
- address: bitcoincash:qqla8n6hwp9f86tc92t6f76680mlkxnqgu5flcqwfe
block:
height: 688793
position: 3
txid: 00f304a6089a708168cd10d5ad8abd2977c36791156a55b040117cb5a3db7fad
index: 0
pkscript: 76a9143fd3cf57704a93e9782a97a4fb5a3bf7fb1a604788ac
value: 15197686
- address: bitcoincash:qqla8n6hwp9f86tc92t6f76680mlkxnqgu5flcqwfe
block:
height: 688664
position: 51
txid: 1c9337a7bad182b5cf303b6c3ad7aeac8cbc162dee11ace30671d12d83f80501
index: 1
pkscript: 76a9143fd3cf57704a93e9782a97a4fb5a3bf7fb1a604788ac
value: 28288039
- address: bitcoincash:qqla8n6hwp9f86tc92t6f76680mlkxnqgu5flcqwfe
block:
height: 688601
position: 3820
txid: c41e77bb8ab9f78a0ca26c43ba8a9e687510ccc303a9637e86bfb8affcd1dcf6
index: 0
pkscript: 76a9143fd3cf57704a93e9782a97a4fb5a3bf7fb1a604788ac
value: 42056933
- address: bitcoincash:qqla8n6hwp9f86tc92t6f76680mlkxnqgu5flcqwfe
block:
height: 686234
position: 3648
txid: d4cad6861428215ed6f86406eb445305b107ab041f02e7ef5879381e9cc11ec0
index: 0
pkscript: 76a9143fd3cf57704a93e9782a97a4fb5a3bf7fb1a604788ac
value: 24597765
- address: bitcoincash:qp5p2rhvl6dtl0jkvrzf2w7u3fxpylu3ks7wh3vtlp
block:
height: 685236
position: 15161
txid: f80be09fecde882e3b59e39f05f93b51ed92dfe099ee24384b6f30d1d324a995
index: 0
pkscript: 76a91468150eecfe9abfbe5660c4953bdc8a4c127f91b488ac
value: 52128096
application/octet-stream:
schema:
type: string
format: binary
'404':
description: Invalid address.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'/block/best':
get:
tags:
- Block
summary: Block Chain Head
operationId: getBlockHead
parameters:
- $ref: '#/components/parameters/notxParam'
- $ref: '#/components/parameters/prettyParam'
responses:
'200':
description: Best block data.
content:
application/json:
schema:
$ref: '#/components/schemas/BlockData'
example:
hash: 000000000000000001b64b6325acf226dd0b9c012c1d126917bf444f35408961
height: 688797
mainchain: true
previous: 0000000000000000005ed0fb2297eee123e8970060ed52ce021ce415b3d21e0b
time: 1621589645
version: 805298176
bits: 402828819
nonce: 1843321275
size: 14345
tx:
- a12f364c11eeb9f5b48295ed52de6d62246d14db884fde68510489ef8afe36dd
- 0426d4a7d9635f805d657823395ba7f88c28391015c8ff7166f136d4cb1e7003
- 078169b239fb052fd11947ca2e06d72bcaf2dcd8e2ca2de3641a99972da555aa
- 09e1a01f75cc41d3a6ddd33cfc6c7c43cff546b6017c42098dc42c0380894d31
- 1706b23e11d5e65a6b5a7e5b2883be7601037865c46db872b56cce959f25584b
- 2638456e1b6874b978dbfa545b56e698344d5d776c7fcf9fd283f6ba7eeb0f2d
- 2d11fe4dc71ffb9b3245927fb8a3821a440d555a2a7cdcba1b561be7d4d5851a
- 2f4458e9b637b3be97db4c896ef6e396d4a4502e4c00493b8b12e4e672ff991d
- 30adc4c7e8fc46b2756d7edd4c3ca13ba08d24ba1cff99e4cb59864b442d1b56
- 30ffe61ae7d106b00a8a3a8b5195ddd5291deb0120fdc620fa42689b481923fa
- 3166134ffddf6fe6cb816aceb59894274ffeea320406876d8e77b1afa4c98056
- 3ba5dbc9ab73ef827898c624c7137f41f960efd6e06fb149f67a899731db831d
- 3f7a69e8104aa103e0988a0201ac2d40347ed84ab4c3ed239ddbe079d269dae8
- 3fb631d18bd4b86aa2d5156f01a69a89a958b9999cbad2abafe55b65d917c812
- 4cadeaaf483ea263b8a5a26cfcf227795ec0e468400d16067163b0a20d4b0834
- 51ebe726bdb690d70ad331e4fb08dddcdd7eaa1a45d8fcc0ac8cee56f54f0d72
- 613229215ee961c1ec452685d2031f435ca65e1d96744615e590b87ebeb2828a
- 6243831873230e731091c49d86d65de17cd5a9218d71a1e83213908d532c0014
- 6ce70f7d51b0bb80c3ca6c84bb1131807c3316c760e080fdbd296cc4f319d097
- 734fc62db583495c14b14ffccc12f89b2cea3e8d179e07c78ad6cd5746b018b7
- 777981b9cf7e9222d33129e511c4c247883052622f44e2c61b0393018ba111af
- 7985ef5d0ab5e7ff7791dd3d82db1673f66f1b9c0d95d27628025253497ca22e
- 7c071a25ffa5e6333e65dcc86460c25a5ef41d7502603beabdc0541aef18d782
- 7d237bf9a123281edebebd7029d77b4c7726df54f330ae1228359897b976ef11
- 884f75299f7dc57cb9844f88b0752b8522c128a0d4915084a0a844cec538a38f
- 9cb79e1b11c6bdea8ccab3f61411679bd5b19c17651fb71e0d9dbef04fa27d09
- b7596e008884c68a0322c56ccd94c429613e6be8c958e5c0c93ced6915d32c86
- be9e621846769a6a92c68882e0b5eb6352a3be3469e4d9beb3926b64039e1037
- c186585d8e4cae9f04a6c2cb463c79f5f78331434c5bed3c5616672a06919b91
- c6fc1a6d92877b9878ab08169c22ce39028c3e368d53544811f74f42cdc9e138
- c8421314ebfe5a312066c2e0feb00eacf49fd28ca174c89461eabdbea5a7fdd5
- d43a179f02356f62b8d42736c4d70da7584f3c1bbc29d8b2fbe147b9f89ebc04
- d6312a20c5df4368e975438556aac9db816d261d03c57c3b831f13fa40d1a303
- d7dc9b223ea0c2e21877611afe65df412164d5a08d2446763dda5bca72719c31
- df562b911ee84726e9be7c2496aa60466f34a6d748c47f368a05cbd29f45aaca
- e3b023c0cf9554dfb2ece828dfd94cce4438bfd28c57dfc62af843f9c09cbb4c
- e9ef985c16a176c1ea3890edcf8fab187703356008016b3aa252844100dafa51
- ed306dfe986b37aa64006e7deeb5c2342b563b4ca130de53b1e6cb6c8c57758a
- edf9f11512782dab3e6e4efc47f0491f30ffb87d005f78dd623bae027fb92579
- f36b81e3aa3340d03a50f7cf71a4c4cda91cf972198a508ecb32c9c41feb7773
- ff85614565dcc8710dc4f6a96b64ea593e30e0b437980d3702e4adf99aab3f87
merkle: f379f45cb00f781a94e5ea4be0c194c4d9715c374d02ec1494800869bfd542b8
subsidy: 625000000
fees: 87081
outputs: 115319020328
work: 440514608165117083892886234
application/octet-stream:
schema:
type: string
format: binary
'/block/best/raw':
get:
tags:
- Block
summary: Raw Block Chain Head
operationId: getRawBlockHead
responses:
'200':
description: >-
Bitcoin protocol block.
Hex string when using JSON.
content:
application/json:
schema:
type: object
required:
- result
properties:
result:
type: string
example: 010000006f187fddd5e28aa1b4065daa5d9eae0c487094fb20cf97ca02b81c84000000005b7b25b51797f83192f9fd2c3871bfb27570a7d6b56d3a50760613d1a2fc1aeeab346849ffff001d36d950710101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0704ffff001d0120ffffffff0100f2052a0100000043410408ab2f56361f83064e4ce51acc291fb57c2cbcdb1d6562f6278c43a1406b548fd6cefc11bcc29eb620d5861cb9ed69dc39f2422f54b06a8af4f78c8276cfdc6bac00000000
application/octet-stream:
schema:
type: string
format: binary
'/block/latest':
get:
tags:
- Block
summary: Most Recent Blocks
operationId: getLatestBlocks
parameters:
- $ref: '#/components/parameters/notxParam'
- $ref: '#/components/parameters/prettyParam'
responses:
'200':
description: List of most recent blocks.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/BlockData'
example:
- hash: 000000000000000001b64b6325acf226dd0b9c012c1d126917bf444f35408961
height: 688797
mainchain: true
previous: 0000000000000000005ed0fb2297eee123e8970060ed52ce021ce415b3d21e0b
time: 1621589645
version: 805298176
bits: 402828819
nonce: 1843321275
size: 14345
tx:
- a12f364c11eeb9f5b48295ed52de6d62246d14db884fde68510489ef8afe36dd
merkle: f379f45cb00f781a94e5ea4be0c194c4d9715c374d02ec1494800869bfd542b8
subsidy: 625000000
fees: 87081
outputs: 115319020328
work: 440514608165117083892886234
- hash: 0000000000000000005ed0fb2297eee123e8970060ed52ce021ce415b3d21e0b
height: 688796
mainchain: true
previous: 000000000000000000f3e8c40d8fcb08fe68309d05c654d4a9626e71771c87bc
time: 1621589661
version: 536870912
bits: 402828953
nonce: 4121941127
size: 466349
tx:
- 1be65880d02647bc4b8b5525b6dd33848ac4f36cc2c682a35676d0c5e10858c2
merkle: a42b2321e225dd3812f1f1e502ea320eff30d9061f4089613250d5e6d9f3f1ca
subsidy: 625000000
fees: 2623401
outputs: 5682996095523
work: 440512846073222977677902178
- hash: 000000000000000000f3e8c40d8fcb08fe68309d05c654d4a9626e71771c87bc
height: 688795
mainchain: true
previous: 000000000000000000e2bd91f8f073c8a755335a1e16bd99d21d9a52497f80ca
time: 1621589252
version: 541065216
bits: 402826569
nonce: 4143833738
size: 3789642
tx:
- 09aecab0edb71bbd37d2482948ddc6bc3475b6723ed485620ef926571ab6af04
merkle: df42f51b831eda9ddcf84de248fa7fed56cec66a9f15545c9a0802f5e2ab1dd4
subsidy: 625000000
fees: 9075725
outputs: 58906363954005
work: 440511085324684718115244800
application/octet-stream:
schema:
type: string
format: binary
'/block/{block}':
get:
tags:
- Block
operationId: getBlock
summary: Block Information
parameters:
- $ref: '#/components/parameters/notxParam'
- $ref: '#/components/parameters/blockParam'
- $ref: '#/components/parameters/prettyParam'
responses:
'200':
description: Block data.
content:
application/json:
schema:
$ref: '#/components/schemas/BlockData'
example:
hash: 000000000003ba27aa200b1cecaad478d2b00432346c3f1f3986da1afd33e506
height: 100000
mainchain: true
previous: 000000000002d01c1fccc21636b607dfd930d31d01c3a62104612a1719011250
time: 1293623863
version: 1
bits: 453281356
nonce: 274148111
size: 957
tx:
- 8c14f0db3df150123e6f3dbbf30f8b955a8249b62ac1d1ff16284aefa3d06d87
- fff2525b8931402dd09222c50775608f75787bd2b87e56995a7bdd30f79702c4
- 6359f0868171b1d194cbee1af2f16ea598ae8fad666d9b012c8ed2b79a236ec4
- e9a66845e05d5abc0ad04ec80f774a7e585c6e8db975962d069a522137b80c1d
merkle: f3e94742aca4b5ef85488dc37c06c3282295ffec960994b2c0d5ac2a25a95766
subsidy: 5000000000
fees: 0
outputs: 5301000000
work: 451709610344319134
application/octet-stream:
schema:
type: string
format: binary
'404':
description: Block not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'/block/{block}/raw':
get:
tags:
- Block
operationId: getRawBlock
summary: Raw Block
parameters:
- $ref: '#/components/parameters/blockParam'
responses:
'200':
description: >-
Bitcoin protocol block.
Hex string when using JSON.
content:
application/json:
schema:
type: object
required:
- result
properties:
result:
type: string
example: 0100000050120119172a610421a6c3011dd330d9df07b63616c2cc1f1cd00200000000006657a9252aacd5c0b2940996ecff952228c3067cc38d4885efb5a4ac4247e9f337221b4d4c86041b0f2b57100401000000010000000000000000000000000000000000000000000000000000000000000000ffffffff08044c86041b020602ffffffff0100f2052a010000004341041b0e8c2567c12536aa13357b79a073dc4444acb83c4ec7a0e2f99dd7457516c5817242da796924ca4e99947d087fedf9ce467cb9f7c6287078f801df276fdf84ac000000000100000001032e38e9c0a84c6046d687d10556dcacc41d275ec55fc00779ac88fdf357a187000000008c493046022100c352d3dd993a981beba4a63ad15c209275ca9470abfcd57da93b58e4eb5dce82022100840792bc1f456062819f15d33ee7055cf7b5ee1af1ebcc6028d9cdb1c3af7748014104f46db5e9d61a9dc27b8d64ad23e7383a4e6ca164593c2527c038c0857eb67ee8e825dca65046b82c9331586c82e0fd1f633f25f87c161bc6f8a630121df2b3d3ffffffff0200e32321000000001976a914c398efa9c392ba6013c5e04ee729755ef7f58b3288ac000fe208010000001976a914948c765a6914d43f2a7ac177da2c2f6b52de3d7c88ac000000000100000001c33ebff2a709f13d9f9a7569ab16a32786af7d7e2de09265e41c61d078294ecf010000008a4730440220032d30df5ee6f57fa46cddb5eb8d0d9fe8de6b342d27942ae90a3231e0ba333e02203deee8060fdc70230a7f5b4ad7d7bc3e628cbe219a886b84269eaeb81e26b4fe014104ae31c31bf91278d99b8377a35bbce5b27d9fff15456839e919453fc7b3f721f0ba403ff96c9deeb680e5fd341c0fc3a7b90da4631ee39560639db462e9cb850fffffffff0240420f00000000001976a914b0dcbf97eabf4404e31d952477ce822dadbe7e1088acc060d211000000001976a9146b1281eec25ab4e1e0793ff4e08ab1abb3409cd988ac0000000001000000010b6072b386d4a773235237f64c1126ac3b240c84b917a3909ba1c43ded5f51f4000000008c493046022100bb1ad26df930a51cce110cf44f7a48c3c561fd977500b1ae5d6b6fd13d0b3f4a022100c5b42951acedff14abba2736fd574bdb465f3e6f8da12e2c5303954aca7f78f3014104a7135bfe824c97ecc01ec7d7e336185c81e2aa2c41ab175407c09484ce9694b44953fcb751206564a9c24dd094d42fdbfdd5aad3e063ce6af4cfaaea4ea14fbbffffffff0140420f00000000001976a91439aa3d569e06a1d7926dc4be1193c99bf2eb9ee088ac00000000
application/octet-stream:
schema:
type: string
format: binary
'404':
description: Block not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'/blocks':
get:
tags:
- Block
operationId: getBlocks
summary: Information for Multiple Blocks
parameters:
- $ref: '#/components/parameters/notxParam'
- $ref: '#/components/parameters/blocksParam'
- $ref: '#/components/parameters/prettyParam'
responses:
'200':
description: List of block data objects.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/BlockData'
example:
- hash: 000000000845517b31c6820d83f25cff46429bf136a7515fe504116427e60f8e
height: 49999
mainchain: true
previous: 000000001a793b5b7732ee306b1e4196132e0193fac6457801f1e16e6ec89e6a
time: 1270916354
version: 1
bits: 472518933
nonce: 64497466
size: 216
tx:
- 2c95132eb2fd2e7d2f5bd282595d3d47950836031727850579dca836254b1bd4
merkle: 2c95132eb2fd2e7d2f5bd282595d3d47950836031727850579dca836254b1bd4
subsidy: 5000000000
fees: 0
outputs: 0
work: 363097871874800
- hash: 000000001aeae195809d120b5d66a39c83eb48792e068f8ea1fea19d84a4278a
height: 50000
mainchain: true
previous: 000000000845517b31c6820d83f25cff46429bf136a7515fe504116427e60f8e
time: 1270916538
version: 1
bits: 472518933
nonce: 58489010
size: 216
tx:
- 27f1d66f8a1ee5280f4e92508dcb647e954d53004905d08a75574daee4988360
merkle: 27f1d66f8a1ee5280f4e92508dcb647e954d53004905d08a75574daee4988360
subsidy: 5000000000