scan_smart_contract
Analyze smart contract security by scanning for vulnerabilities, rug pull risks, and audit scores on Ethereum, Base, or Polygon networks.
Instructions
Perform security analysis on a smart contract.
Args: contract_address: The contract address to scan (0x...) chain: Blockchain network. Options: ethereum, base, polygon
Returns: Security analysis including vulnerabilities, rug pull risk, and audit score.
Price: $2.00
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract_address | Yes | ||
| chain | No | ethereum |
Implementation Reference
- coinrailz_mcp/__init__.py:605-621 (handler)The `scan_smart_contract` function serves as the MCP tool handler for scanning smart contracts. It accepts a contract address and chain as input, calls the `call_coinrailz_service` helper, and returns a JSON-formatted string of the security analysis results.
@mcp.tool() async def scan_smart_contract(contract_address: str, chain: str = "ethereum") -> str: """ Perform security analysis on a smart contract. Args: contract_address: The contract address to scan (0x...) chain: Blockchain network. Options: ethereum, base, polygon Returns: Security analysis including vulnerabilities, rug pull risk, and audit score. Price: $2.00 """ payload = {"contractAddress": contract_address, "chain": chain} result = await call_coinrailz_service("contract-scan", payload) return json.dumps(result, indent=2)