Audit Trail 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
Audit Trail Generator gives DeFi protocols, auditors, and compliance teams a comprehensive tool for generating on-chain audit trails. It reads live on-chain data including transaction history, event logs, protocol state changes, audit contract state, timestamp data, and access control records. You can fetch event logs across block ranges, generate audit reports, record audit events, update audit configurations, and export audit trails. The tool shows you in real time the block range, events found, audit report status, last audit timestamp, record count, and audit status—so you can maintain comprehensive audit trails for regulatory compliance.
HOW TO USE
Connect your EVM wallet (must be the contract owner or authorized address). Enter the audit trail contract address, block range (from and to), and optional event name filter. Use "Fetch event logs" to retrieve logs from the specified block range with automatic chunking and retry logic. Click "Generate audit report" to create a report from the fetched events and contract state. Use "Record audit event" to manually record an event on-chain. "Update audit config" changes retention and active status. "Export audit trail" downloads the audit data as JSON. Each action generates a transaction you review and sign in your wallet.
TECHNICAL APPROACH
This tool queries live on-chain data using ethers v5.7.2 with robust chunking and retry logic to handle RPC limits. It fetches event logs using getLogs() with automatic chunk size halving on failure—starting at 50,000 blocks and reducing by half on each retry, up to 5 attempts. This ensures the tool works across public RPCs with varying block range caps. It calls recordAuditEvent(), updateAuditConfig(), getAuditStatus(), getRecordCount(), and getLastAuditTimestamp() on the audit contract to manage and query audit state. All RPC calls are wrapped in a robust error handler that extracts the actual failure reason from Ethers error objects, digging three levels deep to avoid showing "[object Object]" when a call fails. Transaction costing uses receipt.effectiveGasPrice post-EIP-1559 rather than tx.gasPrice, which overstates actual spend.
WHAT IT CANNOT SEE
This tool cannot verify off-chain events or guarantee that all on-chain events are captured correctly. It cannot see events from contracts not connected to the current network. It cannot detect events that occurred before the specified block range. It cannot account for logs that were not indexed or are not accessible via the RPC provider. It cannot verify the authenticity of event data beyond what is recorded on-chain. The tool provides audit trail generation based on available data, but it does not guarantee that the audit trail is complete or that all events were captured.
PLEASE NOTE
This tool supports EVM‑compatible chains only (Ethereum, Goerli, Sepolia, Arbitrum, Optimism, Polygon). Solana, Tron, Starknet, SUI, TON, Aptos, Bitcoin, Cosmos, and XRP are not supported. This is a read‑write tool that requires signing transactions—always verify the audit contract address, block range, and event filters before approving. No contract addresses are hardcoded; you paste the contracts you are managing. The tool is free and open under the BotGentz PLAYBOOK‑C specification.