ethers.js/packages/providers/lib.esm/fallback-provider.d.ts
2020-01-18 21:48:12 -05:00

18 lines
610 B
TypeScript

import { Provider } from "@ethersproject/abstract-provider";
import { BaseProvider } from "./base-provider";
export interface FallbackProviderConfig {
provider: Provider;
priority?: number;
stallTimeout?: number;
weight?: number;
}
export declare class FallbackProvider extends BaseProvider {
readonly providerConfigs: Array<FallbackProviderConfig>;
readonly quorum: number;
_highestBlockNumber: number;
constructor(providers: Array<Provider | FallbackProviderConfig>, quorum?: number);
perform(method: string, params: {
[name: string]: any;
}): Promise<any>;
}