Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 666 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 666 Bytes

eclair-go

An API wrapper for Eclair that returns gjson results.

Read the documentation.

Quick Start

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())
}