Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.24 KB

File metadata and controls

45 lines (32 loc) · 1.24 KB

cln-grpc-client

A module containing a Spring Boot Starter for a CLN gRPC API client. The starter will automatically create injectable NodeStub, NodeFutureStub and NodeBlockingStub beans

Install

Download from Maven Central.

Gradle

implementation "io.github.theborakompanioni:cln-grpc-client-starter:${bitcoinSpringBootStarterVersion}"

Maven

<dependency>
    <groupId>io.github.theborakompanioni</groupId>
    <artifactId>cln-grpc-client-starter</artifactId>
    <version>${bitcoinSpringBootStarter.version}</version>
</dependency>

Usage

Add the following to your application properties and adapt it to your needs:

org.tbk.lightning.cln.grpc:
  enabled: true
  host: localhost
  port: 19935
  ca-cert-file-path: '/home/user/.lightning/regtest/ca.pem'
  client-cert-file-path: '/home/user/.lightning/regtest/client.pem'
  client-key-file-path: '/home/user/.lightning/regtest/client-key.pem'

Of course, you can always create and inject all beans programmatically yourself.

Resources