ethers.js/packages/providers/url-json-rpc-provider.d.ts
2019-05-23 19:13:44 -04:00

13 lines
566 B
TypeScript

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>>;
static getNetwork(network?: Networkish): Network;
static getApiKey(apiKey: string): string;
static getUrl(network: Network, apiKey: string): string;
}