Authors - Shailender Vats, Prasadu Peddi, Prashant Vats Abstract - Blockchain technology's explosive growth has created previously unheard-of potential in several industries, but it has also revealed fresh security flaws. To improve threat detection and response mechanisms, this paper provides a complete intrusion detection system (IDS) designed especially for distributed blockchain ledger security. It makes use of sophisticated smart contracts. We demonstrate the efficacy of the suggested IDS in detecting possible intrusions while preserving the integrity of the blockchain environment by validating it using simulation-based scenarios. According to the research, combining IDS with blockchain technology and smart contracts greatly improves security and is a viable way to address current cybersecurity issues.