Listening to the Chain (Logs & VET)
Smart contracts love to talk! They emit Events to signal that something happened.
Apps can "listen" to these signals in two ways:
Historical: Filter logs from the past using
filterEventLogs.Real-time: Use WebSockets to hear events the moment they happen!
Watch Out! ⚠️
VET is the native currency, so it doesn't have a smart contract address. You can't find VET transfers in contract logs!
Instead, we use a dedicated method: filterTransferLogs.
Nice! This allows you to build analytics tools, heatmaps, and portfolio trackers.
Join our Telegram