2019-05-14 18:48:48 -04:00
|
|
|
import { BlockTag, TransactionResponse } from "@ethersproject/abstract-provider";
|
2020-05-03 17:53:58 -04:00
|
|
|
import { Network, Networkish } from "@ethersproject/networks";
|
2019-05-14 18:48:48 -04:00
|
|
|
import { BaseProvider } from "./base-provider";
|
|
|
|
export declare class EtherscanProvider extends BaseProvider {
|
|
|
|
readonly baseUrl: string;
|
|
|
|
readonly apiKey: string;
|
|
|
|
constructor(network?: Networkish, apiKey?: string);
|
2020-05-03 17:53:58 -04:00
|
|
|
detectNetwork(): Promise<Network>;
|
2019-05-14 18:48:48 -04:00
|
|
|
perform(method: string, params: any): Promise<any>;
|
|
|
|
getHistory(addressOrName: string | Promise<string>, startBlock?: BlockTag, endBlock?: BlockTag): Promise<Array<TransactionResponse>>;
|
|
|
|
}
|