Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nbd-wtf/eclair-go
- Owner: nbd-wtf
- License: mit
- Created: 2021-08-21T18:58:53.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-08T01:48:01.000Z (about 2 years ago)
- Last Synced: 2024-04-16T00:50:33.326Z (8 months ago)
- Topics: eclair, gjson, lightning-network
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 mainimport (
"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())
}
```