Skip to content
docs

EvmHistorySource

Defined in: history-evm/src/types.ts:97

EVM history for one chain from Etherscan v2, Blockscout or Alchemy, with keyless Blockscout and Routescan as fallbacks. Build it with createEvmHistory.

  • HistorySource

readonly chain: string

Defined in: core/dist/index-QWdcwE6y.d.ts:231

CAIP-2 chain id this source serves.

HistorySource.chain


readonly chainId: number

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

explorerTxUrl(hash): string

Defined in: core/dist/index-QWdcwE6y.d.ts:237

Explorer URL for a transaction.

string

string

HistorySource.explorerTxUrl


getTransaction(hash, address): Promise<EvmChainTx | undefined>

Defined in: history-evm/src/types.ts:100

One transaction by hash, normalized the same way (undefined when unknown / not yet indexed).

string

string

Promise<EvmChainTx | undefined>

HistorySource.getTransaction


listActivity(address, query?): Promise<EvmHistoryPage>

Defined in: history-evm/src/types.ts:99

Newest first.

string

HistoryQuery

Promise<EvmHistoryPage>

HistorySource.listActivity