@node-dlc/messaging
Version:
DLC Messaging Protocol
25 lines (24 loc) • 585 B
TypeScript
/// <reference types="node" />
import { MessageType } from '../MessageType';
export declare class Address {
static type: MessageType;
static deserialize(buf: Buffer): Address;
type: MessageType;
/**
* String notation representation of the host
*/
host: string;
/**
* Port number
*/
port: number;
/**
* Base class representing a network address
*/
constructor(host: string, port: number);
toString(): string;
/**
* Serializes the dlc_transactions_v0 message into a Buffer
*/
serialize(): Buffer;
}