@imtbl/sdk 0.24.1 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blockchain_data.d.ts +324 -0
- package/dist/blockchain_data.js +570 -44
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.js +693 -67
- package/dist/checkout_widgets.js +1 -1
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +6 -6
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +699 -73
- package/dist/index.d.ts +474 -14
- package/dist/index.js +699 -73
- package/dist/orderbook.d.ts +142 -12
- package/dist/orderbook.js +124 -24
- package/dist/passport.js +293 -11
- package/package.json +1 -1
package/dist/blockchain_data.js
CHANGED
|
@@ -564,12 +564,13 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
564
564
|
* List all collections
|
|
565
565
|
* @summary List all collections
|
|
566
566
|
* @param {string} chainName The name of chain
|
|
567
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
567
568
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
568
569
|
* @param {number} [pageSize] Maximum number of items to return
|
|
569
570
|
* @param {*} [options] Override http request option.
|
|
570
571
|
* @throws {RequiredError}
|
|
571
572
|
*/
|
|
572
|
-
listCollections: async (chainName, pageCursor, pageSize, options = {}) => {
|
|
573
|
+
listCollections: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
573
574
|
// verify required parameter 'chainName' is not null or undefined
|
|
574
575
|
assertParamExists('listCollections', 'chainName', chainName);
|
|
575
576
|
const localVarPath = `/v1/chains/{chain_name}/collections`
|
|
@@ -583,6 +584,11 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
583
584
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
584
585
|
const localVarHeaderParameter = {};
|
|
585
586
|
const localVarQueryParameter = {};
|
|
587
|
+
if (fromUpdatedAt !== undefined) {
|
|
588
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
589
|
+
fromUpdatedAt.toISOString() :
|
|
590
|
+
fromUpdatedAt;
|
|
591
|
+
}
|
|
586
592
|
if (pageCursor !== undefined) {
|
|
587
593
|
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
588
594
|
}
|
|
@@ -667,7 +673,7 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
667
673
|
const localVarHeaderParameter = {};
|
|
668
674
|
const localVarQueryParameter = {};
|
|
669
675
|
// authentication ImmutableApiKey required
|
|
670
|
-
await setApiKeyToObject(localVarHeaderParameter, "
|
|
676
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-Key", configuration);
|
|
671
677
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
672
678
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
673
679
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -703,13 +709,14 @@ const CollectionsApiFp = function (configuration) {
|
|
|
703
709
|
* List all collections
|
|
704
710
|
* @summary List all collections
|
|
705
711
|
* @param {string} chainName The name of chain
|
|
712
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
706
713
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
707
714
|
* @param {number} [pageSize] Maximum number of items to return
|
|
708
715
|
* @param {*} [options] Override http request option.
|
|
709
716
|
* @throws {RequiredError}
|
|
710
717
|
*/
|
|
711
|
-
async listCollections(chainName, pageCursor, pageSize, options) {
|
|
712
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, pageCursor, pageSize, options);
|
|
718
|
+
async listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
719
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
713
720
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
714
721
|
},
|
|
715
722
|
/**
|
|
@@ -763,13 +770,14 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
763
770
|
* List all collections
|
|
764
771
|
* @summary List all collections
|
|
765
772
|
* @param {string} chainName The name of chain
|
|
773
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
766
774
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
767
775
|
* @param {number} [pageSize] Maximum number of items to return
|
|
768
776
|
* @param {*} [options] Override http request option.
|
|
769
777
|
* @throws {RequiredError}
|
|
770
778
|
*/
|
|
771
|
-
listCollections(chainName, pageCursor, pageSize, options) {
|
|
772
|
-
return localVarFp.listCollections(chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
779
|
+
listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
780
|
+
return localVarFp.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
773
781
|
},
|
|
774
782
|
/**
|
|
775
783
|
* List collections by NFT owner account address
|
|
@@ -825,7 +833,7 @@ class CollectionsApi extends BaseAPI {
|
|
|
825
833
|
* @memberof CollectionsApi
|
|
826
834
|
*/
|
|
827
835
|
listCollections(requestParameters, options) {
|
|
828
|
-
return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
836
|
+
return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
829
837
|
}
|
|
830
838
|
/**
|
|
831
839
|
* List collections by NFT owner account address
|
|
@@ -871,8 +879,8 @@ class CollectionsApi extends BaseAPI {
|
|
|
871
879
|
const MetadataApiAxiosParamCreator = function (configuration) {
|
|
872
880
|
return {
|
|
873
881
|
/**
|
|
874
|
-
* Get
|
|
875
|
-
* @summary Get
|
|
882
|
+
* Get metadata by ID
|
|
883
|
+
* @summary Get metadata by ID
|
|
876
884
|
* @param {string} chainName The name of chain
|
|
877
885
|
* @param {string} contractAddress The address of metadata contract
|
|
878
886
|
* @param {string} metadataId The id of the metadata
|
|
@@ -908,7 +916,55 @@ const MetadataApiAxiosParamCreator = function (configuration) {
|
|
|
908
916
|
};
|
|
909
917
|
},
|
|
910
918
|
/**
|
|
911
|
-
*
|
|
919
|
+
* Get a list of metadata by from the a given contract
|
|
920
|
+
* @summary Get a list of metadata by from the a given contract
|
|
921
|
+
* @param {string} chainName The name of chain
|
|
922
|
+
* @param {string} contractAddress The address of metadata contract
|
|
923
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
924
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
925
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
926
|
+
* @param {*} [options] Override http request option.
|
|
927
|
+
* @throws {RequiredError}
|
|
928
|
+
*/
|
|
929
|
+
listMetadata: async (chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
930
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
931
|
+
assertParamExists('listMetadata', 'chainName', chainName);
|
|
932
|
+
// verify required parameter 'contractAddress' is not null or undefined
|
|
933
|
+
assertParamExists('listMetadata', 'contractAddress', contractAddress);
|
|
934
|
+
const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/metadata`
|
|
935
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
|
|
936
|
+
.replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)));
|
|
937
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
938
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
939
|
+
let baseOptions;
|
|
940
|
+
if (configuration) {
|
|
941
|
+
baseOptions = configuration.baseOptions;
|
|
942
|
+
}
|
|
943
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
944
|
+
const localVarHeaderParameter = {};
|
|
945
|
+
const localVarQueryParameter = {};
|
|
946
|
+
if (fromUpdatedAt !== undefined) {
|
|
947
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
948
|
+
fromUpdatedAt.toISOString() :
|
|
949
|
+
fromUpdatedAt;
|
|
950
|
+
}
|
|
951
|
+
if (pageCursor !== undefined) {
|
|
952
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
953
|
+
}
|
|
954
|
+
if (pageSize !== undefined) {
|
|
955
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
956
|
+
}
|
|
957
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
958
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
959
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
960
|
+
return {
|
|
961
|
+
url: toPathString(localVarUrlObj),
|
|
962
|
+
options: localVarRequestOptions,
|
|
963
|
+
};
|
|
964
|
+
},
|
|
965
|
+
/**
|
|
966
|
+
* Refresh stacked metadata
|
|
967
|
+
* @summary Refresh stacked metadata
|
|
912
968
|
* @param {string} chainName The name of chain
|
|
913
969
|
* @param {string} contractAddress Contract address
|
|
914
970
|
* @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
|
|
@@ -935,7 +991,7 @@ const MetadataApiAxiosParamCreator = function (configuration) {
|
|
|
935
991
|
const localVarHeaderParameter = {};
|
|
936
992
|
const localVarQueryParameter = {};
|
|
937
993
|
// authentication ImmutableApiKey required
|
|
938
|
-
await setApiKeyToObject(localVarHeaderParameter, "
|
|
994
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-Key", configuration);
|
|
939
995
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
940
996
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
941
997
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -947,8 +1003,8 @@ const MetadataApiAxiosParamCreator = function (configuration) {
|
|
|
947
1003
|
};
|
|
948
1004
|
},
|
|
949
1005
|
/**
|
|
950
|
-
*
|
|
951
|
-
* @summary
|
|
1006
|
+
* Refresh NFT metadata
|
|
1007
|
+
* @summary Refresh NFT metadata
|
|
952
1008
|
* @param {string} contractAddress The address of contract
|
|
953
1009
|
* @param {string} chainName The name of chain
|
|
954
1010
|
* @param {RefreshNFTMetadataByTokenIDRequest} refreshNFTMetadataByTokenIDRequest the request body
|
|
@@ -975,7 +1031,7 @@ const MetadataApiAxiosParamCreator = function (configuration) {
|
|
|
975
1031
|
const localVarHeaderParameter = {};
|
|
976
1032
|
const localVarQueryParameter = {};
|
|
977
1033
|
// authentication ImmutableApiKey required
|
|
978
|
-
await setApiKeyToObject(localVarHeaderParameter, "
|
|
1034
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-Key", configuration);
|
|
979
1035
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
980
1036
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
981
1037
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -996,8 +1052,8 @@ const MetadataApiFp = function (configuration) {
|
|
|
996
1052
|
const localVarAxiosParamCreator = MetadataApiAxiosParamCreator(configuration);
|
|
997
1053
|
return {
|
|
998
1054
|
/**
|
|
999
|
-
* Get
|
|
1000
|
-
* @summary Get
|
|
1055
|
+
* Get metadata by ID
|
|
1056
|
+
* @summary Get metadata by ID
|
|
1001
1057
|
* @param {string} chainName The name of chain
|
|
1002
1058
|
* @param {string} contractAddress The address of metadata contract
|
|
1003
1059
|
* @param {string} metadataId The id of the metadata
|
|
@@ -1009,7 +1065,23 @@ const MetadataApiFp = function (configuration) {
|
|
|
1009
1065
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1010
1066
|
},
|
|
1011
1067
|
/**
|
|
1012
|
-
*
|
|
1068
|
+
* Get a list of metadata by from the a given contract
|
|
1069
|
+
* @summary Get a list of metadata by from the a given contract
|
|
1070
|
+
* @param {string} chainName The name of chain
|
|
1071
|
+
* @param {string} contractAddress The address of metadata contract
|
|
1072
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1073
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1074
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
*/
|
|
1078
|
+
async listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1079
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
|
|
1080
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1081
|
+
},
|
|
1082
|
+
/**
|
|
1083
|
+
* Refresh stacked metadata
|
|
1084
|
+
* @summary Refresh stacked metadata
|
|
1013
1085
|
* @param {string} chainName The name of chain
|
|
1014
1086
|
* @param {string} contractAddress Contract address
|
|
1015
1087
|
* @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
|
|
@@ -1021,8 +1093,8 @@ const MetadataApiFp = function (configuration) {
|
|
|
1021
1093
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1022
1094
|
},
|
|
1023
1095
|
/**
|
|
1024
|
-
*
|
|
1025
|
-
* @summary
|
|
1096
|
+
* Refresh NFT metadata
|
|
1097
|
+
* @summary Refresh NFT metadata
|
|
1026
1098
|
* @param {string} contractAddress The address of contract
|
|
1027
1099
|
* @param {string} chainName The name of chain
|
|
1028
1100
|
* @param {RefreshNFTMetadataByTokenIDRequest} refreshNFTMetadataByTokenIDRequest the request body
|
|
@@ -1043,8 +1115,8 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
1043
1115
|
const localVarFp = MetadataApiFp(configuration);
|
|
1044
1116
|
return {
|
|
1045
1117
|
/**
|
|
1046
|
-
* Get
|
|
1047
|
-
* @summary Get
|
|
1118
|
+
* Get metadata by ID
|
|
1119
|
+
* @summary Get metadata by ID
|
|
1048
1120
|
* @param {string} chainName The name of chain
|
|
1049
1121
|
* @param {string} contractAddress The address of metadata contract
|
|
1050
1122
|
* @param {string} metadataId The id of the metadata
|
|
@@ -1055,7 +1127,22 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
1055
1127
|
return localVarFp.getMetadata(chainName, contractAddress, metadataId, options).then((request) => request(axios, basePath));
|
|
1056
1128
|
},
|
|
1057
1129
|
/**
|
|
1058
|
-
*
|
|
1130
|
+
* Get a list of metadata by from the a given contract
|
|
1131
|
+
* @summary Get a list of metadata by from the a given contract
|
|
1132
|
+
* @param {string} chainName The name of chain
|
|
1133
|
+
* @param {string} contractAddress The address of metadata contract
|
|
1134
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1135
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1136
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1137
|
+
* @param {*} [options] Override http request option.
|
|
1138
|
+
* @throws {RequiredError}
|
|
1139
|
+
*/
|
|
1140
|
+
listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1141
|
+
return localVarFp.listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
1142
|
+
},
|
|
1143
|
+
/**
|
|
1144
|
+
* Refresh stacked metadata
|
|
1145
|
+
* @summary Refresh stacked metadata
|
|
1059
1146
|
* @param {string} chainName The name of chain
|
|
1060
1147
|
* @param {string} contractAddress Contract address
|
|
1061
1148
|
* @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
|
|
@@ -1066,8 +1153,8 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
1066
1153
|
return localVarFp.refreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest, options).then((request) => request(axios, basePath));
|
|
1067
1154
|
},
|
|
1068
1155
|
/**
|
|
1069
|
-
*
|
|
1070
|
-
* @summary
|
|
1156
|
+
* Refresh NFT metadata
|
|
1157
|
+
* @summary Refresh NFT metadata
|
|
1071
1158
|
* @param {string} contractAddress The address of contract
|
|
1072
1159
|
* @param {string} chainName The name of chain
|
|
1073
1160
|
* @param {RefreshNFTMetadataByTokenIDRequest} refreshNFTMetadataByTokenIDRequest the request body
|
|
@@ -1087,8 +1174,8 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
1087
1174
|
*/
|
|
1088
1175
|
class MetadataApi extends BaseAPI {
|
|
1089
1176
|
/**
|
|
1090
|
-
* Get
|
|
1091
|
-
* @summary Get
|
|
1177
|
+
* Get metadata by ID
|
|
1178
|
+
* @summary Get metadata by ID
|
|
1092
1179
|
* @param {MetadataApiGetMetadataRequest} requestParameters Request parameters.
|
|
1093
1180
|
* @param {*} [options] Override http request option.
|
|
1094
1181
|
* @throws {RequiredError}
|
|
@@ -1098,7 +1185,19 @@ class MetadataApi extends BaseAPI {
|
|
|
1098
1185
|
return MetadataApiFp(this.configuration).getMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.metadataId, options).then((request) => request(this.axios, this.basePath));
|
|
1099
1186
|
}
|
|
1100
1187
|
/**
|
|
1101
|
-
*
|
|
1188
|
+
* Get a list of metadata by from the a given contract
|
|
1189
|
+
* @summary Get a list of metadata by from the a given contract
|
|
1190
|
+
* @param {MetadataApiListMetadataRequest} requestParameters Request parameters.
|
|
1191
|
+
* @param {*} [options] Override http request option.
|
|
1192
|
+
* @throws {RequiredError}
|
|
1193
|
+
* @memberof MetadataApi
|
|
1194
|
+
*/
|
|
1195
|
+
listMetadata(requestParameters, options) {
|
|
1196
|
+
return MetadataApiFp(this.configuration).listMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* Refresh stacked metadata
|
|
1200
|
+
* @summary Refresh stacked metadata
|
|
1102
1201
|
* @param {MetadataApiRefreshMetadataByIDRequest} requestParameters Request parameters.
|
|
1103
1202
|
* @param {*} [options] Override http request option.
|
|
1104
1203
|
* @throws {RequiredError}
|
|
@@ -1108,8 +1207,8 @@ class MetadataApi extends BaseAPI {
|
|
|
1108
1207
|
return MetadataApiFp(this.configuration).refreshMetadataByID(requestParameters.chainName, requestParameters.contractAddress, requestParameters.refreshMetadataByIDRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1109
1208
|
}
|
|
1110
1209
|
/**
|
|
1111
|
-
*
|
|
1112
|
-
* @summary
|
|
1210
|
+
* Refresh NFT metadata
|
|
1211
|
+
* @summary Refresh NFT metadata
|
|
1113
1212
|
* @param {MetadataApiRefreshNFTMetadataByTokenIDRequest} requestParameters Request parameters.
|
|
1114
1213
|
* @param {*} [options] Override http request option.
|
|
1115
1214
|
* @throws {RequiredError}
|
|
@@ -1184,6 +1283,53 @@ const NftOwnersApiAxiosParamCreator = function (configuration) {
|
|
|
1184
1283
|
options: localVarRequestOptions,
|
|
1185
1284
|
};
|
|
1186
1285
|
},
|
|
1286
|
+
/**
|
|
1287
|
+
* List owners by contract address
|
|
1288
|
+
* @summary List owners by contract address
|
|
1289
|
+
* @param {string} contractAddress The address of contract
|
|
1290
|
+
* @param {string} chainName The name of chain
|
|
1291
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1292
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1293
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1294
|
+
* @param {*} [options] Override http request option.
|
|
1295
|
+
* @throws {RequiredError}
|
|
1296
|
+
*/
|
|
1297
|
+
listOwnersByContractAddress: async (contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
1298
|
+
// verify required parameter 'contractAddress' is not null or undefined
|
|
1299
|
+
assertParamExists('listOwnersByContractAddress', 'contractAddress', contractAddress);
|
|
1300
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1301
|
+
assertParamExists('listOwnersByContractAddress', 'chainName', chainName);
|
|
1302
|
+
const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/owners`
|
|
1303
|
+
.replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
|
|
1304
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1305
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1306
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1307
|
+
let baseOptions;
|
|
1308
|
+
if (configuration) {
|
|
1309
|
+
baseOptions = configuration.baseOptions;
|
|
1310
|
+
}
|
|
1311
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1312
|
+
const localVarHeaderParameter = {};
|
|
1313
|
+
const localVarQueryParameter = {};
|
|
1314
|
+
if (fromUpdatedAt !== undefined) {
|
|
1315
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
1316
|
+
fromUpdatedAt.toISOString() :
|
|
1317
|
+
fromUpdatedAt;
|
|
1318
|
+
}
|
|
1319
|
+
if (pageCursor !== undefined) {
|
|
1320
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
1321
|
+
}
|
|
1322
|
+
if (pageSize !== undefined) {
|
|
1323
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
1324
|
+
}
|
|
1325
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1326
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1327
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1328
|
+
return {
|
|
1329
|
+
url: toPathString(localVarUrlObj),
|
|
1330
|
+
options: localVarRequestOptions,
|
|
1331
|
+
};
|
|
1332
|
+
},
|
|
1187
1333
|
};
|
|
1188
1334
|
};
|
|
1189
1335
|
/**
|
|
@@ -1208,6 +1354,21 @@ const NftOwnersApiFp = function (configuration) {
|
|
|
1208
1354
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options);
|
|
1209
1355
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1210
1356
|
},
|
|
1357
|
+
/**
|
|
1358
|
+
* List owners by contract address
|
|
1359
|
+
* @summary List owners by contract address
|
|
1360
|
+
* @param {string} contractAddress The address of contract
|
|
1361
|
+
* @param {string} chainName The name of chain
|
|
1362
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1363
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1364
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1365
|
+
* @param {*} [options] Override http request option.
|
|
1366
|
+
* @throws {RequiredError}
|
|
1367
|
+
*/
|
|
1368
|
+
async listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1369
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
1370
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1371
|
+
},
|
|
1211
1372
|
};
|
|
1212
1373
|
};
|
|
1213
1374
|
/**
|
|
@@ -1231,6 +1392,20 @@ const NftOwnersApiFactory = function (configuration, basePath, axios) {
|
|
|
1231
1392
|
listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options) {
|
|
1232
1393
|
return localVarFp.listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
1233
1394
|
},
|
|
1395
|
+
/**
|
|
1396
|
+
* List owners by contract address
|
|
1397
|
+
* @summary List owners by contract address
|
|
1398
|
+
* @param {string} contractAddress The address of contract
|
|
1399
|
+
* @param {string} chainName The name of chain
|
|
1400
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1401
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1402
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1403
|
+
* @param {*} [options] Override http request option.
|
|
1404
|
+
* @throws {RequiredError}
|
|
1405
|
+
*/
|
|
1406
|
+
listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1407
|
+
return localVarFp.listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
1408
|
+
},
|
|
1234
1409
|
};
|
|
1235
1410
|
};
|
|
1236
1411
|
/**
|
|
@@ -1251,6 +1426,17 @@ class NftOwnersApi extends BaseAPI {
|
|
|
1251
1426
|
listNFTOwners(requestParameters, options) {
|
|
1252
1427
|
return NftOwnersApiFp(this.configuration).listNFTOwners(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1253
1428
|
}
|
|
1429
|
+
/**
|
|
1430
|
+
* List owners by contract address
|
|
1431
|
+
* @summary List owners by contract address
|
|
1432
|
+
* @param {NftOwnersApiListOwnersByContractAddressRequest} requestParameters Request parameters.
|
|
1433
|
+
* @param {*} [options] Override http request option.
|
|
1434
|
+
* @throws {RequiredError}
|
|
1435
|
+
* @memberof NftOwnersApi
|
|
1436
|
+
*/
|
|
1437
|
+
listOwnersByContractAddress(requestParameters, options) {
|
|
1438
|
+
return NftOwnersApiFp(this.configuration).listOwnersByContractAddress(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1439
|
+
}
|
|
1254
1440
|
}
|
|
1255
1441
|
|
|
1256
1442
|
/* tslint:disable */
|
|
@@ -1309,17 +1495,106 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
1309
1495
|
options: localVarRequestOptions,
|
|
1310
1496
|
};
|
|
1311
1497
|
},
|
|
1498
|
+
/**
|
|
1499
|
+
* List all NFT owners on a chain
|
|
1500
|
+
* @summary List all NFT owners
|
|
1501
|
+
* @param {string} chainName The name of chain
|
|
1502
|
+
* @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
|
|
1503
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1504
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1505
|
+
* @param {*} [options] Override http request option.
|
|
1506
|
+
* @throws {RequiredError}
|
|
1507
|
+
*/
|
|
1508
|
+
listAllNFTOwners: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
1509
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1510
|
+
assertParamExists('listAllNFTOwners', 'chainName', chainName);
|
|
1511
|
+
// verify required parameter 'fromUpdatedAt' is not null or undefined
|
|
1512
|
+
assertParamExists('listAllNFTOwners', 'fromUpdatedAt', fromUpdatedAt);
|
|
1513
|
+
const localVarPath = `/v1/chains/{chain_name}/nft-owners`
|
|
1514
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1515
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1516
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1517
|
+
let baseOptions;
|
|
1518
|
+
if (configuration) {
|
|
1519
|
+
baseOptions = configuration.baseOptions;
|
|
1520
|
+
}
|
|
1521
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1522
|
+
const localVarHeaderParameter = {};
|
|
1523
|
+
const localVarQueryParameter = {};
|
|
1524
|
+
if (fromUpdatedAt !== undefined) {
|
|
1525
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
1526
|
+
fromUpdatedAt.toISOString() :
|
|
1527
|
+
fromUpdatedAt;
|
|
1528
|
+
}
|
|
1529
|
+
if (pageCursor !== undefined) {
|
|
1530
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
1531
|
+
}
|
|
1532
|
+
if (pageSize !== undefined) {
|
|
1533
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
1534
|
+
}
|
|
1535
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1536
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1537
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1538
|
+
return {
|
|
1539
|
+
url: toPathString(localVarUrlObj),
|
|
1540
|
+
options: localVarRequestOptions,
|
|
1541
|
+
};
|
|
1542
|
+
},
|
|
1543
|
+
/**
|
|
1544
|
+
* List all NFTs on a chain
|
|
1545
|
+
* @summary List all NFTs
|
|
1546
|
+
* @param {string} chainName The name of chain
|
|
1547
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1548
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1549
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1550
|
+
* @param {*} [options] Override http request option.
|
|
1551
|
+
* @throws {RequiredError}
|
|
1552
|
+
*/
|
|
1553
|
+
listAllNFTs: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
1554
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1555
|
+
assertParamExists('listAllNFTs', 'chainName', chainName);
|
|
1556
|
+
const localVarPath = `/v1/chains/{chain_name}/nfts`
|
|
1557
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1558
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1559
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1560
|
+
let baseOptions;
|
|
1561
|
+
if (configuration) {
|
|
1562
|
+
baseOptions = configuration.baseOptions;
|
|
1563
|
+
}
|
|
1564
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1565
|
+
const localVarHeaderParameter = {};
|
|
1566
|
+
const localVarQueryParameter = {};
|
|
1567
|
+
if (fromUpdatedAt !== undefined) {
|
|
1568
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
1569
|
+
fromUpdatedAt.toISOString() :
|
|
1570
|
+
fromUpdatedAt;
|
|
1571
|
+
}
|
|
1572
|
+
if (pageCursor !== undefined) {
|
|
1573
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
1574
|
+
}
|
|
1575
|
+
if (pageSize !== undefined) {
|
|
1576
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
1577
|
+
}
|
|
1578
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1579
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1580
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1581
|
+
return {
|
|
1582
|
+
url: toPathString(localVarUrlObj),
|
|
1583
|
+
options: localVarRequestOptions,
|
|
1584
|
+
};
|
|
1585
|
+
},
|
|
1312
1586
|
/**
|
|
1313
1587
|
* List NFTs by contract address
|
|
1314
1588
|
* @summary List NFTs by contract address
|
|
1315
1589
|
* @param {string} contractAddress Contract address
|
|
1316
1590
|
* @param {string} chainName The name of chain
|
|
1591
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1317
1592
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1318
1593
|
* @param {number} [pageSize] Maximum number of items to return
|
|
1319
1594
|
* @param {*} [options] Override http request option.
|
|
1320
1595
|
* @throws {RequiredError}
|
|
1321
1596
|
*/
|
|
1322
|
-
listNFTs: async (contractAddress, chainName, pageCursor, pageSize, options = {}) => {
|
|
1597
|
+
listNFTs: async (contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
1323
1598
|
// verify required parameter 'contractAddress' is not null or undefined
|
|
1324
1599
|
assertParamExists('listNFTs', 'contractAddress', contractAddress);
|
|
1325
1600
|
// verify required parameter 'chainName' is not null or undefined
|
|
@@ -1336,6 +1611,11 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
1336
1611
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1337
1612
|
const localVarHeaderParameter = {};
|
|
1338
1613
|
const localVarQueryParameter = {};
|
|
1614
|
+
if (fromUpdatedAt !== undefined) {
|
|
1615
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
1616
|
+
fromUpdatedAt.toISOString() :
|
|
1617
|
+
fromUpdatedAt;
|
|
1618
|
+
}
|
|
1339
1619
|
if (pageCursor !== undefined) {
|
|
1340
1620
|
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
1341
1621
|
}
|
|
@@ -1417,18 +1697,47 @@ const NftsApiFp = function (configuration) {
|
|
|
1417
1697
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getNFT(contractAddress, tokenId, chainName, options);
|
|
1418
1698
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1419
1699
|
},
|
|
1700
|
+
/**
|
|
1701
|
+
* List all NFT owners on a chain
|
|
1702
|
+
* @summary List all NFT owners
|
|
1703
|
+
* @param {string} chainName The name of chain
|
|
1704
|
+
* @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
|
|
1705
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1706
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1707
|
+
* @param {*} [options] Override http request option.
|
|
1708
|
+
* @throws {RequiredError}
|
|
1709
|
+
*/
|
|
1710
|
+
async listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1711
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
1712
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1713
|
+
},
|
|
1714
|
+
/**
|
|
1715
|
+
* List all NFTs on a chain
|
|
1716
|
+
* @summary List all NFTs
|
|
1717
|
+
* @param {string} chainName The name of chain
|
|
1718
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1719
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1720
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1721
|
+
* @param {*} [options] Override http request option.
|
|
1722
|
+
* @throws {RequiredError}
|
|
1723
|
+
*/
|
|
1724
|
+
async listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1725
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
1726
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1727
|
+
},
|
|
1420
1728
|
/**
|
|
1421
1729
|
* List NFTs by contract address
|
|
1422
1730
|
* @summary List NFTs by contract address
|
|
1423
1731
|
* @param {string} contractAddress Contract address
|
|
1424
1732
|
* @param {string} chainName The name of chain
|
|
1733
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1425
1734
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1426
1735
|
* @param {number} [pageSize] Maximum number of items to return
|
|
1427
1736
|
* @param {*} [options] Override http request option.
|
|
1428
1737
|
* @throws {RequiredError}
|
|
1429
1738
|
*/
|
|
1430
|
-
async listNFTs(contractAddress, chainName, pageCursor, pageSize, options) {
|
|
1431
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, pageCursor, pageSize, options);
|
|
1739
|
+
async listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1740
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
1432
1741
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1433
1742
|
},
|
|
1434
1743
|
/**
|
|
@@ -1467,18 +1776,45 @@ const NftsApiFactory = function (configuration, basePath, axios) {
|
|
|
1467
1776
|
getNFT(contractAddress, tokenId, chainName, options) {
|
|
1468
1777
|
return localVarFp.getNFT(contractAddress, tokenId, chainName, options).then((request) => request(axios, basePath));
|
|
1469
1778
|
},
|
|
1779
|
+
/**
|
|
1780
|
+
* List all NFT owners on a chain
|
|
1781
|
+
* @summary List all NFT owners
|
|
1782
|
+
* @param {string} chainName The name of chain
|
|
1783
|
+
* @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
|
|
1784
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1785
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1786
|
+
* @param {*} [options] Override http request option.
|
|
1787
|
+
* @throws {RequiredError}
|
|
1788
|
+
*/
|
|
1789
|
+
listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1790
|
+
return localVarFp.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
1791
|
+
},
|
|
1792
|
+
/**
|
|
1793
|
+
* List all NFTs on a chain
|
|
1794
|
+
* @summary List all NFTs
|
|
1795
|
+
* @param {string} chainName The name of chain
|
|
1796
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1797
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1798
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1799
|
+
* @param {*} [options] Override http request option.
|
|
1800
|
+
* @throws {RequiredError}
|
|
1801
|
+
*/
|
|
1802
|
+
listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1803
|
+
return localVarFp.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
1804
|
+
},
|
|
1470
1805
|
/**
|
|
1471
1806
|
* List NFTs by contract address
|
|
1472
1807
|
* @summary List NFTs by contract address
|
|
1473
1808
|
* @param {string} contractAddress Contract address
|
|
1474
1809
|
* @param {string} chainName The name of chain
|
|
1810
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1475
1811
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1476
1812
|
* @param {number} [pageSize] Maximum number of items to return
|
|
1477
1813
|
* @param {*} [options] Override http request option.
|
|
1478
1814
|
* @throws {RequiredError}
|
|
1479
1815
|
*/
|
|
1480
|
-
listNFTs(contractAddress, chainName, pageCursor, pageSize, options) {
|
|
1481
|
-
return localVarFp.listNFTs(contractAddress, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
1816
|
+
listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1817
|
+
return localVarFp.listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
1482
1818
|
},
|
|
1483
1819
|
/**
|
|
1484
1820
|
* List NFTs by account address
|
|
@@ -1514,6 +1850,28 @@ class NftsApi extends BaseAPI {
|
|
|
1514
1850
|
getNFT(requestParameters, options) {
|
|
1515
1851
|
return NftsApiFp(this.configuration).getNFT(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, options).then((request) => request(this.axios, this.basePath));
|
|
1516
1852
|
}
|
|
1853
|
+
/**
|
|
1854
|
+
* List all NFT owners on a chain
|
|
1855
|
+
* @summary List all NFT owners
|
|
1856
|
+
* @param {NftsApiListAllNFTOwnersRequest} requestParameters Request parameters.
|
|
1857
|
+
* @param {*} [options] Override http request option.
|
|
1858
|
+
* @throws {RequiredError}
|
|
1859
|
+
* @memberof NftsApi
|
|
1860
|
+
*/
|
|
1861
|
+
listAllNFTOwners(requestParameters, options) {
|
|
1862
|
+
return NftsApiFp(this.configuration).listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1863
|
+
}
|
|
1864
|
+
/**
|
|
1865
|
+
* List all NFTs on a chain
|
|
1866
|
+
* @summary List all NFTs
|
|
1867
|
+
* @param {NftsApiListAllNFTsRequest} requestParameters Request parameters.
|
|
1868
|
+
* @param {*} [options] Override http request option.
|
|
1869
|
+
* @throws {RequiredError}
|
|
1870
|
+
* @memberof NftsApi
|
|
1871
|
+
*/
|
|
1872
|
+
listAllNFTs(requestParameters, options) {
|
|
1873
|
+
return NftsApiFp(this.configuration).listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1874
|
+
}
|
|
1517
1875
|
/**
|
|
1518
1876
|
* List NFTs by contract address
|
|
1519
1877
|
* @summary List NFTs by contract address
|
|
@@ -1523,7 +1881,7 @@ class NftsApi extends BaseAPI {
|
|
|
1523
1881
|
* @memberof NftsApi
|
|
1524
1882
|
*/
|
|
1525
1883
|
listNFTs(requestParameters, options) {
|
|
1526
|
-
return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1884
|
+
return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1527
1885
|
}
|
|
1528
1886
|
/**
|
|
1529
1887
|
* List NFTs by account address
|
|
@@ -1557,6 +1915,40 @@ class NftsApi extends BaseAPI {
|
|
|
1557
1915
|
*/
|
|
1558
1916
|
const OrdersApiAxiosParamCreator = function (configuration) {
|
|
1559
1917
|
return {
|
|
1918
|
+
/**
|
|
1919
|
+
* Cancel one or more orders
|
|
1920
|
+
* @summary Cancel one or more orders
|
|
1921
|
+
* @param {string} chainName
|
|
1922
|
+
* @param {CancelOrdersRequestBody} cancelOrdersRequestBody
|
|
1923
|
+
* @param {*} [options] Override http request option.
|
|
1924
|
+
* @throws {RequiredError}
|
|
1925
|
+
*/
|
|
1926
|
+
cancelOrders: async (chainName, cancelOrdersRequestBody, options = {}) => {
|
|
1927
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1928
|
+
assertParamExists('cancelOrders', 'chainName', chainName);
|
|
1929
|
+
// verify required parameter 'cancelOrdersRequestBody' is not null or undefined
|
|
1930
|
+
assertParamExists('cancelOrders', 'cancelOrdersRequestBody', cancelOrdersRequestBody);
|
|
1931
|
+
const localVarPath = `/v1/chains/{chain_name}/orders/cancel`
|
|
1932
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1933
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1934
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1935
|
+
let baseOptions;
|
|
1936
|
+
if (configuration) {
|
|
1937
|
+
baseOptions = configuration.baseOptions;
|
|
1938
|
+
}
|
|
1939
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1940
|
+
const localVarHeaderParameter = {};
|
|
1941
|
+
const localVarQueryParameter = {};
|
|
1942
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1943
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1944
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1945
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1946
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cancelOrdersRequestBody, localVarRequestOptions, configuration);
|
|
1947
|
+
return {
|
|
1948
|
+
url: toPathString(localVarUrlObj),
|
|
1949
|
+
options: localVarRequestOptions,
|
|
1950
|
+
};
|
|
1951
|
+
},
|
|
1560
1952
|
/**
|
|
1561
1953
|
* Create a listing
|
|
1562
1954
|
* @summary Create a listing
|
|
@@ -1810,6 +2202,18 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1810
2202
|
const OrdersApiFp = function (configuration) {
|
|
1811
2203
|
const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration);
|
|
1812
2204
|
return {
|
|
2205
|
+
/**
|
|
2206
|
+
* Cancel one or more orders
|
|
2207
|
+
* @summary Cancel one or more orders
|
|
2208
|
+
* @param {string} chainName
|
|
2209
|
+
* @param {CancelOrdersRequestBody} cancelOrdersRequestBody
|
|
2210
|
+
* @param {*} [options] Override http request option.
|
|
2211
|
+
* @throws {RequiredError}
|
|
2212
|
+
*/
|
|
2213
|
+
async cancelOrders(chainName, cancelOrdersRequestBody, options) {
|
|
2214
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelOrders(chainName, cancelOrdersRequestBody, options);
|
|
2215
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2216
|
+
},
|
|
1813
2217
|
/**
|
|
1814
2218
|
* Create a listing
|
|
1815
2219
|
* @summary Create a listing
|
|
@@ -1902,6 +2306,17 @@ const OrdersApiFp = function (configuration) {
|
|
|
1902
2306
|
const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
1903
2307
|
const localVarFp = OrdersApiFp(configuration);
|
|
1904
2308
|
return {
|
|
2309
|
+
/**
|
|
2310
|
+
* Cancel one or more orders
|
|
2311
|
+
* @summary Cancel one or more orders
|
|
2312
|
+
* @param {string} chainName
|
|
2313
|
+
* @param {CancelOrdersRequestBody} cancelOrdersRequestBody
|
|
2314
|
+
* @param {*} [options] Override http request option.
|
|
2315
|
+
* @throws {RequiredError}
|
|
2316
|
+
*/
|
|
2317
|
+
cancelOrders(chainName, cancelOrdersRequestBody, options) {
|
|
2318
|
+
return localVarFp.cancelOrders(chainName, cancelOrdersRequestBody, options).then((request) => request(axios, basePath));
|
|
2319
|
+
},
|
|
1905
2320
|
/**
|
|
1906
2321
|
* Create a listing
|
|
1907
2322
|
* @summary Create a listing
|
|
@@ -1988,6 +2403,17 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1988
2403
|
* @extends {BaseAPI}
|
|
1989
2404
|
*/
|
|
1990
2405
|
class OrdersApi extends BaseAPI {
|
|
2406
|
+
/**
|
|
2407
|
+
* Cancel one or more orders
|
|
2408
|
+
* @summary Cancel one or more orders
|
|
2409
|
+
* @param {OrdersApiCancelOrdersRequest} requestParameters Request parameters.
|
|
2410
|
+
* @param {*} [options] Override http request option.
|
|
2411
|
+
* @throws {RequiredError}
|
|
2412
|
+
* @memberof OrdersApi
|
|
2413
|
+
*/
|
|
2414
|
+
cancelOrders(requestParameters, options) {
|
|
2415
|
+
return OrdersApiFp(this.configuration).cancelOrders(requestParameters.chainName, requestParameters.cancelOrdersRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2416
|
+
}
|
|
1991
2417
|
/**
|
|
1992
2418
|
* Create a listing
|
|
1993
2419
|
* @summary Create a listing
|
|
@@ -2289,12 +2715,13 @@ const TokensApiAxiosParamCreator = function (configuration) {
|
|
|
2289
2715
|
* List ERC20 tokens
|
|
2290
2716
|
* @summary List ERC20 tokens
|
|
2291
2717
|
* @param {string} chainName The name of chain
|
|
2718
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
2292
2719
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2293
2720
|
* @param {number} [pageSize] Maximum number of items to return
|
|
2294
2721
|
* @param {*} [options] Override http request option.
|
|
2295
2722
|
* @throws {RequiredError}
|
|
2296
2723
|
*/
|
|
2297
|
-
listERC20Tokens: async (chainName, pageCursor, pageSize, options = {}) => {
|
|
2724
|
+
listERC20Tokens: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
2298
2725
|
// verify required parameter 'chainName' is not null or undefined
|
|
2299
2726
|
assertParamExists('listERC20Tokens', 'chainName', chainName);
|
|
2300
2727
|
const localVarPath = `/v1/chains/{chain_name}/tokens`
|
|
@@ -2308,6 +2735,11 @@ const TokensApiAxiosParamCreator = function (configuration) {
|
|
|
2308
2735
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2309
2736
|
const localVarHeaderParameter = {};
|
|
2310
2737
|
const localVarQueryParameter = {};
|
|
2738
|
+
if (fromUpdatedAt !== undefined) {
|
|
2739
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
2740
|
+
fromUpdatedAt.toISOString() :
|
|
2741
|
+
fromUpdatedAt;
|
|
2742
|
+
}
|
|
2311
2743
|
if (pageCursor !== undefined) {
|
|
2312
2744
|
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
2313
2745
|
}
|
|
@@ -2347,13 +2779,14 @@ const TokensApiFp = function (configuration) {
|
|
|
2347
2779
|
* List ERC20 tokens
|
|
2348
2780
|
* @summary List ERC20 tokens
|
|
2349
2781
|
* @param {string} chainName The name of chain
|
|
2782
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
2350
2783
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2351
2784
|
* @param {number} [pageSize] Maximum number of items to return
|
|
2352
2785
|
* @param {*} [options] Override http request option.
|
|
2353
2786
|
* @throws {RequiredError}
|
|
2354
2787
|
*/
|
|
2355
|
-
async listERC20Tokens(chainName, pageCursor, pageSize, options) {
|
|
2356
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listERC20Tokens(chainName, pageCursor, pageSize, options);
|
|
2788
|
+
async listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
2789
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
2357
2790
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2358
2791
|
},
|
|
2359
2792
|
};
|
|
@@ -2380,13 +2813,14 @@ const TokensApiFactory = function (configuration, basePath, axios) {
|
|
|
2380
2813
|
* List ERC20 tokens
|
|
2381
2814
|
* @summary List ERC20 tokens
|
|
2382
2815
|
* @param {string} chainName The name of chain
|
|
2816
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
2383
2817
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2384
2818
|
* @param {number} [pageSize] Maximum number of items to return
|
|
2385
2819
|
* @param {*} [options] Override http request option.
|
|
2386
2820
|
* @throws {RequiredError}
|
|
2387
2821
|
*/
|
|
2388
|
-
listERC20Tokens(chainName, pageCursor, pageSize, options) {
|
|
2389
|
-
return localVarFp.listERC20Tokens(chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
2822
|
+
listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
2823
|
+
return localVarFp.listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
2390
2824
|
},
|
|
2391
2825
|
};
|
|
2392
2826
|
};
|
|
@@ -2417,7 +2851,7 @@ class TokensApi extends BaseAPI {
|
|
|
2417
2851
|
* @memberof TokensApi
|
|
2418
2852
|
*/
|
|
2419
2853
|
listERC20Tokens(requestParameters, options) {
|
|
2420
|
-
return TokensApiFp(this.configuration).listERC20Tokens(requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
2854
|
+
return TokensApiFp(this.configuration).listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
2421
2855
|
}
|
|
2422
2856
|
}
|
|
2423
2857
|
|
|
@@ -2611,6 +3045,23 @@ const APIError500AllOfCodeEnum = {
|
|
|
2611
3045
|
InternalServerError: 'INTERNAL_SERVER_ERROR'
|
|
2612
3046
|
};
|
|
2613
3047
|
|
|
3048
|
+
/* tslint:disable */
|
|
3049
|
+
/* eslint-disable */
|
|
3050
|
+
/**
|
|
3051
|
+
* Immutable zkEVM API
|
|
3052
|
+
* Immutable Multi Rollup API
|
|
3053
|
+
*
|
|
3054
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3055
|
+
* Contact: support@immutable.com
|
|
3056
|
+
*
|
|
3057
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3058
|
+
* https://openapi-generator.tech
|
|
3059
|
+
* Do not edit the class manually.
|
|
3060
|
+
*/
|
|
3061
|
+
const APIError501AllOfCodeEnum = {
|
|
3062
|
+
NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
|
|
3063
|
+
};
|
|
3064
|
+
|
|
2614
3065
|
/* tslint:disable */
|
|
2615
3066
|
/* eslint-disable */
|
|
2616
3067
|
/**
|
|
@@ -2638,6 +3089,23 @@ const ActivityType = {
|
|
|
2638
3089
|
Withdrawal: 'withdrawal'
|
|
2639
3090
|
};
|
|
2640
3091
|
|
|
3092
|
+
/* tslint:disable */
|
|
3093
|
+
/* eslint-disable */
|
|
3094
|
+
/**
|
|
3095
|
+
* Immutable zkEVM API
|
|
3096
|
+
* Immutable Multi Rollup API
|
|
3097
|
+
*
|
|
3098
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3099
|
+
* Contact: support@immutable.com
|
|
3100
|
+
*
|
|
3101
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3102
|
+
* https://openapi-generator.tech
|
|
3103
|
+
* Do not edit the class manually.
|
|
3104
|
+
*/
|
|
3105
|
+
const CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum = {
|
|
3106
|
+
AlreadyFilled: 'ALREADY_FILLED'
|
|
3107
|
+
};
|
|
3108
|
+
|
|
2641
3109
|
/* tslint:disable */
|
|
2642
3110
|
/* eslint-disable */
|
|
2643
3111
|
/**
|
|
@@ -2709,8 +3177,8 @@ const ERC721ItemItemTypeEnum = {
|
|
|
2709
3177
|
*/
|
|
2710
3178
|
const FeeFeeTypeEnum = {
|
|
2711
3179
|
Royalty: 'ROYALTY',
|
|
2712
|
-
|
|
2713
|
-
|
|
3180
|
+
MakerEcosystem: 'MAKER_ECOSYSTEM',
|
|
3181
|
+
TakerEcosystem: 'TAKER_ECOSYSTEM',
|
|
2714
3182
|
Protocol: 'PROTOCOL'
|
|
2715
3183
|
};
|
|
2716
3184
|
|
|
@@ -2858,11 +3326,13 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
2858
3326
|
APIError404AllOfCodeEnum: APIError404AllOfCodeEnum,
|
|
2859
3327
|
APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
|
|
2860
3328
|
APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
|
|
3329
|
+
APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
|
|
2861
3330
|
ActivitiesApi: ActivitiesApi,
|
|
2862
3331
|
ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
|
|
2863
3332
|
ActivitiesApiFactory: ActivitiesApiFactory,
|
|
2864
3333
|
ActivitiesApiFp: ActivitiesApiFp,
|
|
2865
3334
|
ActivityType: ActivityType,
|
|
3335
|
+
CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum: CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum,
|
|
2866
3336
|
ChainsApi: ChainsApi,
|
|
2867
3337
|
ChainsApiAxiosParamCreator: ChainsApiAxiosParamCreator,
|
|
2868
3338
|
ChainsApiFactory: ChainsApiFactory,
|
|
@@ -2933,7 +3403,7 @@ class APIError extends Error {
|
|
|
2933
3403
|
|
|
2934
3404
|
/* eslint-disable implicit-arrow-linebreak */
|
|
2935
3405
|
const defaultHeaders = {
|
|
2936
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.
|
|
3406
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.25.0',
|
|
2937
3407
|
};
|
|
2938
3408
|
/**
|
|
2939
3409
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -3166,6 +3636,20 @@ class BlockchainData {
|
|
|
3166
3636
|
throw formatError(err);
|
|
3167
3637
|
});
|
|
3168
3638
|
}
|
|
3639
|
+
/**
|
|
3640
|
+
* List All NFTs on a chain
|
|
3641
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
3642
|
+
* @returns a promise that resolves with a list of NFTs
|
|
3643
|
+
* @throws {@link index.APIError}
|
|
3644
|
+
*/
|
|
3645
|
+
async listAllNFTs(request) {
|
|
3646
|
+
return await this.nfts
|
|
3647
|
+
.listAllNFTs(request)
|
|
3648
|
+
.then((res) => res.data)
|
|
3649
|
+
.catch((err) => {
|
|
3650
|
+
throw formatError(err);
|
|
3651
|
+
});
|
|
3652
|
+
}
|
|
3169
3653
|
/**
|
|
3170
3654
|
* List NFT owners by token ID
|
|
3171
3655
|
* @param request - the request object containing the parameters to be provided in the API request
|
|
@@ -3180,6 +3664,34 @@ class BlockchainData {
|
|
|
3180
3664
|
throw formatError(err);
|
|
3181
3665
|
});
|
|
3182
3666
|
}
|
|
3667
|
+
/**
|
|
3668
|
+
* List NFT owners by contract address
|
|
3669
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
3670
|
+
* @returns a promise that resolves with a list of NFT owners
|
|
3671
|
+
* @throws {@link index.APIError}
|
|
3672
|
+
*/
|
|
3673
|
+
async listNFTOwnersByContractAddress(request) {
|
|
3674
|
+
return await this.nftOwners
|
|
3675
|
+
.listOwnersByContractAddress(request)
|
|
3676
|
+
.then((res) => res.data)
|
|
3677
|
+
.catch((err) => {
|
|
3678
|
+
throw formatError(err);
|
|
3679
|
+
});
|
|
3680
|
+
}
|
|
3681
|
+
/**
|
|
3682
|
+
* List All NFT owners on a chain
|
|
3683
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
3684
|
+
* @returns a promise that resolves with a list of NFT owners
|
|
3685
|
+
* @throws {@link index.APIError}
|
|
3686
|
+
*/
|
|
3687
|
+
async listAllNFTOwners(request) {
|
|
3688
|
+
return await this.nfts
|
|
3689
|
+
.listAllNFTOwners(request)
|
|
3690
|
+
.then((res) => res.data)
|
|
3691
|
+
.catch((err) => {
|
|
3692
|
+
throw formatError(err);
|
|
3693
|
+
});
|
|
3694
|
+
}
|
|
3183
3695
|
/**
|
|
3184
3696
|
* List ERC20 Token contracts
|
|
3185
3697
|
* @param request - the request object containing the parameters to be provided in the API request
|
|
@@ -3208,6 +3720,20 @@ class BlockchainData {
|
|
|
3208
3720
|
throw formatError(err);
|
|
3209
3721
|
});
|
|
3210
3722
|
}
|
|
3723
|
+
/**
|
|
3724
|
+
* List NFT Metadata by contract address
|
|
3725
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
3726
|
+
* @returns a promise that resolves with a list of Metadata
|
|
3727
|
+
* @throws {@link index.APIError}
|
|
3728
|
+
*/
|
|
3729
|
+
async listNFTMetadataByContractAddress(request) {
|
|
3730
|
+
return await this.metadata
|
|
3731
|
+
.listMetadata(request)
|
|
3732
|
+
.then((res) => res.data)
|
|
3733
|
+
.catch((err) => {
|
|
3734
|
+
throw formatError(err);
|
|
3735
|
+
});
|
|
3736
|
+
}
|
|
3211
3737
|
/**
|
|
3212
3738
|
* Refresh collection metadata
|
|
3213
3739
|
* @param request - the request object containing the parameters to be provided in the API request
|