Add real-time risk protection to Solana wallets and dApps with address screening and transaction simulation.
This guide shows how to integrate Risk API into a Solana wallet or dApp to
protect users from malicious addresses and risky transactions. The flow screens
recipients before sending and simulates transactions before signing.
Green indicator. Proceed normally. If attribution is present, optionally show the entity name (e.g., “Token Program - Solana”).
4–5
Yellow warning. Show reasoning and let the user decide.
6–7
Orange warning. Recommend against proceeding. Show reasoning and the number of hops to malicious addresses.
8–10
Red block. Strongly warn. Show reasoning and maliciousAddressesFound details. Require explicit confirmation.
Check the attribution field - when present, it means the address is a
verified non-malicious entity (like a system program or major exchange). You
can display the entity name to reassure the user.
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.
Don’t block silently. Always explain why a transaction is flagged. Show
the reasoning field.
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.
Address Risk Score returns results for
18+ supported networks. For
unsupported networks, partial results may be available through direct
attribution or cross-chain propagation.