Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@getsafle/nft-controller
Advanced tools
Library to enable detection of Non Fungible Tokens (NFT) for any public address across the supported chains.
This library enables the developer to detect Non Fungible Tokens (NFT) for any public address across the supported chains.
Installation
Install the package by running the command,
npm install @getsafle/nft-controller
Import the package into your project using,
const safleNftController = require('@getsafle/nft-controller');
Initialise the class using,
const nftController = new safleNftController.NftController();
Discover the NFTs and get their details
const nfts = await nftController.detectNFTs({ publicAddress, chain, ETHNFTContinuation, PolygonNFTContinuation });
publicAddress
- Public address to detect NFTs.chain
(optional) - Optional chain parameter to detect the NFTs. Supported chains : Ethereum
, Polygon
.Get Price Data
const price = await nftController.getPriceData([{ publicAddress, contractAddress, tokenId, chain }]);
publicAddress
- Public address of the NFT holder.chain
- Chain where the NFT was minted. Supported chains : Ethereum
, Polygon
.tokenId
- TokenId of the NFT to get the price data.contractAddress
- Contract address of the NFT collection to get the price data.FAQs
Library to enable detection of Non Fungible Tokens (NFT) for any public address across the supported chains.
We found that @getsafle/nft-controller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.