Expand description
Helper functions for parsing RPC log entries.
These functions work with RpcLog from the standard Ethereum JSON-RPC format,
converting hex strings to the appropriate types.
Functionsยง
- decode_
hex - Decode hex string (with or without 0x prefix) to bytes.
- extract_
address - Extract contract address from RPC log.
- extract_
address_ from_ topic - Extract address from topic at index.
- extract_
block_ number - Extract block number from RPC log.
- extract_
data_ bytes - Extract data bytes from RPC log.
- extract_
log_ index - Extract log index from RPC log.
- extract_
topic_ bytes - Extract topic bytes at index.
- extract_
transaction_ hash - Extract transaction hash from RPC log.
- extract_
transaction_ index - Extract transaction index from RPC log.
- parse_
hex_ u32 - Parse hex string to u32.
- parse_
hex_ u64 - Parse hex string to u64.
- validate_
event_ signature - Validate event signature from topic0.