Skip to content

Releases: lnbotdev/go-sdk

v1.0.0

05 Mar 15:35

Choose a tag to compare

v1.0.0 — Wallet-scoped API

Breaking changes

All wallet-scoped resources now live under client.Wallet(id) instead of directly on the client.

Before:

client := lnbot.New("key_...")
client.Invoices.Create(ctx, params)
client.Wallets.Current(ctx)

After:

client := lnbot.New("uk_...")
w := client.Wallet("wal_...")
w.Invoices.Create(ctx, params)
w.Get(ctx)

New features

  • Register(ctx) — create a new account (returns user keys + recovery passphrase)
  • Me(ctx) — identity check
  • Wallet(id) — wallet handle with all sub-resources
  • Wallets.List(ctx) — list all wallets
  • WalletKeyService — create, get, delete, rotate wallet keys (wk_)
  • Payments.Resolve(ctx, target) — inspect a payment target before sending
  • PublicInvoicesServiceCreateForWallet, CreateForAddress (no auth)

Removed

  • Wallets.Current() → use Wallet(id).Get()
  • Wallets.Update() → use Wallet(id).Update()
  • Wallets.Create(params)Wallets.Create() (no params, no keys returned)
  • CreateWalletParams, WalletCredentials types removed

Authentication

Two key types:

  • User key (uk_) — all wallets under the account
  • Wallet key (wk_) — single wallet, required for SSE

Tests

  • 117 unit tests
  • Integration test suite (go test -tags=integration)

v0.5.0

27 Feb 18:12

Choose a tag to compare

What's new

  • L402 paywall supportclient.L402.CreateChallenge(), client.L402.Verify(), client.L402.Pay()
  • Get/watch by payment hashGetByHash() and WatchByHash() on Invoices and Payments
  • Removed client.Keys.List() — server endpoint removed (key listing is a local CLI operation)

Breaking changes

  • Keys.List() removed
  • APIKey type removed

v0.4.0

27 Feb 15:53

Choose a tag to compare

What's new

  • Wallet event stream: Events.Stream() — real-time SSE stream of all wallet activity (invoice.created, invoice.settled, payment.created, payment.settled, payment.failed)
  • preimage field added to Invoice and Payment
  • serviceFee field added to Payment

v0.3.0

27 Feb 14:57

Choose a tag to compare

What's new

  • Payment watch: Payments.Watch() SSE stream for real-time payment events (settled/failed)
  • Unauthenticated invoice creation: Invoices.CreateForWallet() and Invoices.CreateForAddress() — no API key required
  • LNURL support: Payments.Create() docs updated to mention LNURL as accepted target
  • New types: PaymentEvent, CreateInvoiceForWalletParams, CreateInvoiceForAddressParams, AddressInvoice