Skip to content
ContractShield

ContractShield

Understand Before n

Created on 5th April 2026

•

ContractShield

ContractShield

Understand Before n

The problem ContractShield solves

ContractShield addresses the growing complexity and risk associated with interacting with decentralized applications (dApps) and smart contracts. Many users sign transactions or interact with DeFi protocols without fully understanding the underlying code or the potential risks (like rug pulls, hidden fees, or malicious functions).
Simplifies Technical Language:
It translates complex smart contract logic into human-readable summaries so users don't need to be Solidity experts to stay safe.
Risk Detection: Uses the Gemini API to analyze contract code for common vulnerabilities or "red flags" before a user commits their funds.
Empowers DeFi Newcomers: By providing a "Shield" of understanding, it lowers the barrier to entry for users who are intimidated by the technical nature of Web3.

Challenges we ran into

One of the primary hurdles we faced was processing large-scale smart contract files within the token limits of an LLM. Some DeFi contracts are incredibly modular and span multiple files, making it difficult to give the AI enough context without overwhelming it.
How we overcame it:
We implemented a pre-processing layer using Node.js to strip out unnecessary comments and metadata from the code. We then structured our prompts to focus the Gemini API specifically on high-risk functions like transfer, delegatecall, and selfdestruct, ensuring a concise and accurate security summary.

image

Uploading image...

Tracks Applied (1)

Best Use of Gemini API

Gemini

Gemini

Discussion

Builders also viewed

See more projects on Devfolio