@avalabs/avalanchejs
Version:
Avalanche Platform JS Library
18 lines • 1 kB
TypeScript
import { Api } from '../vms/common/baseApi';
import type { GetBlockchainIDResponse, GetNetworkIdResponse, GetNetworkNameResponse, GetNodeIdResponse, GetNodeIpResponse, GetNodeVersionReply, GetPeersResponse, isBootstrapped, UptimeResponse, GetUpgradesInfoResponse } from './model';
export declare class InfoApi extends Api {
private readonly baseURL;
constructor(baseURL?: string);
getNodeVersion(): Promise<GetNodeVersionReply>;
getNodeId(): Promise<GetNodeIdResponse>;
getNodeIp(): Promise<GetNodeIpResponse>;
getNetworkId(): Promise<GetNetworkIdResponse>;
getNetworkName(): Promise<GetNetworkNameResponse>;
getBlockchainId(alias: string): Promise<GetBlockchainIDResponse>;
peers(nodeIDs?: string[]): Promise<GetPeersResponse>;
isBootstrapped(chain: string): Promise<isBootstrapped>;
uptime(): Promise<UptimeResponse>;
getVMs(): Promise<Map<string, string[]>>;
getUpgradesInfo(): Promise<GetUpgradesInfoResponse>;
}
//# sourceMappingURL=api.d.ts.map