Blocking spam NFTs is critical to delivering a good user experience and keeping your users safe, specially in low cost chains where spam is widespread.
Once spam filters are enabled for your project, the API to get NFTs from a wallet will flag spam NFTs, which you can use to hide potentially malicious assets.
You can access this information in two ways:
Mode 1: Boolean
The API returns an
isSpam attribute with values
false based on Crossmint’s default rules.
Mode 2: Spam Score
The API returns a
spamScore between 0-100 (100 = most likely to be spam), so you can adjust your tolerance threshold.