Sphere Guard
Sphere Guard is a transfer hook program that enforces badge verification requirements on token transfers. It validates both sender and receiver badges while allowing accounts to configure additional badge-based allowlists.
Overview
When configured at the mint level, Sphere Guard performs a series of validation steps. It first checks for valid Sphere badges on both the sender and receiver, then verifies badge parameters against account-specific allowlists. The transfer is only permitted once all badge requirements have been successfully met.
Badge Verification
For each transfer, Sphere Guard verifies both basic badge checks as well as more granular, account-specific rules.
Basic Badge Checks
- Both parties have valid Sphere badges
- Badges have not expired
- Badges are in verified state
- Badge metadata meets requirements
Account-Specific Rules
Each token account can configure additional badge requirements:
- Specific metadata key-value pairs
- Custom badge parameter thresholds
- Jurisdiction or entity type restrictions