Do smart contracts on NEAR have events?

Viewed 64

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)

1 Answers

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.

Related