Our spam filtering is designed to protect applications and end users from interacting with spam, phishing, or low-quality token and NFT contracts.Documentation Index
Fetch the complete documentation index at: https://docs.moralis.com/llms.txt
Use this file to discover all available pages before exploring further.
How It Works
Moralis automatically evaluates contracts as they are processed onchain. For both ERC20 tokens and NFT contracts, Moralis adds a boolean field:Detection Logic
Spam detection is based on multiple internal signals, including:- Keyword-based matching across contract metadata
- Known spam and phishing patterns
- Heuristic analysis from historical onchain behavior
Using Spam Detection
You can use thepossible_spam field to:
- Hide suspicious tokens or NFTs from your UI
- Warn users before interacting with risky contracts
- Filter out spam from analytics, balances, or portfolios
ERC20 Tokens & Token Scores
For ERC20 tokens, spam detection works well alongside Token Scores. Whilepossible_spam focuses on known and likely spam signals, Token Scores provide a broader token quality and safety assessment, considering factors such as:
- Liquidity
- Trading volume
- Holder distribution
- Transaction activity
- Token age
Notes
possible_spamis a best-effort signal, not a guarantee- Always apply additional validation for high-value or security-critical workflows

