@imtbl/sdk 1.10.0-alpha.1 → 1.11.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 +848 -264
- package/dist/blockchain_data.js +277 -2
- package/dist/browser/checkout/sdk.js +8 -8
- package/dist/checkout.js +279 -4
- package/dist/config.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +281 -6
- package/dist/index.d.ts +848 -264
- package/dist/index.js +281 -6
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +203 -3
- package/dist/x.js +2 -2
- package/package.json +1 -1
package/dist/blockchain_data.js
CHANGED
|
@@ -1664,6 +1664,85 @@ class NftOwnersApi extends BaseAPI {
|
|
|
1664
1664
|
*/
|
|
1665
1665
|
const NftsApiAxiosParamCreator = function (configuration) {
|
|
1666
1666
|
return {
|
|
1667
|
+
/**
|
|
1668
|
+
* [Experimental] Create a mint request to mint a set of NFTs for a given collection
|
|
1669
|
+
* @summary [Experimental] Mint NFTs
|
|
1670
|
+
* @param {string} contractAddress The address of contract
|
|
1671
|
+
* @param {string} chainName The name of chain
|
|
1672
|
+
* @param {CreateMintRequestRequest} createMintRequestRequest the request body
|
|
1673
|
+
* @param {*} [options] Override http request option.
|
|
1674
|
+
* @throws {RequiredError}
|
|
1675
|
+
*/
|
|
1676
|
+
createMintRequest: async (contractAddress, chainName, createMintRequestRequest, options = {}) => {
|
|
1677
|
+
// verify required parameter 'contractAddress' is not null or undefined
|
|
1678
|
+
assertParamExists('createMintRequest', 'contractAddress', contractAddress);
|
|
1679
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1680
|
+
assertParamExists('createMintRequest', 'chainName', chainName);
|
|
1681
|
+
// verify required parameter 'createMintRequestRequest' is not null or undefined
|
|
1682
|
+
assertParamExists('createMintRequest', 'createMintRequestRequest', createMintRequestRequest);
|
|
1683
|
+
const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests`
|
|
1684
|
+
.replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
|
|
1685
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1686
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1687
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1688
|
+
let baseOptions;
|
|
1689
|
+
if (configuration) {
|
|
1690
|
+
baseOptions = configuration.baseOptions;
|
|
1691
|
+
}
|
|
1692
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1693
|
+
const localVarHeaderParameter = {};
|
|
1694
|
+
const localVarQueryParameter = {};
|
|
1695
|
+
// authentication ImmutableApiKey required
|
|
1696
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
|
|
1697
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1698
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1699
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1700
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1701
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createMintRequestRequest, localVarRequestOptions, configuration);
|
|
1702
|
+
return {
|
|
1703
|
+
url: toPathString(localVarUrlObj),
|
|
1704
|
+
options: localVarRequestOptions,
|
|
1705
|
+
};
|
|
1706
|
+
},
|
|
1707
|
+
/**
|
|
1708
|
+
* [Experimental] Retrieve the status of a mint request identified by its reference_id
|
|
1709
|
+
* @summary [Experimental] Get mint request by reference ID
|
|
1710
|
+
* @param {string} contractAddress The address of contract
|
|
1711
|
+
* @param {string} chainName The name of chain
|
|
1712
|
+
* @param {string} referenceId The ID of the mint request
|
|
1713
|
+
* @param {*} [options] Override http request option.
|
|
1714
|
+
* @throws {RequiredError}
|
|
1715
|
+
*/
|
|
1716
|
+
getMintRequest: async (contractAddress, chainName, referenceId, options = {}) => {
|
|
1717
|
+
// verify required parameter 'contractAddress' is not null or undefined
|
|
1718
|
+
assertParamExists('getMintRequest', 'contractAddress', contractAddress);
|
|
1719
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1720
|
+
assertParamExists('getMintRequest', 'chainName', chainName);
|
|
1721
|
+
// verify required parameter 'referenceId' is not null or undefined
|
|
1722
|
+
assertParamExists('getMintRequest', 'referenceId', referenceId);
|
|
1723
|
+
const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}`
|
|
1724
|
+
.replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
|
|
1725
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
|
|
1726
|
+
.replace(`{${"reference_id"}}`, encodeURIComponent(String(referenceId)));
|
|
1727
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1728
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1729
|
+
let baseOptions;
|
|
1730
|
+
if (configuration) {
|
|
1731
|
+
baseOptions = configuration.baseOptions;
|
|
1732
|
+
}
|
|
1733
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1734
|
+
const localVarHeaderParameter = {};
|
|
1735
|
+
const localVarQueryParameter = {};
|
|
1736
|
+
// authentication ImmutableApiKey required
|
|
1737
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
|
|
1738
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1739
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1740
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1741
|
+
return {
|
|
1742
|
+
url: toPathString(localVarUrlObj),
|
|
1743
|
+
options: localVarRequestOptions,
|
|
1744
|
+
};
|
|
1745
|
+
},
|
|
1667
1746
|
/**
|
|
1668
1747
|
* Get NFT by token ID
|
|
1669
1748
|
* @summary Get NFT by token ID
|
|
@@ -1744,6 +1823,53 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
1744
1823
|
options: localVarRequestOptions,
|
|
1745
1824
|
};
|
|
1746
1825
|
},
|
|
1826
|
+
/**
|
|
1827
|
+
* [Experimental] Retrieve the status of all mints for a given contract address
|
|
1828
|
+
* @summary [Experimental] List mint requests
|
|
1829
|
+
* @param {string} contractAddress The address of contract
|
|
1830
|
+
* @param {string} chainName The name of chain
|
|
1831
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1832
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1833
|
+
* @param {MintRequestStatus} [status] The status of the mint request
|
|
1834
|
+
* @param {*} [options] Override http request option.
|
|
1835
|
+
* @throws {RequiredError}
|
|
1836
|
+
*/
|
|
1837
|
+
listMintRequests: async (contractAddress, chainName, pageCursor, pageSize, status, options = {}) => {
|
|
1838
|
+
// verify required parameter 'contractAddress' is not null or undefined
|
|
1839
|
+
assertParamExists('listMintRequests', 'contractAddress', contractAddress);
|
|
1840
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1841
|
+
assertParamExists('listMintRequests', 'chainName', chainName);
|
|
1842
|
+
const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests`
|
|
1843
|
+
.replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
|
|
1844
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1845
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1846
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1847
|
+
let baseOptions;
|
|
1848
|
+
if (configuration) {
|
|
1849
|
+
baseOptions = configuration.baseOptions;
|
|
1850
|
+
}
|
|
1851
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1852
|
+
const localVarHeaderParameter = {};
|
|
1853
|
+
const localVarQueryParameter = {};
|
|
1854
|
+
// authentication ImmutableApiKey required
|
|
1855
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
|
|
1856
|
+
if (pageCursor !== undefined) {
|
|
1857
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
1858
|
+
}
|
|
1859
|
+
if (pageSize !== undefined) {
|
|
1860
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
1861
|
+
}
|
|
1862
|
+
if (status !== undefined) {
|
|
1863
|
+
localVarQueryParameter['status'] = status;
|
|
1864
|
+
}
|
|
1865
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1866
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1867
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1868
|
+
return {
|
|
1869
|
+
url: toPathString(localVarUrlObj),
|
|
1870
|
+
options: localVarRequestOptions,
|
|
1871
|
+
};
|
|
1872
|
+
},
|
|
1747
1873
|
/**
|
|
1748
1874
|
* List NFTs by contract address
|
|
1749
1875
|
* @summary List NFTs by contract address
|
|
@@ -1849,6 +1975,32 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
1849
1975
|
const NftsApiFp = function (configuration) {
|
|
1850
1976
|
const localVarAxiosParamCreator = NftsApiAxiosParamCreator(configuration);
|
|
1851
1977
|
return {
|
|
1978
|
+
/**
|
|
1979
|
+
* [Experimental] Create a mint request to mint a set of NFTs for a given collection
|
|
1980
|
+
* @summary [Experimental] Mint NFTs
|
|
1981
|
+
* @param {string} contractAddress The address of contract
|
|
1982
|
+
* @param {string} chainName The name of chain
|
|
1983
|
+
* @param {CreateMintRequestRequest} createMintRequestRequest the request body
|
|
1984
|
+
* @param {*} [options] Override http request option.
|
|
1985
|
+
* @throws {RequiredError}
|
|
1986
|
+
*/
|
|
1987
|
+
async createMintRequest(contractAddress, chainName, createMintRequestRequest, options) {
|
|
1988
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createMintRequest(contractAddress, chainName, createMintRequestRequest, options);
|
|
1989
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1990
|
+
},
|
|
1991
|
+
/**
|
|
1992
|
+
* [Experimental] Retrieve the status of a mint request identified by its reference_id
|
|
1993
|
+
* @summary [Experimental] Get mint request by reference ID
|
|
1994
|
+
* @param {string} contractAddress The address of contract
|
|
1995
|
+
* @param {string} chainName The name of chain
|
|
1996
|
+
* @param {string} referenceId The ID of the mint request
|
|
1997
|
+
* @param {*} [options] Override http request option.
|
|
1998
|
+
* @throws {RequiredError}
|
|
1999
|
+
*/
|
|
2000
|
+
async getMintRequest(contractAddress, chainName, referenceId, options) {
|
|
2001
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMintRequest(contractAddress, chainName, referenceId, options);
|
|
2002
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2003
|
+
},
|
|
1852
2004
|
/**
|
|
1853
2005
|
* Get NFT by token ID
|
|
1854
2006
|
* @summary Get NFT by token ID
|
|
@@ -1876,6 +2028,21 @@ const NftsApiFp = function (configuration) {
|
|
|
1876
2028
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
1877
2029
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1878
2030
|
},
|
|
2031
|
+
/**
|
|
2032
|
+
* [Experimental] Retrieve the status of all mints for a given contract address
|
|
2033
|
+
* @summary [Experimental] List mint requests
|
|
2034
|
+
* @param {string} contractAddress The address of contract
|
|
2035
|
+
* @param {string} chainName The name of chain
|
|
2036
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2037
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
2038
|
+
* @param {MintRequestStatus} [status] The status of the mint request
|
|
2039
|
+
* @param {*} [options] Override http request option.
|
|
2040
|
+
* @throws {RequiredError}
|
|
2041
|
+
*/
|
|
2042
|
+
async listMintRequests(contractAddress, chainName, pageCursor, pageSize, status, options) {
|
|
2043
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listMintRequests(contractAddress, chainName, pageCursor, pageSize, status, options);
|
|
2044
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2045
|
+
},
|
|
1879
2046
|
/**
|
|
1880
2047
|
* List NFTs by contract address
|
|
1881
2048
|
* @summary List NFTs by contract address
|
|
@@ -1916,6 +2083,26 @@ const NftsApiFp = function (configuration) {
|
|
|
1916
2083
|
const NftsApiFactory = function (configuration, basePath, axios) {
|
|
1917
2084
|
const localVarFp = NftsApiFp(configuration);
|
|
1918
2085
|
return {
|
|
2086
|
+
/**
|
|
2087
|
+
* [Experimental] Create a mint request to mint a set of NFTs for a given collection
|
|
2088
|
+
* @summary [Experimental] Mint NFTs
|
|
2089
|
+
* @param {NftsApiCreateMintRequestRequest} requestParameters Request parameters.
|
|
2090
|
+
* @param {*} [options] Override http request option.
|
|
2091
|
+
* @throws {RequiredError}
|
|
2092
|
+
*/
|
|
2093
|
+
createMintRequest(requestParameters, options) {
|
|
2094
|
+
return localVarFp.createMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.createMintRequestRequest, options).then((request) => request(axios, basePath));
|
|
2095
|
+
},
|
|
2096
|
+
/**
|
|
2097
|
+
* [Experimental] Retrieve the status of a mint request identified by its reference_id
|
|
2098
|
+
* @summary [Experimental] Get mint request by reference ID
|
|
2099
|
+
* @param {NftsApiGetMintRequestRequest} requestParameters Request parameters.
|
|
2100
|
+
* @param {*} [options] Override http request option.
|
|
2101
|
+
* @throws {RequiredError}
|
|
2102
|
+
*/
|
|
2103
|
+
getMintRequest(requestParameters, options) {
|
|
2104
|
+
return localVarFp.getMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.referenceId, options).then((request) => request(axios, basePath));
|
|
2105
|
+
},
|
|
1919
2106
|
/**
|
|
1920
2107
|
* Get NFT by token ID
|
|
1921
2108
|
* @summary Get NFT by token ID
|
|
@@ -1936,6 +2123,16 @@ const NftsApiFactory = function (configuration, basePath, axios) {
|
|
|
1936
2123
|
listAllNFTs(requestParameters, options) {
|
|
1937
2124
|
return localVarFp.listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
1938
2125
|
},
|
|
2126
|
+
/**
|
|
2127
|
+
* [Experimental] Retrieve the status of all mints for a given contract address
|
|
2128
|
+
* @summary [Experimental] List mint requests
|
|
2129
|
+
* @param {NftsApiListMintRequestsRequest} requestParameters Request parameters.
|
|
2130
|
+
* @param {*} [options] Override http request option.
|
|
2131
|
+
* @throws {RequiredError}
|
|
2132
|
+
*/
|
|
2133
|
+
listMintRequests(requestParameters, options) {
|
|
2134
|
+
return localVarFp.listMintRequests(requestParameters.contractAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
2135
|
+
},
|
|
1939
2136
|
/**
|
|
1940
2137
|
* List NFTs by contract address
|
|
1941
2138
|
* @summary List NFTs by contract address
|
|
@@ -1965,6 +2162,28 @@ const NftsApiFactory = function (configuration, basePath, axios) {
|
|
|
1965
2162
|
* @extends {BaseAPI}
|
|
1966
2163
|
*/
|
|
1967
2164
|
class NftsApi extends BaseAPI {
|
|
2165
|
+
/**
|
|
2166
|
+
* [Experimental] Create a mint request to mint a set of NFTs for a given collection
|
|
2167
|
+
* @summary [Experimental] Mint NFTs
|
|
2168
|
+
* @param {NftsApiCreateMintRequestRequest} requestParameters Request parameters.
|
|
2169
|
+
* @param {*} [options] Override http request option.
|
|
2170
|
+
* @throws {RequiredError}
|
|
2171
|
+
* @memberof NftsApi
|
|
2172
|
+
*/
|
|
2173
|
+
createMintRequest(requestParameters, options) {
|
|
2174
|
+
return NftsApiFp(this.configuration).createMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.createMintRequestRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2175
|
+
}
|
|
2176
|
+
/**
|
|
2177
|
+
* [Experimental] Retrieve the status of a mint request identified by its reference_id
|
|
2178
|
+
* @summary [Experimental] Get mint request by reference ID
|
|
2179
|
+
* @param {NftsApiGetMintRequestRequest} requestParameters Request parameters.
|
|
2180
|
+
* @param {*} [options] Override http request option.
|
|
2181
|
+
* @throws {RequiredError}
|
|
2182
|
+
* @memberof NftsApi
|
|
2183
|
+
*/
|
|
2184
|
+
getMintRequest(requestParameters, options) {
|
|
2185
|
+
return NftsApiFp(this.configuration).getMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.referenceId, options).then((request) => request(this.axios, this.basePath));
|
|
2186
|
+
}
|
|
1968
2187
|
/**
|
|
1969
2188
|
* Get NFT by token ID
|
|
1970
2189
|
* @summary Get NFT by token ID
|
|
@@ -1987,6 +2206,17 @@ class NftsApi extends BaseAPI {
|
|
|
1987
2206
|
listAllNFTs(requestParameters, options) {
|
|
1988
2207
|
return NftsApiFp(this.configuration).listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1989
2208
|
}
|
|
2209
|
+
/**
|
|
2210
|
+
* [Experimental] Retrieve the status of all mints for a given contract address
|
|
2211
|
+
* @summary [Experimental] List mint requests
|
|
2212
|
+
* @param {NftsApiListMintRequestsRequest} requestParameters Request parameters.
|
|
2213
|
+
* @param {*} [options] Override http request option.
|
|
2214
|
+
* @throws {RequiredError}
|
|
2215
|
+
* @memberof NftsApi
|
|
2216
|
+
*/
|
|
2217
|
+
listMintRequests(requestParameters, options) {
|
|
2218
|
+
return NftsApiFp(this.configuration).listMintRequests(requestParameters.contractAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
2219
|
+
}
|
|
1990
2220
|
/**
|
|
1991
2221
|
* List NFTs by contract address
|
|
1992
2222
|
* @summary List NFTs by contract address
|
|
@@ -4584,7 +4814,7 @@ const flattenProperties = (properties) => {
|
|
|
4584
4814
|
};
|
|
4585
4815
|
|
|
4586
4816
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
4587
|
-
const SDK_VERSION = '1.
|
|
4817
|
+
const SDK_VERSION = '1.11.0';
|
|
4588
4818
|
const getReferrer = () => {
|
|
4589
4819
|
if (isNode()) {
|
|
4590
4820
|
return '';
|
|
@@ -4786,7 +5016,7 @@ class APIError extends Error {
|
|
|
4786
5016
|
|
|
4787
5017
|
/* eslint-disable implicit-arrow-linebreak */
|
|
4788
5018
|
const defaultHeaders = {
|
|
4789
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.
|
|
5019
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.11.0',
|
|
4790
5020
|
};
|
|
4791
5021
|
/**
|
|
4792
5022
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -5047,6 +5277,51 @@ class BlockchainData {
|
|
|
5047
5277
|
throw formatError(err);
|
|
5048
5278
|
});
|
|
5049
5279
|
}
|
|
5280
|
+
/**
|
|
5281
|
+
* Create a mint request to mint a set of NFTs for a given collection
|
|
5282
|
+
* @experimental
|
|
5283
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
5284
|
+
* @returns a promise that resolves with the remaining rate limits
|
|
5285
|
+
* @throws {@link index.APIError}
|
|
5286
|
+
*/
|
|
5287
|
+
async createMintRequest(request) {
|
|
5288
|
+
return await this.nfts
|
|
5289
|
+
.createMintRequest(request)
|
|
5290
|
+
.then((res) => res.data)
|
|
5291
|
+
.catch((err) => {
|
|
5292
|
+
throw formatError(err);
|
|
5293
|
+
});
|
|
5294
|
+
}
|
|
5295
|
+
/**
|
|
5296
|
+
* List all mint requests for a given contract address
|
|
5297
|
+
* @experimental
|
|
5298
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
5299
|
+
* @returns a promise that resolves with a list of mint requests
|
|
5300
|
+
* @throws {@link index.APIError}
|
|
5301
|
+
*/
|
|
5302
|
+
async listMintRequests(request) {
|
|
5303
|
+
return await this.nfts
|
|
5304
|
+
.listMintRequests(request)
|
|
5305
|
+
.then((res) => res.data)
|
|
5306
|
+
.catch((err) => {
|
|
5307
|
+
throw formatError(err);
|
|
5308
|
+
});
|
|
5309
|
+
}
|
|
5310
|
+
/**
|
|
5311
|
+
* Retrieve the status of a single mint request identified by its reference ID
|
|
5312
|
+
* @experimental
|
|
5313
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
5314
|
+
* @returns a promise that resolves with a single mint request
|
|
5315
|
+
* @throws {@link index.APIError}
|
|
5316
|
+
*/
|
|
5317
|
+
async getMintRequest(request) {
|
|
5318
|
+
return await this.nfts
|
|
5319
|
+
.getMintRequest(request)
|
|
5320
|
+
.then((res) => res.data)
|
|
5321
|
+
.catch((err) => {
|
|
5322
|
+
throw formatError(err);
|
|
5323
|
+
});
|
|
5324
|
+
}
|
|
5050
5325
|
/**
|
|
5051
5326
|
* List NFT owners by token ID
|
|
5052
5327
|
* @param request - the request object containing the parameters to be provided in the API request
|