scan_contract
Analyze smart contracts for security vulnerabilities, exploit patterns, and rug-pull signals to assess risks before interacting with unfamiliar contracts.
Instructions
Analyze a smart contract's source code or bytecode for known exploit patterns, honeypot mechanics, rug-pull signals, and security vulnerabilities. Returns a risk score (0-100) and detailed findings. Use this BEFORE interacting with any unfamiliar contract.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Solidity source code of the contract to analyze | |
| bytecode | No | Contract bytecode (hex) to analyze if source is unavailable | |
| contractAddress | No | Contract address - if provided, will attempt to fetch source from block explorer | |
| chainId | No | Chain ID (1=Ethereum, 8453=Base, 84532=Base Sepolia) |