forked from stampchain-io/stampchain.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.yml
More file actions
5292 lines (5148 loc) · 167 KB
/
Copy pathschema.yml
File metadata and controls
5292 lines (5148 loc) · 167 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
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.3.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
- name: API Keys
description: API key signup and usage 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.
Includes current versions of system components (Bitcoin Core, Counterparty, Stamps Indexer) when available.
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
nodeVersions:
type: array
description: Current versions of system components (bitcoin_core, counterparty, stamps_indexer)
items:
type: object
required:
- component_name
- version_string
- detected_at
properties:
component_name:
type: string
description: Component identifier (e.g. bitcoin_core, counterparty:local, stamps_indexer)
version_string:
type: string
description: Full version string (e.g. 28.0.0, 11.0.3, 1.8.26+canary.258)
version_major:
type: integer
nullable: true
description: Parsed major version number
version_minor:
type: integer
nullable: true
description: Parsed minor version number
version_revision:
type: integer
nullable: true
description: Parsed revision/patch version number
version_suffix:
type: string
nullable: true
description: Version suffix (e.g. canary.258, rc1)
extra_info:
type: object
nullable: true
description: Component-specific metadata (varies per component)
detected_at:
type: string
format: date-time
description: When this version was first detected
example:
status: "OK"
services:
api: true
indexer: true
mempool: true
database: true
blockSync:
indexed: 800000
network: 800001
isSynced: true
stats:
src20Deployments: 100000
totalStamps: 1000000
nodeVersions:
- component_name: "bitcoin_core"
version_string: "28.0.0"
version_major: 28
version_minor: 0
version_revision: 0
version_suffix: null
extra_info:
subversion: "/Satoshi:28.0.0/"
protocolversion: 70016
connections: 125
detected_at: "2026-02-27T00:00:00.000Z"
- component_name: "stamps_indexer"
version_string: "1.8.26+canary.258"
version_major: 1
version_minor: 8
version_revision: 26
version_suffix: "canary.258"
extra_info: null
detected_at: "2026-02-27T00:00:00.000Z"
"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/versions:
get:
operationId: getApiVersions
tags:
- System
summary: Get available API versions
description: |
Returns information about all available API versions, their status, and migration information.
Use the API-Version header to request a specific API version:
- API-Version: 2.2 (stable, legacy)
- API-Version: 2.3 (current, with enhanced market data)
Default version is 2.3 when no header is specified.
parameters:
- in: header
name: API-Version
schema:
type: string
example: "2.3"
description: Specify the API version to use
responses:
"200":
description: Available API versions and their status
content:
application/json:
schema:
type: object
properties:
current:
type: string
description: Current/latest API version
example: "2.3"
requestedVersion:
type: string
description: Version used for this request
example: "2.3"
versions:
type: array
items:
type: object
properties:
version:
type: string
example: "2.3"
status:
type: string
enum: [current, supported, deprecated]
releaseDate:
type: string
format: date
endOfLife:
type: string
format: date
nullable: true
links:
type: object
properties:
documentation:
type: string
format: uri
changelog:
type: string
format: uri
migration:
type: string
format: uri
nullable: true
headers:
type: object
description: Supported version headers
links:
type: object
properties:
changelog:
type: string
format: uri
documentation:
type: string
format: uri
deprecationNotice:
type: object
nullable: true
description: Present if using deprecated version
properties:
message:
type: string
migrationGuide:
type: string
format: uri
currentVersion:
type: string
"400":
$ref: "#/components/responses/BadRequest"
"500":
$ref: "#/components/responses/InternalServerError"
/api/v2/versions/changelog:
get:
operationId: getApiChangelog
tags:
- System
summary: Get API version changelog
description: |
Returns detailed changelog for all API versions including:
- New features and fields added
- Improvements and optimizations
- Bug fixes
- Deprecated features
responses:
"200":
description: API version changelog
content:
application/json:
schema:
type: object
properties:
changelog:
type: array
items:
type: object
properties:
version:
type: string
example: "2.3.0"
releaseDate:
type: string
format: date
status:
type: string
enum: [current, supported, deprecated]
endOfLife:
type: string
format: date
nullable: true
changes:
type: object
properties:
added:
type: array
items:
type: string
improved:
type: array
items:
type: string
fixed:
type: array
items:
type: string
deprecated:
type: array
items:
type: string
currentVersion:
type: string
example: "2.3"
deprecationPolicy:
type: object
properties:
notice:
type: string
example: "6 months"
support:
type: string
example: "12 months after deprecation"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/NotFound"
"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/collections/{id}:
get:
operationId: getCollectionById
tags:
- Collections
summary: Get collection details by ID
description: |
Returns detailed information for a specific collection by its UUID identifier.
Includes collection metadata, paginated stamps array, and aggregated market data
from the collection_market_data table.
parameters:
- in: path
name: id
required: true
schema:
type: string
pattern: '^[0-9a-fA-F]{32}$'
description: Collection UUID (32 hex characters, with or without hyphens)
example: "550e8400e29b41d4a716446655440000"
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Page"
- in: query
name: includeMarketData
schema:
type: boolean
default: true
description: Whether to include market data in the response
responses:
"200":
description: Successful response with collection details
content:
application/json:
schema:
type: object
properties:
collection_id:
type: string
description: Collection UUID
collection_name:
type: string
description: Collection name
collection_description:
type: string
description: Collection description
creators:
type: array
items:
type: string
description: Array of creator addresses
stamp_count:
type: integer
description: Number of stamps in collection
total_editions:
type: number
description: Total editions across all stamps
stamps:
type: array
items:
$ref: "#/components/schemas/StampRow"
description: Paginated array of stamps in the collection
marketData:
$ref: "#/components/schemas/CollectionMarketData"
nullable: true
description: Aggregated market data from collection_market_data table
pagination:
type: object
properties:
page:
type: integer
limit:
type: integer
totalPages:
type: integer
total:
type: integer
"400":
$ref: "#/components/responses/BadRequest"
"404":
description: Collection not found
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponseBody"
"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 with market data filtering
description: |
Retrieves a paginated list of valid SRC-20 transactions with optional market data filtering.
The new filters allow querying based on holder metrics, price ranges, volume, and data quality.
API version 2.3 includes enhanced market data in responses.
parameters:
- in: header
name: API-Version
schema:
type: string
default: "2.3"
example: "2.3"
description: Specify the API version (2.2 for legacy format, 2.3 for enhanced market data)
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Page"
- name: sort
in: query
schema:
type: string
enum:
[
ASC,
DESC,
HOLDERS_DESC,
HOLDERS_ASC,
MARKET_CAP_DESC,
MARKET_CAP_ASC,
VALUE_DESC,
VALUE_ASC,
PRICE_DESC,
PRICE_ASC,
VOLUME_24H_DESC,
VOLUME_24H_ASC,
VOLUME_7D_DESC,
VOLUME_7D_ASC,
VOLUME_30D_DESC,
VOLUME_30D_ASC,
CHANGE_24H_DESC,
CHANGE_24H_ASC,
CHANGE_7D_DESC,
CHANGE_7D_ASC,
SUPPLY_DESC,
SUPPLY_ASC,
PROGRESS_DESC,
PROGRESS_ASC,
LIMIT_DESC,
LIMIT_ASC,
DECIMALS_DESC,
DECIMALS_ASC,
DEPLOY_DESC,
DEPLOY_ASC,
RECENT_DESC,
RECENT_ASC,
BLOCK_DESC,
BLOCK_ASC,
TICK_DESC,
TICK_ASC,
CREATOR_DESC,
CREATOR_ASC,
]
default: "DESC"
description: |
Comprehensive sort options for SRC-20 transactions:
**⚠️ OPERATION-SPECIFIC RESTRICTIONS:**
- **DEPLOY operations**: All sorting options available
- **MINT/TRANSFER operations**: Limited to basic, activity, and alphabetical sorting only
- **Market data and token metrics sorting**: Only available for DEPLOY operations
**Basic Sorting (All Operations):**
- ASC/DESC: Sort by block index (deploy date)
- DEPLOY_DESC/DEPLOY_ASC: Sort by deploy date (block_index)
- BLOCK_DESC/BLOCK_ASC: Sort by block index
- TICK_DESC/TICK_ASC: Sort alphabetically by tick name
- CREATOR_DESC/CREATOR_ASC: Sort by creator address
**DEPLOY-Only Market Data Sorting:**
- HOLDERS_DESC/HOLDERS_ASC: Sort by holder count
- MARKET_CAP_DESC/MARKET_CAP_ASC: Sort by market cap (BTC)
- VALUE_DESC/VALUE_ASC: Sort by floor price/market value
- PRICE_DESC/PRICE_ASC: Alias for VALUE sorting
- VOLUME_24H/7D/30D_DESC/ASC: Sort by trading volume
- CHANGE_24H/7D_DESC/ASC: Sort by price change percentage
**DEPLOY-Only Token Metrics Sorting:**
- SUPPLY_DESC/SUPPLY_ASC: Sort by max supply (numeric)
- PROGRESS_DESC/PROGRESS_ASC: Sort by mint progress percentage
- LIMIT_DESC/LIMIT_ASC: Sort by mint limit per transaction
- DECIMALS_DESC/DECIMALS_ASC: Sort by token decimals
**MINT/TRANSFER-Only Sorting:**
- AMOUNT_DESC/AMOUNT_ASC: Sort by transaction amount
- RECENT_DESC/RECENT_ASC: Sort by recent activity (block_time)
**Example Usage:**
- `?op=DEPLOY&sortBy=SUPPLY_DESC` ✅ Valid
- `?op=MINT&sortBy=SUPPLY_DESC` ❌ Invalid - returns error
- `?op=MINT&sortBy=AMOUNT_DESC` ✅ Valid
# Market Data Filters for SRC-20 (Task 42)
- name: minHolderCount
in: query
description: Minimum number of holders for the SRC-20 token
schema:
type: integer
minimum: 0
example: 10
- name: maxHolderCount
in: query
description: Maximum number of holders for the SRC-20 token
schema:
type: integer
minimum: 0
example: 1000
- name: minFloorPriceBTC
in: query
description: Minimum floor price in BTC
schema:
type: number
format: float
minimum: 0
example: 0.00001
- name: maxFloorPriceBTC
in: query
description: Maximum floor price in BTC
schema:
type: number
format: float
minimum: 0
example: 0.1
- name: minVolume24h
in: query
description: Minimum 24-hour trading volume in BTC
schema:
type: number
format: float
minimum: 0
example: 0.001
- name: minPriceChange24h