v0.4.0
Initial release of the official .NET SDK for LnBot — Bitcoin for AI Agents.
Features
- Zero dependencies —
System.Net.Http+System.Text.Jsononly - Async-first — every method returns
Task<T>withCancellationTokensupport - Typed exceptions —
BadRequestException,NotFoundException,ConflictException,UnauthorizedException,ForbiddenException - SSE support —
WatchAsyncreturnsIAsyncEnumerable<T>for real-time events - Nullable reference types — fully annotated
Install
dotnet add package LnBotResources
- 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