Prerequisites: You need a Risk API key
and familiarity with the Address Risk
Score and Transaction
Simulator endpoints.
Integration Flow
A typical wallet integration adds two risk gates to the send flow:Step 1: Screen the Recipient
Before the user constructs a transaction, check the recipient address for connections to known malicious actors.What to Show the User
Step 2: Simulate the Transaction
After the user constructs but before they sign the transaction, simulate it to preview the effects and check for exploit risks.Key Response Fields to Display
Exploit Risk Warnings
The simulator detects exploit patterns like address poisoning. Ifexploit_risks_detected is non-empty, display a warning:
Step 3: Display Risk Information
Combine the address screening and simulation results into a confirmation screen. The goal is to give users enough information to make an informed decision without overwhelming them.Recommended UI Pattern
Best Practices
- Don’t block silently. Always explain why a transaction is flagged. Show
the
reasoningfield. - Let users override with warning. Even high-risk transactions should be possible to send if the user explicitly confirms - they may know something the scoring doesn’t.
- Show entity attribution. If the recipient is a known entity (exchange, protocol), display its name.
- Cache address risk cautiously. Risk scores change as new intelligence is incorporated. For high-value transfers, always query fresh.
Step 4: Handle Edge Cases
Network Errors and Timeouts
Rate Limits
If you hit rate limits (429 responses), show a degraded state rather than
blocking the user. See Rate Limits & Plans
for retry strategies.
Unsupported Networks
Address Risk Score returns results for 18+ supported networks. For unsupported networks, partial results may be available through direct attribution or cross-chain propagation.Complete Send Flow
What’s Next
Transaction Simulation Guide
Deep dive into simulation response interpretation and debugging.
Compliance Pipeline
Add sanctions screening and payment risk for full compliance coverage.