Skip to content

JSON RPC HTTP proxy to c-lightning's unix socket based interface.

License

Notifications You must be signed in to change notification settings

alecalve/c-lightning-http-rpc

Repository files navigation

c-lightning-http-rpc

Provides a JSON RPC HTTP proxy to c-lightning's unix socket based interface.

Building

To build, just run

./gradlew build

Usage

java -jar build/libs/c-lightning-http-rpc-0.1.0.jar -c ~/.lightning/lightning-rpc

You can then execute RPC requests using HTTP:

curl -XPOST http://localhost:8080/ -d '{"method": "listpeers", "id": 1, "params": {}, "jsonrpc": "2.0"}'

returns

{
  "id": 1.0,
  "result": {
    "peers": []
  },
  "jsonrpc": "2.0"
}  

Limitations

For now, only POST requests are supported. See issue #1

No authentication. See issue #2

About

JSON RPC HTTP proxy to c-lightning's unix socket based interface.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages