c-lightning rpc client.
Constructor | Description |
Full Usage:
ClnClient(network, ?address, ?jsonLibrary, ?getTransport)
Parameters:
Network
-
bitcoin network name
?address : Uri
-
Uri to connect for RPC call. it can be either tcp or unix socket.
?jsonLibrary : JsonLibraryType
-
Which json serializer you want to use.
?getTransport : Func<CancellationToken, Task<Stream>>
-
Stream getter.
If you specify address , than it will automatically use NetworkStream.
Otherwise, you can set other stream. This is useful for testing or STDIN/STDOUT for plugin.
Returns: ClnClient
|
|
Instance member | Description |
|
|
|
|
Full Usage:
this.SendCommandAsync
Parameters:
string
req : obj
?noReturn : bool
?ct : CancellationToken
Returns: Task<'T>
|
|
Full Usage:
this.SendNotification
Parameters:
string
req : obj
?ct : CancellationToken
Returns: Task
|
|