Is there any way to emit events in Algorand Smart Contracts and also a way to listen for such events off-chain with python or javascript? For example on Ethereum, events can be emitted from smart contracts using solidity and such events can be listened for on a remote server using javascript.
1 Like
Welcome to Algorand!
You can emit logs
on Algorand and can pull all the logs of an application regularly using the indexer.
However, to my knowledge, there is no ready-to-use push service that would allow you to listen. You will need to pull manually.
1 Like
Thanks so much for this @fabrice .
Do you have a link to any resource that might help implement this?
- logs are described there: Discover AVM 1.0 | Algorand Developer Portal (additional opcodes)
- access to logs via indexer: indexer - Algorand Developer Portal (each SDK has a related function)
1 Like
Thanks for this @fabrice