This guide walks you through testing Circle’s Transaction Screening service
using the Developer Services API on testnet.
The service is a real time tool that checks blockchain transactions and
addresses against predefined rules outlined in your Console.
Rules in TestnetFor testnet, nine (9) default rules are already in place. Therefore, you will
not need to set up rules using this guide. Note that if you remove rules in
testnet, the testing flows below will no longer work.
This guide allows you to trigger hits against each of these rules.
Setting Up Your Testing Environment with Magic Values
Use Magic Values for Testing:
You can test different rules by sending transactions between Programmable
Wallets and blockchain addresses ending with specific suffixes (referred to
as “Magic Values”).
For example, sending funds to an address ending in 9999 triggers the
Sanctioned Address rule.
Address Generation:
Use a vanity address generator like vanity-eth.tk
to create an Ethereum address with the required suffix.
Import the generated address into your ETH wallet (e.g. MetaMask) using the
private key.
Funding the Address:
Add testnet tokens to your generated address. Check the
Testnet Faucets guide for more
information.
You can test the rules using both existing flows to trigger a screening
evaluation against the magic value address generated in the previous steps:
By initiating transactions as usual using the Wallets APIs
By invoking the address screening endpoint via the Compliance Engine API
You can trigger specific responses and actions using addresses with certain
suffixes:
Circle’s Sanctions Blocklist: 9999
Frozen User Wallet: 8888
Your blocklist: 7777
Severe Sanctions Risk (Owner): 8999
Severe Terrorist Financing (Owner): 8899
Severe CSAM Risk (Owner): 8889
Severe Illicit Behavior (Owner): 7779
High Illicit Behavior Risk (Owner): 7666
High Gambling Risk (Owner): 7766
These addresses will return the appropriate test responses, allowing you to
verify the functionality of the screening system.
NoteThis guide helps you test Circle’s transaction screening service thoroughly and
ensures your applications comply with Circle’s rules for real-time transaction
risk screening.