UNPKG

@node-lightning/wire

Version:
28 lines (27 loc) 880 B
/// <reference types="node" /> import { BitField } from "@node-lightning/core"; import { ShortChannelId } from "@node-lightning/core"; import { QueryScidFlags } from "../flags/QueryScidFlags"; import { MessageType } from "../MessageType"; import { EncodingType } from "../serialize/EncodingType"; import { IWireMessage } from "./IWireMessage"; export declare class QueryShortChannelIdsMessage implements IWireMessage { static deserialize(payload: Buffer): QueryShortChannelIdsMessage; /** * Type 261 */ type: MessageType; /** * 32-byte chain hash */ chainHash: Buffer; /** * List of channels to query */ shortChannelIds: ShortChannelId[]; /** * Optional flags that can be set when gossip_queries_ex is enabled. */ flags: Array<BitField<QueryScidFlags>>; serialize(encoding?: EncodingType): Buffer; }