/eclair-go

Eclair API wrapper with gjson

Primary LanguageGoMIT LicenseMIT

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