0.0.4 • Published 2 years ago

@renec-foundation/nft-sdk v0.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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
  1. FetchNFT module
import { FetchNFT } from "@renec-foundation/nft-sdk";
  1. 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();
  1. 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"
);
0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago