InteractionLogger is a minimalistic Solidity smart contract that logs every on-chain interaction with its timestamp and caller address.
InteractionLogger is a minimalistic Solidity smart contract that logs every on-chain interaction with its timestamp and caller address.
No imports, no constructors, and no input fields — just pure on-chain logging.
Network | Address | Transaction Hash |
---|---|---|
Ethereum / Testnet |
|
|
(Replace the links above with your network explorer if not on Ethereum mainnet)
This contract acts like a public blockchain diary — each function call automatically logs:
The caller’s wallet address (msg.sender
)
The current block timestamp (block.timestamp
)
A predefined action tag (optional)
No input parameters are needed — interactions are tracked automatically.
✅ Zero-input logging functions
✅ Transparent and immutable on-chain records
✅ No constructor or external imports
✅ Emits an event for every interaction
✅ Easy to fetch logs via view functions or event listeners
Solidity Version: ^0.8.17
License: MIT
Deployed By: Angel
Contract Name: InteractionLogger
Function | Type | Description |
---|---|---|
|
| Logs a generic interaction with no tag |
|
| Logs an interaction tagged |
|
| Logs an interaction tagged |
|
| Returns the total number of interactions logged |
|
| Returns the most recent interaction details |
|
| Returns all interactions (IDs, users, timestamps, actions) |
NA