pub struct RpcLog {
pub removed: bool,
pub log_index: Option<String>,
pub transaction_index: Option<String>,
pub transaction_hash: Option<String>,
pub block_hash: Option<String>,
pub block_number: Option<String>,
pub address: String,
pub data: String,
pub topics: Vec<String>,
}Expand description
Log entry in standard Ethereum JSON-RPC format.
This struct represents an event log returned by the eth_getLogs RPC method.
Field names use camelCase to match the Ethereum JSON-RPC specification.
Note: log_index, transaction_index, transaction_hash, block_hash, and
block_number can be null for pending logs, but are always present for confirmed logs.
Fields§
§removed: boolWhether the log was removed due to chain reorganization.
log_index: Option<String>Index position of the log in the block (hex string).
transaction_index: Option<String>Index position of the transaction in the block (hex string).
transaction_hash: Option<String>Hash of the transaction that generated this log.
block_hash: Option<String>Hash of the block containing this log.
block_number: Option<String>Block number containing this log (hex string).
address: StringAddress of the contract that emitted the event.
data: StringNon-indexed event parameters (hex-encoded bytes).
topics: Vec<String>Indexed event parameters.