Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nbd-wtf/eclair-go

Eclair API wrapper with gjson
https://github.com/nbd-wtf/eclair-go

eclair gjson lightning-network

Last synced: about 1 month ago
JSON representation

Eclair API wrapper with gjson

Awesome Lists containing this project

README

        

eclair-go
=========

An API wrapper for [Eclair](https://acinq.github.io/eclair/) that returns [gjson](https://github.com/tidwall/gjson) results.

Read the [documentation](https://pkg.go.dev/github.com/fiatjaf/eclair-go).

Quick Start
-----------

```go
package main

import (
"log"
"github.com/fiatjaf/eclair-go"
)

func main() {
ln := eclair.Client{Host: "http://localhost:8080", Password: "satoshi21"}
res, _ := ln.Call("getinfo", nil)
log.Print(res.Get("nodeId").String())
}
```