I have come across a situation in my project ( Hardhat, Nextjs, TailwindCSS ) where I need to verify my smart contracts right after their deployment. Clearly, we have a mother smart contract that generates them and keep track of everything.
I know how the verification process is done by the hardhat console, but I don't want to do this part manually! In fact, I need every new smart contract to be verified after my command that I initiated from a Nextjs component.
Does anyone know how to run the "verify" command of the Hardhat console within my javascript file ( Nextjs component )?