Skip to content
docs

BlockscoutClient

Defined in: history-evm/src/blockscout.ts:25

Blockscout /api/v2 client (also works against Blockscout-compatible explorers such as scrollscan.com).

new BlockscoutClient(options): BlockscoutClient

Defined in: history-evm/src/blockscout.ts:30

BlockscoutClientOptions

BlockscoutClient

readonly backend: "blockscout"

Defined in: history-evm/src/blockscout.ts:26

get(path, params?): Promise<unknown>

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

GET with the limiter; one retry on 429/5xx; 404 → undefined (unknown address / tx).

string

Record<string, string | number | undefined>

Promise<unknown>


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

Defined in: history-evm/src/blockscout.ts:98

string

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


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

Defined in: history-evm/src/blockscout.ts:78

Address lists as window-pagination specs. Blockscout pages are fixed at 50 items and carry their own next_page_params; limit is a hint only.

string

ListSpec<{ block: number; }>[]


url(path, params?): string

Defined in: history-evm/src/blockscout.ts:35

string

Record<string, string | number | undefined>

string