New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lenft-sdk

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lenft-sdk

Allows using leNFT as a backend for NFT liquidity.

latest
Source
npmnpm
Version
1.0.8
Version published
Maintainers
1
Created
Source

leNFT SDK

The leNFT SDK is a javascript package that wraps logic around the leNFT protocol. It allows developers to use leNFT as a backend for liquidity for their NFT projects.

To install:

npm i lenft-sdk

Example usage:

import leNFT from "lenft-sdk";	
let provider;

if (window.ethereum == null) {
    console.log("MetaMask not installed; using read-only defaults");
    provider = ethers.getDefaultProvider();
} else {
    console.log("MetaMask installed; using MetaMask provider");
    provider = new ethers.BrowserProvider(window.ethereum);
}

const lenft = new leNFT(provider);
const poolAddress = "0x...";
const buyQuote = await lenft.getBuyQuote(amount, poolAddress);
await lenft.buy(poolAddress, buyQuote.exampleNFTs, buyQuote.price);

An overview of the functionality is outlined in the docs.

Keywords

lenft

FAQs

Package last updated on 28 Jul 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