Prerequisites: You need a Risk API key and familiarity with the Payment Risk Assessment endpoint.
The Three Scam-Relevant Risk Factors
Payment Risk Assessment evaluates 8 independent risk dimensions. Three are directly designed to catch common payment scams:
Together, these factors catch the majority of common crypto scam patterns without flagging legitimate transactions to known contacts as false positives.
How Address Poisoning Works
Address poisoning is one of the most common crypto scams. The attack follows these steps:- The scammer monitors the victim’s transaction history
- They generate an address that matches the first and last 4 characters of a real recipient the victim has sent to before
- They send a small “dust” transaction from the poisoned address to the victim
- The victim later copies the address from their transaction history, unknowingly selecting the scammer’s lookalike address
- Funds are sent to the scammer instead of the intended recipient
How Payment Risk Assessment Detects It
Theaddress_poisoning_attack factor compares the recipient address against known poison address patterns associated with the sender. If the recipient’s prefix and suffix match a poisoning pattern, it returns HIGH risk.
How New Wallet Scams Work
Many scams involve directing victims to send funds to newly created wallets:- Impersonation scams - “Send funds to this new wallet for verification”
- Fake investment schemes - Scammer provides a brand-new deposit address
- Romance scams - Victim is given a fresh wallet address to “help” with
- Phishing - Fake dApp or site provides a newly generated receiving address
How Payment Risk Assessment Detects It
Thenew_wallet_recipient factor analyzes the recipient’s onchain transaction history:
How First-Interaction Risk Works
Even without address poisoning or a new wallet, sending to someone you’ve never transacted with before carries inherent risk. Scams overwhelmingly involve first-time interactions - the victim has no prior relationship with the scammer’s address.How Payment Risk Assessment Detects It
Thefirst_interaction factor examines the transaction history between sender and recipient across both same-network and cross-chain activity:
A first interaction is not inherently malicious - everyone has a first transaction. The value is in combining it with other factors. A first interaction with an established wallet is normal. A first interaction with a brand-new wallet that matches a poisoning pattern is almost certainly a scam.
Building a Scam Prevention Flow
Step 1: Check Payment Risk Before Sending
Step 2: Extract Scam-Relevant Factors
Step 3: Display Warnings to Users
Scam Pattern Reference
Rows are listed in the orderanalyzeScamRisk() checks them. The first match wins, so a stronger signal is never masked by a weaker one.
Integration Recommendations
For Wallets
- Run Payment Risk Assessment on every send before the user signs
- Display scam warnings inline - not as a separate step users can skip
- For address poisoning: show a full-screen blocker, not a dismissible toast
- Cache results briefly (30 seconds) to avoid re-querying if the user adjusts the amount
For Payment Processors
- Check both directions: screen the sender when receiving, screen the recipient when sending
- Log all risk assessments for dispute resolution and fraud investigation
- Set automated hold policies for first-interaction payments above a threshold amount
For Exchanges
- Run Payment Risk Assessment on withdrawal requests before processing
- Flag
address_poisoning_attackresults for manual review - these are almost never false positives - Use
first_interaction+new_wallet_recipientto trigger additional verification (email confirmation, 2FA) on withdrawals to new addresses
What’s Next
Payment Risk Assessment
Full endpoint reference with all 8 risk dimensions explained.
Wallet Integration
Add address screening and transaction simulation to your wallet.