@renec-foundation/nft-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @renec-foundation/nft-sdk

Weekly Downloads

12

Version

0.0.4

License

ISC

Unpacked Size

28.2 kB

Total Files

19

Last publish

Collaborators

  • renec-foundation