Install

The leNFT SDK is a way to directly integrate leNFT liquidity into your NFT project.

Install using npm:

npm i lenft-sdk

Import:

import leNFT from "lenft-sdk";	

To initialize the SDK you will need to provide an ethers provider:

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

const lenft = new leNFT(provider);

Github repository.

Last updated