ethers.js/packages/providers/lib/eip-provider.d.ts
2020-02-10 15:51:58 -05:00

13 lines
539 B
TypeScript

import { Networkish } from "@ethersproject/networks";
import { JsonRpcProvider } from "./json-rpc-provider";
export interface Eip1193Provider {
isMetaMask?: boolean;
send: (message: string, params?: Array<any>) => Promise<any>;
on(eventName: string, listener: (...args: Array<any>) => void): this;
}
export declare class EipWrappedProvider extends JsonRpcProvider {
readonly provider: Eip1193Provider;
constructor(provider: Eip1193Provider, network?: Networkish);
send(method: string, params: any): Promise<any>;
}