MoralisWeb3 / plugindocs

14 stars 14 forks source link

Lazymint to particular collection? #21

Open zubayr1 opened 2 years ago

zubayr1 commented 2 years ago

How to use Moralis Rarible Plugin to lazymint and store the NFTs in a particular collection (something I created) instead of the default Rarible collection?

Currently this is how my code looks like:

let result = await Moralis.Plugins.rarible.lazyMint({ chain: 'rinkeby', userAddress: user.get("ethAddress"), tokenType: 'ERC721', tokenUri: 'https://gateway.pinata.cloud/ipfs/{baseuri_address}/4.json', royaltiesAmount: 500, // 5% royalty. Optional list: true, // Only if lazy listing listTokenAmount: 1, // Only if lazy listing listTokenValue: 10 ** 18, // Only if lazy listing listAssetClass: 'ETH', // only if lazy listing || optional

})