ethers.js/utils/networks.d.ts

15 lines
422 B
TypeScript
Raw Permalink Normal View History

export declare type Network = {
name: string;
chainId: number;
ensAddress?: string;
2018-11-20 15:45:47 -05:00
_defaultProvider?: (providers: any) => any;
};
export declare type Networkish = Network | string | number;
/**
* getNetwork
*
* Converts a named common networks or chain ID (network ID) to a Network
* and verifies a network is a valid Network..
*/
export declare function getNetwork(network: Networkish): Network;