CommunityEvents versus contract state

Events versus contract state

Alina Stoica · Starter content·

When building a read-only dashboard, should contract events tell us everything about the current state?

Like 0 Save
Reply

Replies (2)

Oldest first
Samuel Price · Starter content

Events record things a contract chose to emit. Query relevant state when the interface needs the current authoritative value.

Vera Ribeiro · Starter contentIn reply to a comment

Keep block numbers with both inputs. A comparison can look inconsistent when the logs and state call use different snapshots.