-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathschema.yml
3147 lines (3074 loc) · 92.3 KB
/
schema.yml
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:
title: Stampchain - OpenAPI 3.0
description: Stampchain API UI
version: 2.2.0
license:
name: GNU Affero General Public License v3.0
url: https://www.gnu.org/licenses/agpl-3.0.html
contact:
name: Stampchain Support
url: https://stampchain.io
email: api@stampchain.io
tags:
- name: System
description: System-level endpoints for health and version checks
- name: Documentation
description: API documentation endpoints
- name: Balance
description: STAMPS, SRC-101, and SRC-20 balance-related endpoints
- name: Blocks
description: Block-related endpoints
- name: Collections
description: Collection management endpoints
- name: Cursed Stamps
description: Endpoints for managing cursed stamps
- name: SRC-20
description: SRC-20 token related endpoints
- name: SRC-101
description: SRC-101 token related endpoints
- name: Stamps
description: Stamp management endpoints
- name: Dispensers
description: Dispenser management endpoints
- name: Minting
description: Token and stamp minting endpoints
- name: UTXO
description: UTXO management endpoints
externalDocs:
description: Find out more about Stampchain
url: "http://stampchain.io"
servers:
- url: "https://stampchain.io"
description: Production server (uses live data)
- url: "https://dev.stampchain.io"
description: Production server (uses live data)
security:
- ApiKeyAuth: []
paths:
/api/v2/health:
get:
operationId: getHealthStatus
tags:
- System
summary: Health check endpoint
description: |
Checks if the API service is running and responding correctly.
Validates the status of core services including the API, indexer, and mempool connectivity.
Also provides block synchronization status between the indexer and network.
responses:
"200":
description: Detailed health status of the system and its services
content:
application/json:
schema:
type: object
properties:
status:
type: string
enum: ["OK", "ERROR"]
description: Overall system health status
services:
type: object
properties:
api:
type: boolean
description: API service connectivity
indexer:
type: boolean
description: Indexer service connectivity
mempool:
type: boolean
description: Mempool API connectivity
database:
type: boolean
description: Database connectivity
xcp:
type: boolean
description: Counterparty node connectivity
blockSync:
type: object
description: Block synchronization information
properties:
indexed:
type: integer
description: Last indexed block height
network:
type: integer
description: Current network block height
isSynced:
type: boolean
description: Whether the indexer is in sync with the network (allowing 1 block lag)
stats:
type: object
description: System-wide statistics
properties:
src20Deployments:
type: integer
description: Total number of SRC-20 tokens deployed
totalStamps:
type: integer
description: Total number of stamps in the system
example:
status: "OK"
services:
api: true
indexer: true
mempool: true
database: true
blockSync:
indexed: 800000
network: 800001
isSynced: true
stats:
src20Deployments: 100000
totalStamps: 1000000
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/docs:
get:
operationId: getApiDocs
tags:
- Documentation
summary: API documentation
description: Returns the OpenAPI documentation. Can be filtered by path or tag.
parameters:
- in: query
name: path
schema:
type: string
description: Optional path to filter documentation for a specific endpoint
example: "/api/v2/olga/mint"
- in: query
name: tag
schema:
type: string
description: Optional tag to filter documentation by category
example: "Minting"
responses:
"200":
description: Successful response with API documentation
content:
application/json:
schema:
oneOf:
- description: Full API documentation (no filters)
type: object
required:
- openapi
- info
- paths
properties:
openapi:
type: string
description: OpenAPI version
example: "3.0.3"
info:
type: object
description: API information
required:
- title
- version
properties:
title:
type: string
description:
type: string
version:
type: string
paths:
type: object
description: Formatted endpoint documentation
tags:
type: array
items:
type: object
properties:
name:
type: string
description:
type: string
servers:
type: array
items:
type: object
properties:
url:
type: string
description:
type: string
- description: Filtered documentation response
type: object
required:
- documentation
properties:
documentation:
type: array
items:
type: object
required:
- path
- method
properties:
path:
type: string
description: Endpoint path
method:
type: string
description: HTTP method
enum: [GET, POST, PUT, DELETE, PATCH]
summary:
type: string
description: Brief description of the endpoint
description:
type: string
description: Detailed endpoint description
tags:
type: array
items:
type: string
description: Associated tags
parameters:
type: array
description: Endpoint parameters
items:
type: object
requestBody:
type: object
nullable: true
description: Request body schema if applicable
responses:
type: array
description: Possible responses
items:
type: object
properties:
code:
type: string
description: HTTP status code
description:
type: string
description: Response description
content:
type: object
"400":
$ref: "#/components/responses/BadRequest"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/version:
get:
operationId: getApiVersion
tags:
- System
summary: Get API version
description: Returns the current version of the API being used.
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
properties:
version:
type: string
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/error:
get:
operationId: testErrorResponse
tags:
- System
summary: Test error endpoint
description: Test endpoint that always returns an error response. Used for testing error handling and responses.
responses:
"400":
description: Bad Request
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponseBody"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/balance/{address}:
get:
operationId: getAddressBalance
tags:
- Balance
summary: Get combined stamp and SRC-20 balances
description: |
Convenience endpoint that combines stamp and SRC-20 balance data in a single request.
For better performance and pagination control, consider using the dedicated endpoints:
- /api/v2/stamps/balance/{address}
- /api/v2/src20/balance/{address}
parameters:
- in: path
name: address
required: true
example: "1GotRejB6XsGgMsM79TvcypeanDJRJbMtg"
schema:
type: string
description: The Bitcoin address to query
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Page"
responses:
"200":
description: Successful response with combined balances
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedBalanceResponseBody"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/block/{block_index}:
get:
operationId: getBlockInfo
tags:
- Blocks
summary: Get block info by block index or block hash
description: Retrieves detailed information about a specific block, including transactions, stamps, and other block-related data.
parameters:
- in: path
name: block_index
required: true
example: "844755"
schema:
type: string
description: The block index or block hash
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/BlockInfoResponseBody"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/block/block_count/{number}:
get:
operationId: getLastBlocks
tags:
- Blocks
summary: Get last x blocks
description: Returns information about the most recent blocks, with the number of blocks specified in the request.
parameters:
- in: path
name: number
required: true
example: 1
schema:
type: integer
description: The number of last blocks to retrieve
responses:
"200":
description: Successful response
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/BlockRow"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/collections:
get:
operationId: getCollections
tags:
- Collections
summary: Get paginated collections
description: Retrieves a paginated list of all stamp collections.
parameters:
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Page"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedCollectionResponseBody"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/collections/creator/{creator}:
get:
operationId: getCollectionsByCreator
tags:
- Collections
summary: Get collections by creator
description: Retrieves a paginated list of stamp collections for a specific creator.
parameters:
- in: path
name: creator
required: true
example: "bc1qefhvcqwuz6g6qy6nck5dq2el2r37pky73tqxkc"
schema:
type: string
description: "Creator address to filter collections by"
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Page"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedCollectionResponseBody"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/cursed:
get:
operationId: getCursedStamps
tags:
- Cursed Stamps
summary: Get paginated cursed stamps
description: Retrieves a paginated list of cursed stamps. Cursed stamps are stamps with negative stamp numbers that have been identified as invalid or problematic.
parameters:
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Page"
- $ref: "#/components/parameters/Sort"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedStampResponseBody"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/cursed/{id}:
get:
operationId: getCursedStampById
tags:
- Cursed Stamps
summary: Get stamp by ID {tx_hash, stamp, cpid}
description: |
Retrieves a specific cursed stamp by its identifier. Cursed stamps simply have a negative stamp number.
This endpoint is equivalent to /api/v2/stamps/{id} but specifically for cursed stamps.
parameters:
- in: path
name: id
required: true
example: "-2"
schema:
type: string
description: Stamp number, cpid, or stamp_hash
responses:
"200":
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/StampResponseBody"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/cursed/block/{block_index}:
get:
operationId: getCursedStampsByBlock
tags:
- Cursed Stamps
summary: Get cursed stamps by block index
description: Retrieves all cursed stamps that were created or identified in a specific block.
parameters:
- in: path
name: block_index
required: true
example: 781141
schema:
type: integer
description: The block index
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/StampBlockResponseBody"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/src20:
get:
operationId: getSrc20Transactions
tags:
- SRC-20
summary: Get paginated valid SRC-20 transactions
description: Retrieves a paginated list of valid SRC-20 transactions with optional limit and page parameters.
parameters:
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Page"
- $ref: "#/components/parameters/Sort"
responses:
"200":
description: Successful response with paginated SRC-20 transactions
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedSrc20ResponseBody"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/src20/balance/{address}:
get:
operationId: getSrc20AddressBalance
tags:
- SRC-20
- Balance
summary: Get SRC-20 balances by BTC wallet address
description: Retrieves all SRC-20 token balances for a specific Bitcoin address.
parameters:
- in: path
name: address
required: true
example: "1GotRejB6XsGgMsM79TvcypeanDJRJbMtg"
schema:
type: string
description: The address of the wallet
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Page"
responses:
"200":
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedSrc20BalanceResponseBody"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/src20/balance/{address}/{tick}:
get:
operationId: getSrc20AddressTickBalance
tags:
- SRC-20
- Balance
summary: Get SRC-20 balance by address and tick
description: Retrieves the balance of a specific SRC-20 token (identified by tick) for a given Bitcoin address.
parameters:
- in: path
name: address
required: true
example: "bc1qx6tg7nls0u949wy8eudwcaw0rcq0vl7ehh6p9l"
schema:
type: string
description: The address of the wallet
- in: path
name: tick
required: true
example: "STAMP"
schema:
type: string
description: The tick value
responses:
"200":
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/Src20BalanceResponseBody"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/src20/balance/snapshot/{tick}:
get:
operationId: getSrc20TickSnapshot
tags:
- SRC-20
- Balance
summary: Get SRC-20 balance snapshot by tick on current block height
description: |
Retrieves a snapshot of all owners for the SRC-20 tick value based upon the current block height.
This provides a complete overview of token distribution at the current point in time.
parameters:
- in: path
name: tick
required: true
example: "KEVIN"
schema:
type: string
description: The SRC20 tick value
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Page"
responses:
"200":
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/Src20SnapshotResponseBody"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/src20/block/{block_index}:
get:
operationId: getSrc20BlockTransactions
tags:
- SRC-20
summary: Get paginated valid SRC-20 transactions from a specific block
description: Retrieves all SRC-20 transactions that occurred in a specific block. Results can be filtered and paginated.
parameters:
- in: path
name: block_index
required: true
example: 844757
schema:
type: integer
description: The index of the block
- in: query
name: op
required: false
schema:
type: string
description: The operation type, if applicable.
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Page"
- $ref: "#/components/parameters/Sort"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedSrc20ResponseBody"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/src20/block/{block_index}/{tick}:
get:
operationId: getSrc20BlockTickTransactions
tags:
- SRC-20
summary: Fetches SRC20 transactions for a given block and tick
description: Retrieves SRC20 transactions filtered by block index and tick value, with additional optional filtering and pagination parameters.
parameters:
- in: path
name: block_index
required: true
example: 844757
schema:
type: integer
format: int32
description: The index of the block.
- in: path
name: tick
required: true
example: "STAMP"
schema:
type: string
description: The tick value, possibly represented as an emoji.
- in: query
name: op
required: false
schema:
type: string
enum: [TRANSFER, MINT, DEPLOY]
description: The operation type, if applicable.
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Page"
responses:
"200":
description: Successful response with the list of valid SRC-20 transactions.
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedSrc20ResponseBody"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/src20/tick:
get:
operationId: getSrc20TickOperations
tags:
- SRC-20
summary: Get paginated valid SRC-20 transactions by operation type
description: Retrieve paginated valid SRC-20 transactions by operation type (DEPLOY, MINT, TRANSFER)
parameters:
- in: query
name: op
schema:
type: string
default: "DEPLOY"
enum: [TRANSFER, MINT, DEPLOY]
description: The operation type [TRANSFER, MINT, DEPLOY(DEFAULT)]
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Page"
- $ref: "#/components/parameters/Sort"
responses:
"200":
description: Successful response with paginated SRC-20 transactions
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedSrc20ResponseBody"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/src20/tick/{tick}:
get:
operationId: getSrc20TickData
tags:
- SRC-20
summary: Get paginated tick data
description: Retrieve paginated tick data for a specific tick
parameters:
- in: path
name: tick
required: true
example: "KEVIN"
description: Tick value
schema:
type: string
- in: query
name: op
schema:
type: string
default: "DEPLOY"
enum: [TRANSFER, MINT, DEPLOY]
description: The operation type [TRANSFER, MINT, DEPLOY]
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Page"
responses:
"200":
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedTickResponseBody"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/src20/tick/{tick}/deploy:
get:
operationId: getSrc20TickDeployInfo
tags:
- SRC-20
summary: Get deployment details for a specific tick
description: Retrieve deployment details for a specific tick in the tick API.
parameters:
- in: path
name: tick
required: true
example: "KEVIN"
description: The tick value.
schema:
type: string
responses:
"200":
description: Successful response with deployment details.
content:
application/json:
schema:
$ref: "#/components/schemas/TickResponseBody"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/src20/tx/{tx_hash}:
get:
operationId: getSrc20TransactionInfo
tags:
- SRC-20
summary: Get information about a specific transaction
description: Retrieves detailed information about a specific SRC-20 transaction by its transaction hash.
parameters:
- in: path
name: tx_hash
required: true
example: "9d5451a3ae07a6fe92907cef3c649f52544b8b4e67a6cae848b14e1d8047b5a4"
schema:
type: string
description: The hash of the transaction.
responses:
"200":
description: Successful response with transaction information.
content:
application/json:
schema:
$ref: "#/components/schemas/Src20ResponseBody"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/src101:
get:
operationId: getSrc101Transactions
tags:
- SRC-101
summary: Get paginated valid SRC-101 transactions
description: Retrieve paginated valid SRC-101 transactions with optional limit and page parameters
parameters:
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Page"
responses:
"200":
description: Successful response with paginated SRC-101 transactions
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedSrc101ResponseBody"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/src101/tx:
get:
operationId: getSrc101TransactionList
tags:
- SRC-101
summary: Get paginated SRC-101 transactions
description: Retrieve paginated SRC-101 transactions with optional filtering by block index, operation type, and validation status.
parameters:
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Page"
- in: query
name: block_index
schema:
type: integer
description: Filter transactions by block index
- in: query
name: op
schema:
type: string
enum: [mint, transfer]
description: Filter by operation type, either "mint" or "transfer"
- in: query
name: deploy_hash
schema:
type: string
description: Filter by deployment transaction hash
- in: query
name: valid
schema:
type: integer
enum: [0, 1]
description: Filter by validation status (1 for valid, 0 for invalid)
responses:
"200":
description: Successful response with paginated SRC-101 transactions
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedSrc101ResponseBody"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/src101/tx/{tx_hash}:
get:
operationId: getSrc101TransactionByHash
tags:
- SRC-101
summary: Get SRC-101 transaction by hash
description: Retrieve detailed information about a specific SRC-101 transaction using its transaction hash.
parameters:
- in: path
name: tx_hash
required: true
example: "bc1ppwujuuj8ejh4qu5lpfftgmfg3yue7ml7ge8vgzyqzmpu5rc9ttmsrkaeh8"
schema:
type: string
description: The hash of the transaction
responses:
"200":
description: Successful response with transaction details
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedSrc101ResponseBody"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/src101/{deploy_hash}/deploy:
get:
operationId: getSrc101DeployInfo
tags:
- SRC-101
summary: Get SRC-101 deployment details
description: Retrieve comprehensive deployment information for a specific SRC-101 token using its deployment transaction hash.
parameters:
- in: path
name: deploy_hash
required: true
example: "77fb147b72a551cf1e2f0b37dccf9982a1c25623a7fe8b4d5efaac566cf63fed"
schema:
type: string
description: The hash of the deploy transaction
responses:
"200":
description: Successful response with deployment details
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedSrc101ResponseBody"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/src101/{deploy_hash}:
get:
operationId: getSrc101Owner
tags:
- SRC-101
summary: Get SRC-101 from owners table
description: Return all src101 data that matches the rule by filtering
parameters:
- $ref: "#/components/parameters/Limit"