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”.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RpcLogsSource(
__namedParameters):RpcLogsSource
Defined in: protocol-approvals-evm/src/sources/rpc-logs.ts:166
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”Returns
Section titled “Returns”RpcLogsSource
Properties
Section titled “Properties”
readonlyname:string
Defined in: protocol-approvals-evm/src/sources/rpc-logs.ts:157
Implementation of
Section titled “Implementation of”requests
Section titled “requests”requests:
number
Defined in: protocol-approvals-evm/src/sources/rpc-logs.ts:159
How many eth_getLogs requests the last collect issued (diagnostics).
Methods
Section titled “Methods”collect()
Section titled “collect()”collect(
owner,__namedParameters):Promise<CollectResult>
Defined in: protocol-approvals-evm/src/sources/rpc-logs.ts:177
Parameters
Section titled “Parameters”string
__namedParameters
Section titled “__namedParameters”fromBlock
Section titled “fromBlock”number
toBlock
Section titled “toBlock”number
Returns
Section titled “Returns”Promise<CollectResult>