mint-sol-nft
v0.4.2
Published
mint NFT code
Readme
Mint NFT Solana
Installation
yarn add @project-serum/anchor
yarn add mint-sol-nftConenct with Phantom and Buy
import Minter from 'mint-sol-nft';
const minter = new Minter({
creatorWallet: 'abc...',
config: 'xyz...',
candyMachineUuid: 'uuid',
cluster: 'devnet',
totalCount: 10000
})
minter.connectWalletAndBuy() // Connect and buy
minter.getBalance() // Get user's sol balance, returns null if user is not connected
minter.getRemainingAmount() // Gets the remaining amount and available amount (total)
minter.getWallet(); // Returns users wallet
minter.getShortWallet(); // Returns a shortened version of the wallet for displayUse your own wallet
import Minter from 'mint-sol-nft';
const minter = new Minter({
creatorWallet: 'abc...',
config: 'xyz...',
candyMachineUuid: 'uuid',
cluster: 'devnet',
totalCount: 10000
})
minter.setWallet(wallet) // Connect and buy
minter.buyNft()