Contract Event
Trigger Actions upon Specific Contract Events.
Craft custom filters to receive notifications only when specific conditions are met, ensuring you stay informed without information overload.
Filter Type:
- AND: All specified conditions must be met for a notification to trigger.
- OR: At least one of the specified conditions must be met for a notification to trigger.
Filters:
Field | Description | Operator | Value |
---|---|---|---|
sender | Address sending the transaction triggering the event | ==, !=, in, not in, regex | Enter specific address(es) or use patterns |
receiver | Address receiving the transaction triggering the event | ==, !=, in, not in, regex | Enter specific address(es) or use patterns |
blockNumber | Block number where the transaction occurred | ==, >, <, >=, <=, != | Specify the exact block number or use operators for comparisons |
blockHash | Unique identifier of the block containing the transaction | ==, != | Enter the specific block hash |
transactionHash | Unique identifier of the transaction triggering the event | ==, != | Enter the specific transaction hash |
data | Arbitrary data associated with the event | ==, !=, regex | Match specific data values or patterns |
topic0, topic1, topic2 (optional) | Event-specific topics (indexed parameters) | ==, !=, regex | Match specific topic values or patterns (consult contract documentation) |
contractAddress | Address of the smart contract emitting the event | == | Enter the specific contract address. |
Example:
Assume you're interested in tracking a specific "Transfer" event within a smart contract used for a community token. To receive notifications only when tokens are transferred, set up the following filters:
- contractAddress: Enter the smart contract address.
- topic0: == "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" is the topic hash that represents a Transfer(). Can change to other topics or custom events.
- topic3: > "0" is an integer greater than 0 which represents the tokenID that is being transferred.
This ensures you're only notified about relevant transfers within the community, allowing you to stay informed about token distribution and community activity.
Updated 18 days ago