I wish to write a script that will automatically mint NFTs given payment to an address. Firstly, I haven't found anyone that has shown how to do this, but if anyone has, or is willing to share, please let me know.
I notice the tutorial here suggests using cardano-cli, however, this requires cardano-node to be running which seems very brittle to me, because if you have issues keeping up with the current state of the blockchain, then you'll miss out on payments. https://developers.cardano.org/docs/integrate-cardano/listening-for-payments-cli/
Would using cardano-wallet be a better or safer option to listen for transactions?
What would be the steps to automatically minting NFTs based on payment? And would anyone have any recommendations on how you'd host the script once you've written it? Would you have cardano-node constantly running in a virtual machine (e.g. EC2 instance).