@renec-foundation/nft-sdk
v0.0.4
Published
NFT SDK
Downloads
39
Readme
NFT SDK for shared DApps
How to use
Install the sdk
npm install @renec-foundation/nft-sdk
// or
yarn add @renec-foundation/nft-sdk
Integrate
- FetchNFT module
import { FetchNFT } from "@renec-foundation/nft-sdk";
- Fetch nft by wallet
const connection = new Connection('https://api-mainnet-beta.renec.foundation:8899/')
const userAddress = new PublicKey('5SEXKYSvFCCRtHHQfNZW61AAFgiz5PF8vofnHyy5zRwR')
const NFTModule = new FetchNFT(connection, userAddress)
const nfts = await NFTModule.fetchNFTList();
- Build transfer NFT transaction
const connection = new Connection('https://api-mainnet-beta.renec.foundation:8899/')
const userAddress = new PublicKey('5SEXKYSvFCCRtHHQfNZW61AAFgiz5PF8vofnHyy5zRwR')
const NFTModule = new FetchNFT(connection, userAddress)
const buildTransaction = await NFTModule.buildTransferTransaction(
"toAddress",
"mintAddress"
);