UNPKG

xud

Version:
33 lines (32 loc) 890 B
/** The configurable options for the lnd client. */ export declare type LndClientConfig = { disable: boolean; certpath: string; macaroonpath: string; host: string; port: number; nomacaroons: boolean; cltvdelta: number; }; /** General information about the state of this lnd client. */ export declare type LndInfo = { status: string; error?: string; channels?: ChannelCount; chains?: Chain[]; blockheight?: number; uris?: string[]; version?: string; alias?: string; }; export declare type ChannelCount = { active: number; inactive?: number; pending: number; closed: number; }; export declare type Chain = { network: string; chain: string; }; export declare type ClientMethods = 'close' | 'waitForReady' | 'makeClientStreamRequest' | 'makeBidiStreamRequest' | 'makeServerStreamRequest' | 'makeUnaryRequest';