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

13 lines
566 B
TypeScript
Raw Normal View History

2019-05-15 01:48:48 +03:00
import { Network, Networkish } from "@ethersproject/networks";
import { JsonRpcProvider, JsonRpcSigner } from "./json-rpc-provider";
export declare class UrlJsonRpcProvider extends JsonRpcProvider {
readonly apiKey: string;
constructor(network?: Networkish, apiKey?: string);
_startPending(): void;
getSigner(address?: string): JsonRpcSigner;
listAccounts(): Promise<Array<string>>;
2019-05-24 02:13:44 +03:00
static getNetwork(network?: Networkish): Network;
2019-05-15 01:48:48 +03:00
static getApiKey(apiKey: string): string;
static getUrl(network: Network, apiKey: string): string;
}