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);
|
2021-05-17 16:19:36 -04:00
|
|
|
getBaseUrl(): string;
|
|
|
|
getUrl(module: string, params: Record<string, string>): string;
|
|
|
|
getPostUrl(): string;
|
|
|
|
getPostData(module: string, params: Record<string, any>): Record<string, any>;
|
|
|
|
fetch(module: string, params: Record<string, any>, post?: boolean): Promise<any>;
|
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>>;
|
2020-10-07 20:10:50 -04:00
|
|
|
isCommunityResource(): boolean;
|
2019-05-14 18:48:48 -04:00
|
|
|
}
|
2021-01-19 05:22:54 -05:00
|
|
|
//# sourceMappingURL=etherscan-provider.d.ts.map
|