Lain:1 LNDにTCP接続する

とりあえず、ここから。 LNDの標準RPCポートにtype scriptで接続する。

import * as net from 'net';  
const client = new net.Socket();

client.connect(10009, '127.0.0.1', () => {  
  console.log('Connected : ');
});

つながった!ここから始める。

次はnoise protocolに基づいてhand shakeする。