Do smart contracts have events now that I can set up listeners for or do I need to poll the chain manually to get data about them? (Rust)
Do smart contracts have events now that I can set up listeners for or do I need to poll the chain manually to get data about them? (Rust)
NEAR Protocol doesn't have events, so you need to poll the chain manually or create an indexer to listen for everything in the network.
For the record, NEAR Protocol allows contract developers to use Events Format logs for a more standardized way of logging. That makes it easier to catch such logs via indexers.
This indexer tutorial utilizes NEAR Lake Framework JS to catch Events Formatted logs.