Stellar prevents spam by requiring a minimum balance of 1 XLM for each account and a small transaction fee (0.00001 XLM per transaction). These measures ensure that attackers can’t flood the network with fake transactions.
This lightweight anti-spam system helps keep Stellar secure and efficient while maintaining its low-cost structure. By ensuring the stability of the network, Stellar maintains trust among users, which positively affects the XLM price.