0.4.2 • Published 3 years ago

mint-sol-nft v0.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Mint NFT Solana

Installation

yarn add @project-serum/anchor
yarn add mint-sol-nft

Conenct 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 display

Use 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()
0.4.1

3 years ago

0.4.0

3 years ago

0.4.2

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.0.10

3 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago