Skip to content
docs

spamReason

spamReason(ctx, tx, tokens, internal): string | undefined

Defined in: history-evm/src/rows.ts:208

Spam heuristic (documented in the README). Never flags a transaction the address itself sent. Returns the rule name or undefined.

  1. zero-value: every movement in the tx is zero (zero-value transferFrom address poisoning, even with a catalog token such as USDT).
  2. zero-value-unknown-token: a token the catalog does not know moved 0.
  3. bulk-airdrop: 20+ token rows in one tx and at least one unknown token.
  4. symbol-impersonation: an unknown token whose symbol has non-ASCII characters, or whose ASCII form equals a catalog symbol on this chain (fake “USDT” at another contract, USDΤ).

MergeContext

TxRow | undefined

TokenRow[]

InternalRow[]

string | undefined