BlockscoutClient
Defined in: history-evm/src/blockscout.ts:25
Blockscout /api/v2 client (also works against Blockscout-compatible explorers such as scrollscan.com).
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BlockscoutClient(
options):BlockscoutClient
Defined in: history-evm/src/blockscout.ts:30
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”BlockscoutClient
Properties
Section titled “Properties”backend
Section titled “backend”
readonlybackend:"blockscout"
Defined in: history-evm/src/blockscout.ts:26
Methods
Section titled “Methods”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).
Parameters
Section titled “Parameters”string
params?
Section titled “params?”Record<string, string | number | undefined>
Returns
Section titled “Returns”Promise<unknown>
getTransaction()
Section titled “getTransaction()”getTransaction(
hash):Promise<{internal:InternalRow[];tokens:TokenRow[];tx:TxRow; } |undefined>
Defined in: history-evm/src/blockscout.ts:98
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<{ internal: InternalRow[]; tokens: TokenRow[]; tx: TxRow; } | undefined>
listSpecs()
Section titled “listSpecs()”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.
Parameters
Section titled “Parameters”address
Section titled “address”string
Returns
Section titled “Returns”ListSpec<{ block: number; }>[]
url(
path,params?):string
Defined in: history-evm/src/blockscout.ts:35
Parameters
Section titled “Parameters”string
params?
Section titled “params?”Record<string, string | number | undefined>
Returns
Section titled “Returns”string