This project allows you to listen to a TRANSFER event of a specific address on Solana so you can mint and send NFT to that address.
Helius.xyz
- Register a webhook on Helius https://dev.helius.xyz/webhooks/. The webhook should contain your js REST API end point. In our case it's https://expressjs-todos-backend-server.matiman.repl.co/transfer-webhook
- Chose TRANSFER event, and include the account address (pubkey) you want to listen to.
- Generate an API key to be used with your app.
Underdogprotocol.com
- Register on Underdog and generate an API key.
- Generate API Key
- Also have a mint account address (that you may own) in order to be used with Underdog. This is yours.
Lastly make sure to install all the required js libraries in your project.
Once you run the js. Make a SOL(or SPL token) transfer that contains the customer account and your webhook should grab that data,mint, and transfer SOL.