@eluvio/elv-client-js 3.2.7 → 3.2.8
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/package.json
CHANGED
|
@@ -459,10 +459,28 @@ exports.Marketplace = async function ({marketplaceParams}) {
|
|
|
459
459
|
|
|
460
460
|
/* NFTS */
|
|
461
461
|
|
|
462
|
+
/**
|
|
463
|
+
* Return info about the specified NFT contract, including the cap, current total supply, and total minted and burned.
|
|
464
|
+
*
|
|
465
|
+
* @methodGroup NFTs
|
|
466
|
+
* @namedParams
|
|
467
|
+
* @param {string} contractAddress - The contract address of the NFT
|
|
468
|
+
*
|
|
469
|
+
* @returns {Promise<Object>} - Information about the specified contract
|
|
470
|
+
*/
|
|
471
|
+
exports.NFTContractStats = async function({contractAddress}) {
|
|
472
|
+
return await Utils.ResponseToJson(
|
|
473
|
+
this.client.authClient.MakeAuthServiceRequest({
|
|
474
|
+
path: UrlJoin("as", "nft", "info", contractAddress),
|
|
475
|
+
method: "GET"
|
|
476
|
+
})
|
|
477
|
+
);
|
|
478
|
+
};
|
|
479
|
+
|
|
462
480
|
/**
|
|
463
481
|
* Load full info for the specified NFT
|
|
464
482
|
*
|
|
465
|
-
* @methodGroup
|
|
483
|
+
* @methodGroup NFTs
|
|
466
484
|
* @namedParams
|
|
467
485
|
* @param {string} contractAddress - The contract address of the NFT
|
|
468
486
|
* @param {string} tokenId - The token ID of the NFT
|
|
@@ -498,7 +516,7 @@ exports.NFT = async function({tokenId, contractAddress}) {
|
|
|
498
516
|
*
|
|
499
517
|
* Transfer the specified NFT owned by the current user to the specified address
|
|
500
518
|
*
|
|
501
|
-
* @methodGroup
|
|
519
|
+
* @methodGroup NFTs
|
|
502
520
|
* @namedParams
|
|
503
521
|
* @param {string} contractAddress - The contract address of the NFT
|
|
504
522
|
* @param {string} tokenId - The token ID of the NFT
|