const mint = async () => {
try {
const transactionId = await fcl.send([
fcl.transaction(mintNFT),
fcl.args([
fcl.arg(hash, t.String),
fcl.arg(nameofNFT, t.String),
fcl.arg(description, t.String),
fcl.arg(_id, t.String),
fcl.arg(price, t.String),
]),
fcl.payer(fcl.authz),
fcl.proposer(fcl.authz),
fcl.authorizations([fcl.authz]),
fcl.limit(9999)
]).then(fcl.decode);
fcl.tx(transactionId).subscribe(setTransaction_status)
console.log("transactionId",transactionId);
console.log("transaction_status",transaction_status)
return fcl.tx(transactionId).onceSealed();
} catch (error) {
console.log("Error uploading file:", error)
}
}
Here is my code of Minting NFT. But I wanted to mint more than one card at a same transaction, I have the list of array which hold IPFS-HASH’s. So is it possible that we can mint all of that hash at same transaction.
As I see in different platform it is possible.