Skip to content
docs

BlockscoutSource

Defined in: protocol-approvals-evm/src/sources/blockscout.ts:34

Discovery through a Blockscout instance: GET /api?module=logs&action=getLogs&fromBlock&toBlock&topic1=<owner>.

Keyless instances allow about 10 requests per window per client IP and answer 429 with x-ratelimit-reset, so the cold start is one request per chain (see IndexerLogsSource). Pass apiKey (free at dev.blockscout.com) to lift the limit.

new BlockscoutSource(__namedParameters?): BlockscoutSource

Defined in: protocol-approvals-evm/src/sources/blockscout.ts:38

BlockscoutSourceOptions = {}

BlockscoutSource

IndexerLogsSource.constructor

protected readonly _concurrency: number

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:63

IndexerLogsSource._concurrency


protected readonly _fetch: FetchLike

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:61

IndexerLogsSource._fetch


protected readonly _headers: Record<string, string>

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:62

IndexerLogsSource._headers


protected readonly _maxRetryWait: number

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:66

IndexerLogsSource._maxRetryWait


protected readonly _perTopic: boolean

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:60

IndexerLogsSource._perTopic


protected readonly _retries: number

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:64

IndexerLogsSource._retries


protected readonly _retryDelay: number

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:65

IndexerLogsSource._retryDelay


readonly name: string

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:57

Source name reported in coverage.source.

IndexerLogsSource.name


requests: number

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:59

Requests issued by the last collect (diagnostics).

IndexerLogsSource.requests

protected _getLogs(query): Promise<RawLog[]>

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:129

IndexerQuery

Promise<RawLog[]>

IndexerLogsSource._getLogs


protected _url(__namedParameters): string

Defined in: protocol-approvals-evm/src/sources/blockscout.ts:46

The request URL for one query; implemented by each source.

IndexerQuery

string

IndexerLogsSource._url


collect(owner, __namedParameters): Promise<CollectResult>

Defined in: protocol-approvals-evm/src/sources/indexer-logs.ts:86

string

number

number

Promise<CollectResult>

IndexerLogsSource.collect