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

12 lines
605 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;
readonly apiKey: string;
constructor(network?: Networkish, apiKey?: string);
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>>;
}