Contract Interaction Map Generator
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
This tool generates visual maps of contract interactions by analyzing on-chain transaction data, events, and call patterns across multiple contracts. It constructs a network graph showing relationships between contracts based on their historical interactions—including function calls, event emissions, transfers, and approvals. The tool analyzes transaction logs and call patterns to identify which contracts interact with each other, the types of interactions, and the frequency of interactions. Results are presented as a detailed interaction map with contract nodes, interaction edges, interaction types, and relationship descriptions. This is essential for developers understanding system architecture, auditors analyzing contract dependencies, and teams documenting cross-contract relationships.
HOW TO USE
Connect your wallet (read-only, no transaction required) and select the target network. Enter contract names (optional) and addresses as a comma-separated list, and set the lookback blocks for interaction analysis. Click "generate interaction map" and the tool will verify the contracts, analyze transaction logs and call patterns, and generate a structured interaction map. Results display a summary with contract count and total interactions, a text-based interaction map showing contract relationships, detailed contract cards showing each contract's interactions with others, and a table of all contracts with their interaction details. Use the report to understand system architecture, identify interaction patterns, and analyze contract relationships.
TECHNICAL MECHANISM
The generator uses ethers.js v5.7.2 to perform a multi-stage interaction map generation process. First, it calls eth_getCode to verify each contract is deployed and uses block explorer APIs to fetch verification status, source code, and ABI for each contract. The tool then scans historical logs using eth_getLogs across the specified block range to identify interaction events—including function calls (via transaction traces), event emissions (e.g., Transfer, Approval, Interaction), and other cross-contract communications. It analyzes transaction data to identify call patterns between contracts, mapping which contracts call which others and what types of interactions occur. The tool constructs a network graph where nodes represent contracts and edges represent interactions between them. Each edge includes interaction type (call, event, transfer, approve, delegatecall), frequency (number of occurrences), and a description. Results are compiled into a structured report with detailed contract information, interaction mappings, and relationship descriptions.
WHAT IT CANNOT SEE
This tool cannot generate maps for contracts that are not verified or have opaque implementation details where interaction patterns cannot be resolved. It is limited by the RPC provider's rate limits and block range availability for historical log queries. It cannot detect interactions that occur off-chain or through proxy patterns without full trace data—only on-chain interactions are captured. The analysis relies on the accuracy and completeness of contract verification and event data; incomplete logs or unverified contracts may produce incomplete maps. It cannot analyze contracts that do not emit events or have minimal logging, as event data is critical for detecting interactions. The tool is limited to the specific contract instances and interaction patterns that are accessible via RPC. It cannot guarantee that generated maps capture all possible interaction paths without exhaustive transaction analysis across a large number of transactions. The map is a representation of observed interaction patterns and may not reflect all possible contract relationships.
PLEASE NOTE
This is a read‑only analytics tool—it never submits transactions or modifies contract state. It is designed for EVM‑compatible chains and works best with verified contracts that emit events and have clear interaction patterns. The generated interaction maps are for informational and documentation purposes only and should not be considered a comprehensive behavioral analysis. Always verify interaction patterns against actual contract behavior and test edge cases. The tool's map generation is heuristic and based on observed patterns—customize or refine the map as needed for your specific documentation requirements.