lnsocket

A minimal C library for connecting to the lightning network
git clone git://jb55.com/lnsocket
Log | Files | Refs | Submodules | README | LICENSE

commando.h (378B)


      1 
      2 #ifndef LNSOCKET_COMMANDO
      3 #define LNSOCKET_COMMANDO
      4 
      5 #include <inttypes.h>
      6 #include "export.h"
      7 
      8 #define COMMANDO_CMD 0x4c4f
      9 #define COMMANDO_REPLY_CONTINUES 0x594b
     10 #define COMMANDO_REPLY_TERM 0x594d
     11 
     12 int EXPORT commando_make_rpc_msg(const char *method, const char *params, const char *rune, unsigned int req_id, unsigned char *buf, int buflen);
     13 
     14 #endif /* LNSOCKET_COMMANDO */