decode_log
Documentation for eth_defi.event_reader.logresult.decode_log function.
- decode_log(evt)[source]
Decodes a single raw log result using the attached ABI.
See
LogResult
for more information.Example usage:
# Decode a Swap event from PancakeSwap decoded = decode_log(evt)
Example output - see decoded ‘args’:
- Parameters
evt (eth_defi.event_reader.logresult.LogResult) – A raw log event from the event reader.
- Returns
Human-readable dict.
- Return type
web3.types.EventData