You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dist/public/bitcoin-com-mainnet-rest-v2.json
+168-5Lines changed: 168 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,17 @@
2
2
"components": {
3
3
"schemas": {
4
4
"Address": {
5
+
"type": "object",
6
+
"properties": {
7
+
"addresses": {
8
+
"type": "string"
9
+
},
10
+
"tokenIds": {
11
+
"type": "string"
12
+
}
13
+
}
14
+
},
15
+
"BalanceAddress": {
5
16
"type": "string"
6
17
},
7
18
"Hash": {
@@ -28,6 +39,9 @@
28
39
"SLPTokenId": {
29
40
"type": "string"
30
41
},
42
+
"SLPAddress": {
43
+
"type": "string"
44
+
},
31
45
"RawTxid": {
32
46
"type": "string"
33
47
},
@@ -40,6 +54,13 @@
40
54
"Proof": {
41
55
"type": "string"
42
56
},
57
+
"BalanceAddresses": {
58
+
"type": "array",
59
+
"items": {
60
+
"$ref": "#/components/schemas/BalanceAddress"
61
+
},
62
+
"example": []
63
+
},
43
64
"Addresses": {
44
65
"type": "object",
45
66
"properties": {
@@ -179,6 +200,18 @@
179
200
}
180
201
}
181
202
},
203
+
"SLPAddresses": {
204
+
"type": "object",
205
+
"properties": {
206
+
"addresses": {
207
+
"type": "array",
208
+
"items": {
209
+
"$ref": "#/components/schemas/SLPAddress"
210
+
},
211
+
"example": []
212
+
}
213
+
}
214
+
},
182
215
"RawTxids": {
183
216
"type": "object",
184
217
"properties": {
@@ -1201,7 +1234,7 @@
1201
1234
"openapi": "3.0.0",
1202
1235
"info": {
1203
1236
"description": "rest.bitcoin.com is the REST layer for Bitcoin.com's Cloud. More info: [developer.bitcoin.com/rest](https://developer.bitcoin.com/rest). Chatroom [geni.us/CashDev](http://geni.us/CashDev)",
1204
-
"version": "3.12.1",
1237
+
"version": "3.12.2",
1205
1238
"title": "REST",
1206
1239
"license": {
1207
1240
"name": "MIT",
@@ -2902,9 +2935,9 @@
2902
2935
"tags": [
2903
2936
"slp"
2904
2937
],
2905
-
"summary": "list slp balances for address",
2906
-
"description": "List SLP token balances for address",
2907
-
"operationId": "balancesForAddress",
2938
+
"summary": "list slp balances for single address",
2939
+
"description": "List SLP token balances for single address",
2940
+
"operationId": "balancesForAddressSingle",
2908
2941
"parameters": [
2909
2942
{
2910
2943
"name": "address",
@@ -2924,6 +2957,32 @@
2924
2957
}
2925
2958
}
2926
2959
},
2960
+
"/slp/balancesForAddress": {
2961
+
"post": {
2962
+
"tags": [
2963
+
"slp"
2964
+
],
2965
+
"summary": "list slp balances for bulk addresses",
2966
+
"description": "List SLP token balances for bulk addresses",
2967
+
"operationId": "balancesForAddressBulk",
2968
+
"requestBody": {
2969
+
"description": "",
2970
+
"required": true,
2971
+
"content": {
2972
+
"application/json": {
2973
+
"schema": {
2974
+
"$ref": "#/components/schemas/SLPAddresses"
2975
+
}
2976
+
}
2977
+
}
2978
+
},
2979
+
"responses": {
2980
+
"200": {
2981
+
"description": "successful response"
2982
+
}
2983
+
}
2984
+
}
2985
+
},
2927
2986
"/slp/balancesForToken/{tokenId}": {
2928
2987
"get": {
2929
2988
"tags": [
@@ -2951,14 +3010,40 @@
2951
3010
}
2952
3011
}
2953
3012
},
3013
+
"/slp/balancesForToken": {
3014
+
"post": {
3015
+
"tags": [
3016
+
"slp"
3017
+
],
3018
+
"summary": "list SLP addresses and balances for bulk tokenIds",
3019
+
"description": "List SLP addresses and balances for bulk tokenIds",
3020
+
"operationId": "balancesForTokenBulk",
3021
+
"requestBody": {
3022
+
"description": "",
3023
+
"required": true,
3024
+
"content": {
3025
+
"application/json": {
3026
+
"schema": {
3027
+
"$ref": "#/components/schemas/SLPTokenIds"
3028
+
}
3029
+
}
3030
+
}
3031
+
},
3032
+
"responses": {
3033
+
"200": {
3034
+
"description": "successful response"
3035
+
}
3036
+
}
3037
+
}
3038
+
},
2954
3039
"/slp/balance/{address}/{tokenId}": {
2955
3040
"get": {
2956
3041
"tags": [
2957
3042
"slp"
2958
3043
],
2959
3044
"summary": "list single slp token balance for address",
2960
3045
"description": "List single SLP token balance for address",
2961
-
"operationId": "singleBalanceForAddress",
3046
+
"operationId": "balanceForAddressSingle",
2962
3047
"parameters": [
2963
3048
{
2964
3049
"name": "address",
@@ -2988,6 +3073,32 @@
2988
3073
}
2989
3074
}
2990
3075
},
3076
+
"/slp/balance": {
3077
+
"post": {
3078
+
"tags": [
3079
+
"slp"
3080
+
],
3081
+
"summary": "list bulk slp token balances for addresses",
3082
+
"description": "List bulk SLP token balances for addresses",
3083
+
"operationId": "balanceForAddressBulk",
3084
+
"requestBody": {
3085
+
"description": "",
3086
+
"required": true,
3087
+
"content": {
3088
+
"application/json": {
3089
+
"schema": {
3090
+
"$ref": "#/components/schemas/BalanceAddresses"
3091
+
}
3092
+
}
3093
+
}
3094
+
},
3095
+
"responses": {
3096
+
"200": {
3097
+
"description": "successful response"
3098
+
}
3099
+
}
3100
+
}
3101
+
},
2991
3102
"/slp/validateTxid/{txid}": {
2992
3103
"get": {
2993
3104
"tags": [
@@ -3158,6 +3269,32 @@
3158
3269
}
3159
3270
}
3160
3271
},
3272
+
"/slp/transactions": {
3273
+
"post": {
3274
+
"tags": [
3275
+
"slp"
3276
+
],
3277
+
"summary": "Bulk SLP transactions by tokenId and address",
3278
+
"description": "Bulk Transactions by tokenId and address.",
3279
+
"operationId": "txsTokenIdAddressBulk",
3280
+
"requestBody": {
3281
+
"description": "",
3282
+
"required": true,
3283
+
"content": {
3284
+
"application/json": {
3285
+
"schema": {
3286
+
"$ref": "#/components/schemas/BalanceAddresses"
3287
+
}
3288
+
}
3289
+
}
3290
+
},
3291
+
"responses": {
3292
+
"200": {
3293
+
"description": "successful response"
3294
+
}
3295
+
}
3296
+
}
3297
+
},
3161
3298
"/slp/burnTotal/{transactionId}": {
3162
3299
"get": {
3163
3300
"tags": [
@@ -3185,6 +3322,32 @@
3185
3322
}
3186
3323
}
3187
3324
},
3325
+
"/slp/burnTotal": {
3326
+
"post": {
3327
+
"tags": [
3328
+
"slp"
3329
+
],
3330
+
"summary": "Total burn count for slp transactions",
3331
+
"description": "total input, ouput and burn counts by transaction Id.",
0 commit comments