Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FilterBuilder::topics documentation #731

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/types/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ impl FilterBuilder {
}

/// Topics
/// An event topic is a part of the event logging mechanism used by smart contracts
/// to record information on the blockchain.
/// These logs are stored in transaction receipts and can be efficiently filtered and searched.
/// Each log entry has -up to- four "topics," which are 32-byte values used to index the log.
/// Topic 0: The hash of the event signature.
/// Topic 1: The from address (indexed).
/// Topic 2: The to address (indexed).
/// Data: The value (not indexed).
pub fn topics(
mut self,
topic1: Option<Vec<H256>>,
Expand Down
Loading