ethers.js/packages/providers/lib/url-json-rpc-provider.d.ts

18 lines
863 B
TypeScript
Raw Normal View History

2019-05-15 01:48:48 +03:00
import { Network, Networkish } from "@ethersproject/networks";
2019-11-20 12:57:38 +03:00
import { ConnectionInfo } from "@ethersproject/web";
2020-10-08 03:10:50 +03:00
import { CommunityResourcable } from "./formatter";
2019-05-15 01:48:48 +03:00
import { JsonRpcProvider, JsonRpcSigner } from "./json-rpc-provider";
2020-06-29 07:54:30 +03:00
export declare class StaticJsonRpcProvider extends JsonRpcProvider {
detectNetwork(): Promise<Network>;
}
2020-10-08 03:10:50 +03:00
export declare abstract class UrlJsonRpcProvider extends StaticJsonRpcProvider implements CommunityResourcable {
2020-01-21 03:43:50 +03:00
readonly apiKey: any;
2019-11-20 12:57:38 +03:00
constructor(network?: Networkish, apiKey?: any);
2019-05-15 01:48:48 +03:00
_startPending(): void;
2020-10-08 03:10:50 +03:00
isCommunityResource(): boolean;
2019-05-15 01:48:48 +03:00
getSigner(address?: string): JsonRpcSigner;
listAccounts(): Promise<Array<string>>;
2019-11-20 12:57:38 +03:00
static getApiKey(apiKey: any): any;
static getUrl(network: Network, apiKey: any): string | ConnectionInfo;
2019-05-15 01:48:48 +03:00
}
//# sourceMappingURL=url-json-rpc-provider.d.ts.map