ethers.js/packages/providers/lib.esm/etherscan-provider.d.ts

18 lines
985 B
TypeScript
Raw Normal View History

2019-05-15 01:48:48 +03:00
import { BlockTag, TransactionResponse } from "@ethersproject/abstract-provider";
2020-05-04 00:53:58 +03:00
import { Network, Networkish } from "@ethersproject/networks";
2019-05-15 01:48:48 +03:00
import { BaseProvider } from "./base-provider";
export declare class EtherscanProvider extends BaseProvider {
readonly baseUrl: string;
2022-08-18 21:48:39 +03:00
readonly apiKey: string | null;
2019-05-15 01:48:48 +03:00
constructor(network?: Networkish, apiKey?: string);
2021-05-17 23:19:36 +03: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-04 00:53:58 +03:00
detectNetwork(): Promise<Network>;
2019-05-15 01:48:48 +03:00
perform(method: string, params: any): Promise<any>;
getHistory(addressOrName: string | Promise<string>, startBlock?: BlockTag, endBlock?: BlockTag): Promise<Array<TransactionResponse>>;
2020-10-08 03:10:50 +03:00
isCommunityResource(): boolean;
2019-05-15 01:48:48 +03:00
}
//# sourceMappingURL=etherscan-provider.d.ts.map