const { Web3 } = require('web3');
const web3 = new Web3('https://rpc.merlinchain.io');
const contractAddress = 'YOUR_SMART_CONTRACT_ADDRESS';
const abi = [/* Unimer's ABI array here */];
async function mint() {
const unimerContract = new web3.eth.Contract(abi, contractAddress);
try {
const receipt = await unimerContract.methods.mintNFT(1, '')
.send({ from: 'YOUR_WALLET_ADDRESS', value: 'ENOUGH_MINT_FEE' });
console.log('Mint transaction receipt: ', receipt);
} catch (error) {
console.error('Error minting NFT:', error);
}
}