I’m using this line of code to get all the transaction counts under a particular contract.
web3.eth.getTransactionCount("//contract address").then(console.log);
But I only want to count the transactions where the minting of NFTs was done.
So, as you can see in the screenshot, there are six transactions, and getTransactionCount() would return six. But I only want to count those transactions which have the method “Mint NFT”. So, is there any way to do that?