Skip to content
docs

EtherscanClient

Defined in: history-evm/src/etherscan.ts:40

Etherscan-format explorer client (Etherscan v2, or a keyless mirror such as Routescan).

new EtherscanClient(options): EtherscanClient

Defined in: history-evm/src/etherscan.ts:44

EtherscanClientOptions

EtherscanClient

readonly backend: HistoryBackend

Defined in: history-evm/src/etherscan.ts:41

call(params): Promise<unknown>

Defined in: history-evm/src/etherscan.ts:58

One API call with the limiter; rate-limit answers are retried with a backoff (free Etherscan keys count 3 calls per wall-clock second); classified failures.

Record<string, string | number | undefined>

Promise<unknown>


getTransaction(hash): Promise<{ tokens: TokenRow[]; tx: TxRow; } | undefined>

Defined in: history-evm/src/etherscan.ts:122

proxy module: transaction + receipt (+ block for the timestamp when the node does not inline it).

string

Promise<{ tokens: TokenRow[]; tx: TxRow; } | undefined>


listSpecs(address): ListSpec<{ block: number; }>[]

Defined in: history-evm/src/etherscan.ts:105

The three address lists as window-pagination specs; next is a marker (Etherscan pages by endblock, not cursors).

string

ListSpec<{ block: number; }>[]


url(params): string

Defined in: history-evm/src/etherscan.ts:49

Record<string, string | number | undefined>

string