const response = await fetch('https://api.thirdweb.com/v1/contracts/write', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-secret-key': '<YOUR_SECRET_KEY>'
},
body: JSON.stringify({
calls: [
{
contractAddress: "0x00005EA00Ac477B1030CE78506496e8C2dE24bf5",
method: "function mintAllowList(address nftContract, address feeRecipient, address minterIfNotPayer, uint256 quantity, (uint256 mintPrice, uint256 maxTotalMintableByWallet, uint256 startTime, uint256 endTime, uint256 dropStageIndex, uint256 maxTokenSupplyForStage, uint256 feeBps, bool restrictFeeRecipients) mintParams, bytes32[] proof) payable",
params: [nftContract, feeRecipient, minterIfNotPayer, quantity, mintParams, proof]
}
],
chainId: 8453,
from: "<YOUR_WALLET_ADDRESS>"
})
});
const data = await response.json();