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.For 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.
Compliance Engine on both testnet and mainnet is only available for eligible
customers. Contact Circle through the
Compliance Engine request form
to get access.
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 999999999999 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 using the
Circle Faucet.
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:
Suffix
Rule name
Risk level
Screening result
999999999999
Circle’s Sanctions Blocklist
Blocklist
DENIED
999999998888
Frozen User Wallet
Blocklist
DENIED
999999997777
Your blocklist
Blocklist
DENIED
999999998999
Severe Sanctions Risk (Owner)
Severe
DENIED
999999998899
Severe Terrorist Financing Risk (Owner)
Severe
DENIED
999999998889
Severe CSAM Risk (Owner)
Severe
DENIED
999999997779
Severe Illicit Behavior Risk (Owner)
Severe
DENIED
999999997666
High Illicit Behavior Risk (Owner)
High
APPROVED
999999997766
High Gambling Risk (Owner)
High
APPROVED
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.