2

I need to do an offchain action in an application when a transaction is included in a block that is validated.

Is there a way to register a listener for such a notification? Or is there another mechanism?

Thanks!

1 Answer 1

0

There is no listener for it. Pooling it in an interval is a common way to do that. The Listening for ada payments using cardano-cli page is worth referring to.

You can also watch the chain from cardano-db-sync or from some Cardano API providers such as Blockfrost.io.

If you use Blockfrost.io, you could use the Websockets link for Blockfrost.io API to create a WebSocket subscription.

1
  • Did you find out a way to listen for transaction completion?
    – Dawar Ejaz
    Commented Jan 17, 2022 at 10:42

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.