On-Chain Points
For Blockchain Events
Reward ANY on-chain activity through event tracking.
For every event we track, we need the proper configuration format. This allows for flexible and precise point allocation based on blockchain interactions.
Points are issued retroactively. If new conditions are added, users will be rewarded retroactively according to the specified block ranges or timestamps.
How It Works
- The system scans blockchain logs for events matching the specified criteria (contract address, chain ID, method, etc.).
- When a matching event is found, it extracts the relevant data using the configured fields.
- Points are calculated based on either the fixed
points
value or themath_expr
formula. - The calculated points are attributed to the address specified by
beneficiary_field
. - Additional filters (
equivalence_filters
) can be applied to match specific event parameters. - Time ranges can be set using block numbers or timestamps for precise control over event tracking periods.
FAQ
Usage Tips
- Use
start_block_number
andend_block_number
orstart_timestamp
andend_timestamp
to define specific periods for event tracking. - The
math_expr
field allows for dynamic point calculation based on event data. Usedecoded_log_field
to specify which event field to use in the calculation. - For fixed point rewards, simply use the
points
field instead ofmath_expr
. - The
equivalence_filters
can be used to create more specific conditions for point allocation within a single event type. - Ensure the
event_string
matches exactly with the smart contract’s event definition to guarantee correct event parsing.