UNPKG

@yubing744/rooch-sdk

Version:
30 lines (29 loc) 724 B
export interface ChainInfo { chainId: string; blockExplorerUrls?: string[]; chainName?: string; iconUrls?: string[]; nativeCurrency?: { name: string; symbol: string; decimals: number; }; rpcUrls?: string[]; } interface ConnectionOptions { url: string; websocket?: string; } export declare class Network { id: number; name: string; options: ConnectionOptions; constructor(id: number, name: string, options: ConnectionOptions); get url(): string; get websocket(): string; get info(): ChainInfo; } export declare const LocalNetwork: Network; export declare const DevNetwork: Network; export declare const AllNetwork: Network[]; export {};