OptionalchunkMax blocks per getLogs request (public-RPC friendly).
OptionalconfirmationsConfirmations to wait before treating a block as final. Reorg-safe streaming
re-reads the last confirmations blocks each tick.
Decode a raw log into an event, or null to skip it.
OptionalfromFirst block to scan. undefined starts at the current head (only new events).
A concrete value backfills history from there first.
Fetch confirmed logs in [from, to] inclusive. Throwing triggers gap-fill on the next tick.
OptionalonCalled when a poll errors (the cursor does NOT advance, so the range is retried).
OptionalpollingPoll interval in ms.
Head/height source (a viem public client works directly).
The stream to push decoded events into.
Options for runLogCursor.