@node-lightning/wire
Version:
Lightning Network Wire Protocol
23 lines (22 loc) • 501 B
TypeScript
import { AddressJson } from "./AddressJson";
import { AddressType } from "./AddressType";
export declare abstract class Address {
/**
* String notation representation of the host
*/
host: string;
/**
* Port number
*/
port: number;
/**
* Base class representing a network address
*/
constructor(host: string, port: number);
/**
* Type of connection
*/
get type(): AddressType;
toString(): string;
toJSON(): AddressJson;
}