bitspire/packages/lnbits
Padreug ac40ea9bb6 feat(lnbits): wrap the create_wallet RPC
The transport has exposed `create_wallet` (AUTH_ACCOUNT) since the RPC
registry was written, but LnbitsClient never wrapped it — the ATM only ever
needed the auto-created default wallet from `list_wallets`.

Add `createWallet(name)` plus its `CreatedWallet` reply type. Account-scoped,
so the envelope deliberately carries no `wallet_id`: that absence is what
makes the server resolve auth to the Account rather than a Wallet. Not
wrapped in `idempotent()` — a retry would mint a duplicate wallet, same
reasoning as create_invoice.

The reply carries the new wallet's adminkey/inkey, hence the type-level note
not to log it verbatim.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013A6683cCHnQxFUosx1krY4
2026-09-06 19:24:15 +02:00
..
src feat(lnbits): wrap the create_wallet RPC 2026-09-06 19:24:15 +02:00
package.json feat(lnbits): new @bitSpire/lnbits package — LNbits client over the nostr-native-transport 2026-06-01 19:08:03 +02:00
tsconfig.json feat(lnbits): new @bitSpire/lnbits package — LNbits client over the nostr-native-transport 2026-06-01 19:08:03 +02:00