If you wanted a private DB to have all of the transactions,balances etc. of a particular FA2 contract deployed on mainnet, what would be the best way of achieving this?

Is it possible to have a callback API that gets triggered every time a transaction/contract function is made/called (via oracles)? Or possible to use a block explorer to watch for updates to the contract? Any other method?

Keen to hear thoughts!

1 Answer 1


tzkt.io offers a websocket based listener that can be used for the scenario mentioned by you.

Alternatively, you can run a cron job that checks for changes in the contract storage (tzkt's API can be used once again) and records the same in the DB.

  • 1
    Anshu - thanks for that, looking into this :) Sep 18, 2021 at 7:35

Your Answer

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

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