Skip to content
docs

RpcLogsSource

Defined in: protocol-approvals-evm/src/sources/rpc-logs.ts:156

Discovers candidates from eth_getLogs alone — no indexer, no API key.

One request asks for every approval-shaped event with the owner in topic1 and no address filter, so a range covers every token at once. A range the node refuses (“too many results”, “range too large”) is split in half and retried; a single block that is still refused becomes a gap (complete: false) instead of an exception, so a very active address degrades to “partial” rather than “nothing”.

new RpcLogsSource(__namedParameters): RpcLogsSource

Defined in: protocol-approvals-evm/src/sources/rpc-logs.ts:166

RpcLogsSourceOptions

RpcLogsSource

readonly name: string

Defined in: protocol-approvals-evm/src/sources/rpc-logs.ts:157

ApprovalSource.name


requests: number

Defined in: protocol-approvals-evm/src/sources/rpc-logs.ts:159

How many eth_getLogs requests the last collect issued (diagnostics).

collect(owner, __namedParameters): Promise<CollectResult>

Defined in: protocol-approvals-evm/src/sources/rpc-logs.ts:177

string

number

number

Promise<CollectResult>

ApprovalSource.collect