Skip to main content

Transaction Call Count Rule

The Transaction Call Count Rule is a conditional rule used to track the number of times a transaction is called within a specific time period, preventing frequent execution of specific transactions in a short time and thereby reducing the risk of abnormal operations or misuse.


Core Function

  • Control transaction call frequency within a period: Limit the number of times a transaction can be called within a specific period
  • Suitable for monitoring high-frequency operations: Can protect specific methods or program calls

Parameters

  • Interval

    • Length of the monitoring period, in seconds/minutes/hours
  • Time Slot

    • Tracks which time slot the current moment falls into for period calculation; automatically computed by the program (no manual setting required)
  • Amount

    • Number of times the transaction has been called within the current period
  • Threshold Amount

    • Maximum allowed calls within the current period
    • Exceeding this value will trigger a risk control event

Note: This rule must be used in combination with asset filters or other filtering conditions to ensure it applies only to specified transactions.
Note: Cannot be combined with the Program Address Filter.


Typical Use Cases

  • Limit a program method to no more than 10 calls per day
  • Prevent repeated execution of high-risk operations by a pass-through account in a short time
  • Combine with Period Transaction Limit Rule or High-Value Transfer Count Rule to improve risk control accuracy

Additional Notes

  • Period Calculation Method: The interval can be based on fixed periods or sliding windows to count calls
  • Composable Rules: Can be combined with direct-effect rules or conditional rules to form multi-dimensional risk control strategies