Algorand Events - General - Algorand
Algorand Events
post by Teepy on Mar 29, 2022
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.
post by fabrice on Mar 30, 2022
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.
post by Teepy on Mar 30, 2022
Thanks so much for this @fabrice.
Do you have a link to any resource that might help implement this?
post by fabrice on Mar 30, 2022
- 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)
post by Teepy on Mar 30, 2022
Thanks for this @fabrice