X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FNodeInfo.mts;fp=ts%2Fstructs%2FNodeInfo.mts;h=0fa45212acd000e582f236ce1d004c11d70c3905;hb=bbf1ef578b7cfe9fc7d3ad8b6626ae6204e370e5;hp=bd0600fff29e9524ae4e21631ee2fae920a0adbf;hpb=65e786e1912ddad0d749508b8830cf30b37e784e;p=ldk-java diff --git a/ts/structs/NodeInfo.mts b/ts/structs/NodeInfo.mts index bd0600ff..0fa45212 100644 --- a/ts/structs/NodeInfo.mts +++ b/ts/structs/NodeInfo.mts @@ -365,6 +365,17 @@ export class NodeInfo extends CommonBase { super(ptr, bindings.NodeInfo_free); } + /** + * All valid channels a node has announced + * + * Returns a copy of the field. + */ + public get_channels(): bigint[] { + const ret: number = bindings.NodeInfo_get_channels(this.ptr); + const ret_conv: bigint[] = bindings.decodeUint64Array(ret); + return ret_conv; + } + /** * All valid channels a node has announced */