Inspired from the iForest algorithmic scheme, we propose an iForest-based blockchain social media anomaly behavior detection method via the improved tree algorithm, for the purpose of isolating the anomalous behaviors as an outlier. The model is integrated with the smart contract structure of blockchain. In the overall system, the user data is sent to the intelligent contract for a period of time. After the identification of the abnormal behavior of social media users, the abnormal behavior in blockchain is marked and stored in the abnormal chain. To a certain extent, the scheme protects users' privacy, improves the efficiency and accuracy of iForest anomaly detection, and is more suitable for multi-dimensional heterogenous data-centric social media user behavior detection.