Mint group tokens
Mint Group Tokens
const groupAddress = '0xGroupAddress';
const amount = BigInt(100);
try {
const receipt = await avatar.groupToken.mint(groupAddress, amount);
console.log('Minting successful:', receipt.hash);
} catch (error) {
console.error('Minting failed:', error);
}Check Maximum Mintable (Recommended)
const maxMintable = await avatar.groupToken.getMaxMintableAmount(groupAddress);
console.log('Maximum mintable amount:', maxMintable.toString());Last updated
Was this helpful?