js
js copied to clipboard
Transaction too large (candymachine minting)
Hi,
I'm trying to mint from candy machine using both the solPayment and nftBurn guards together but I'm receiving the error Transaction too large: 1264 > 1232
Here's my candymachine guard config:
"guards": {
"default": {},
"groups": [
{
"label": "wl_1",
"guards": {
"startDate": {
"date": "2023-04-19T14:00:00Z"
},
"endDate": {
"date": "2023-04-19T22:00:00Z"
},
"nftBurn": {
"requiredCollection": "Epq55eG3zc69NhN3VibdbSnkgAs7H2rzCcEhdFKUWkLi"
},
"solPayment": {
"value": 0.19,
"destination": "CyRxEcCLP59efWtAyCGVWJAiGrpJBN7RRccXHYUc2UUs"
}
}
}
]
}
And here's the code that I'm using to submit the transaction:
const transactionBuilder = await metaplex
.candyMachines()
.builders()
.mint({
candyMachine,
collectionUpdateAuthority,
group:"wl_1",
guards: {
nftBurn: {
mint: collectionMint.mintAddress,
},
}});
await metaplex.rpc().sendAndConfirmTransaction(transactionBuilder);
There's no way to submit the solPayment and nftBurn in separate transactions as far as I can tell?