Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@getsafle/nft-controller

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getsafle/nft-controller

Library to enable detection of Non Fungible Tokens (NFT) for any public address across the supported chains.

  • 2.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Safle NFT Controller

This library enables the developer to detect Non Fungible Tokens (NFT) for any public address across the supported chains.


Installation and Usage

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');

Initialization


Initialise the class using,

const nftController = new safleNftController.NftController(); 


Methods


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

Package last updated on 10 May 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc