Skip to content

eth::IEthReceiptSource

Transport-neutral source of receipt/log evidence for EthWatchService.

#include <eth_receipt_source.hpp>

Inherited by eth::rpc::RpcReceiptSource

Public Functions

Name
virtual ~IEthReceiptSource() =default
virtual WatchId add_filter(EventFilter filter) =0
Let the source optimize acquisition around the same filter used by EthWatchService.
virtual void remove_filter(WatchId id) =0
Remove a previously registered acquisition filter.
virtual void set_receipt_batch_handler(ReceiptBatchHandler handler) =0
Set the handler that receives normalized receipt batches.
virtual std::optional< ReceiptResult > get_receipt(const Hash256 & tx_hash) =0
Fetch one receipt by transaction hash when the source supports lookup verification.

Public Functions Documentation

function ~IEthReceiptSource

virtual ~IEthReceiptSource() =default

function add_filter

virtual WatchId add_filter(
    EventFilter filter
) =0

Let the source optimize acquisition around the same filter used by EthWatchService.

Reimplemented by: eth::rpc::RpcReceiptSource::add_filter

function remove_filter

virtual void remove_filter(
    WatchId id
) =0

Remove a previously registered acquisition filter.

Reimplemented by: eth::rpc::RpcReceiptSource::remove_filter

function set_receipt_batch_handler

virtual void set_receipt_batch_handler(
    ReceiptBatchHandler handler
) =0

Set the handler that receives normalized receipt batches.

Reimplemented by: eth::rpc::RpcReceiptSource::set_receipt_batch_handler

function get_receipt

virtual std::optional< ReceiptResult > get_receipt(
    const Hash256 & tx_hash
) =0

Fetch one receipt by transaction hash when the source supports lookup verification.

Reimplemented by: eth::rpc::RpcReceiptSource::get_receipt


Updated on 2026-06-05 at 17:22:18 -0700