EtherscanClient
Defined in: history-evm/src/etherscan.ts:40
Etherscan-format explorer client (Etherscan v2, or a keyless mirror such as Routescan).
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new EtherscanClient(
options):EtherscanClient
Defined in: history-evm/src/etherscan.ts:44
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”EtherscanClient
Properties
Section titled “Properties”backend
Section titled “backend”
readonlybackend:HistoryBackend
Defined in: history-evm/src/etherscan.ts:41
Methods
Section titled “Methods”call()
Section titled “call()”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.
Parameters
Section titled “Parameters”params
Section titled “params”Record<string, string | number | undefined>
Returns
Section titled “Returns”Promise<unknown>
getTransaction()
Section titled “getTransaction()”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).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<{ tokens: TokenRow[]; tx: TxRow; } | undefined>
listSpecs()
Section titled “listSpecs()”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).
Parameters
Section titled “Parameters”address
Section titled “address”string
Returns
Section titled “Returns”ListSpec<{ block: number; }>[]
url(
params):string
Defined in: history-evm/src/etherscan.ts:49
Parameters
Section titled “Parameters”params
Section titled “params”Record<string, string | number | undefined>
Returns
Section titled “Returns”string