Skip to content

Releases: lnbotdev/csharp-sdk

v1.0.0

05 Mar 18:25

Choose a tag to compare

v1.0.0 — Wallet-scoped API

Breaking changes

  • All wallet operations now go through client.Wallet(walletId) instead of top-level methods
  • CreateWalletRequest removed — Wallets.CreateAsync() takes no parameters
  • Wallets.CurrentAsync() removed — use client.Wallet("current").GetAsync() with a wallet key
  • Wallets.UpdateAsync() moved to client.Wallet(id).UpdateAsync()

New features

  • Wallet-scoped APIclient.Wallet(id) returns a typed WalletScope with sub-resources
  • Account registrationclient.RegisterAsync()
  • Identity checkclient.MeAsync()
  • Wallet key managementwallet.Key.CreateAsync(), .GetAsync(), .DeleteAsync(), .RotateAsync()
  • Public invoice creationclient.Invoices.CreateForWalletAsync(), .CreateForAddressAsync()
  • Payment target resolutionwallet.Payments.ResolveAsync(target)

Testing

  • 90 unit tests
  • 56 integration tests

v0.5.0

27 Feb 18:12

Choose a tag to compare

What's new

  • L402 paywall supportclient.L402.CreateChallengeAsync(), client.L402.VerifyAsync(), client.L402.PayAsync()
  • Removed client.Keys.ListAsync() — server endpoint removed (key listing is a local CLI operation)

Breaking changes

  • Keys.ListAsync() removed
  • ApiKeyResponse type removed

v0.4.0

27 Feb 16:33

Choose a tag to compare

Initial release of the official .NET SDK for LnBot — Bitcoin for AI Agents.

Features

  • Zero dependenciesSystem.Net.Http + System.Text.Json only
  • Async-first — every method returns Task<T> with CancellationToken support
  • Typed exceptionsBadRequestException, NotFoundException, ConflictException, UnauthorizedException, ForbiddenException
  • SSE supportWatchAsync returns IAsyncEnumerable<T> for real-time events
  • Nullable reference types — fully annotated

Install

dotnet add package LnBot

Resources

  • Wallets — create, get, update
  • Invoices — create, list, get, watch (SSE)
  • Payments — create, list, get, watch (SSE)
  • Addresses — create, list, delete, transfer
  • Transactions — list with pagination
  • Webhooks — create, list, delete
  • API Keys — list, rotate
  • Events — real-time wallet event stream
  • Backup — recovery passphrase, passkey
  • Restore — recovery passphrase, passkey