clightning_rpc

Creator: coderz1093

Last updated:

0 purchases

clightning_rpc Image
clightning_rpc Images

Languages

Categories

Add to Cart

Description:

clightning rpc

clightning.dart


:dart: Dart framework for C-Lightning to work with the RPC interface :dart:





Project Homepage


Table of Content #

Introduction
How to Use
How Contribute
License

Introduction #
TODO
How to Use #
import 'package:clightning.dart/clightning_rpc.dart';

Future<void> main() async {
var client = RPCClient();
client.connect('/media/vincent/Maxtor/C-lightning/node/bitcoin/lightning-rpc');
var response = await client.call('getinfo');
print(response);

var params = <String, dynamic>{
'msatoshi': '100000msat',
'label': 'from-dart-1',
'description': 'This is a unit test'
};
response = await client.call('invoice', params: params);
print(response);

params = <String, dynamic>{
'label': params['label'],
'status': 'unpaid',
};
response = await client.call('delinvoice', params: params);
print(response);
}

copied to clipboard
How Contribute #
TODO
License #

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.