GV: and can be used directly in condition expressions, tracker update expressions, and other rule logic.
Available Global Variables
The following global variables are supported:Usage in Rule Conditions
Global variables can be used directly in condition expressions:Usage in Tracker Updates
Global variables can also be used in tracker update expressions:Common Use Cases
Time-based Logic
UseGV:BLOCK_TIMESTAMP for implementing time-based restrictions, deadlines, or time windows:
Access Control
UseGV:MSG_SENDER and GV:TX_ORIGIN for implementing access control:
Transaction Analysis
UseGV:MSG_DATA for analyzing transaction data or implementing complex validation logic:
Block-based Logic
UseGV:BLOCK_NUMBER for implementing block-based logic, such as rate limiting or periodic operations:
Important Notes
Global variables are automatically available in all rule contexts. You don’t need to configure or
import them—they’re ready to use in any condition expression or effect.