Links

mint

Mints a token.

Paramaters

publicAddress: string - destination address for the token
tokenURI: string - link to the JSON object containing metadata for the token

Response

transactionResponse: confirmation the transaction was completed

Example

const mint = await existingContract.mint({
publicAddress: process.env.WALLET_PUBLIC_ADDRESS,
tokenURI: 'https://ipfs.io/ipfs/QmajL9pQBCMhvkwJdVYSBkMXaQnDdsMcEvKYSxmyUc5WYy',
});
const minted = await mint.wait();
console.log(minted);