nbd-wtf / eclair-go

Eclair API wrapper with gjson

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Eclair API wrapper with gjson

License:MIT License


Languages

Language:Go 100.0%