I want to implement waiting for payment flow, and once the ADA is received I want to mint and NFT and send it to the buyer. How can I know the sender’s address via some API? preferable for free not with SaaS APIs.
Here are a couple of approaches:
- Run
cardano-db-sync
and use SQL queries to obtain the information. - Run
cardano-graphql
and use GraphQL queries. - When the Plutus Application Backend (PAB) is released, it may be possible that you can use the REST API for the PAB chain index.
- Use a third-party service like https://blockfrost.io or https://dandelion.link/.
- Write custom Haskell code based on the
cardano-client-demo
. - Write custom Haskell code using the mantra package and its
watchTransactions
function.
Perhaps others could suggest additional approaches? In particular, I suspect there are JavaScript and Rust libraries that might have this capability.
2 Likes