I want to create a smart contract and when I transfer coin on it, it's automatically update on the DataBase (I use Cassandra), so you do your things on the website with it and you can win or loose some coin, the when it went about the withdraw, how can I retreive the data from the DB to know how many coin this address can withdraw ?

2 Answers 2


You could create an API service that writes the info to your DB, and call it from your smart contract using Chainlink's API oracle to connect your smart contract with the outside world.

  • 1
    this is actually really good info :D thanks for sharing! <3
    – Casareafer
    Dec 8, 2022 at 17:07

You could use this: Alchemy Notify, it creates a subscription that can call webhooks whenever transactions happen within your contract

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.