You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add REST endpoints to list and query outgoing payments (on-chain and
Lightning), with immediate visibility for on-chain sends before chain
sync picks them up.
API:
- GET /payments/outgoing - list outgoing payments with pagination
- GET /payments/outgoing/{payment_id} - get single outgoing payment
- Both are read-only (work with either auth tier)
- Response includes kind (onchain with txid, or lightning with
payment_hash), status, amount, fee, and timestamp
- Auto-documented via OpenAPI at /scalar
On-chain send tracking:
- New mdk_outgoing_sends SQLite table stores txid, address, amount,
and timestamp immediately when sendtoaddress returns
- Outgoing list merges LDK payment store with local records,
deduplicating by txid, so sends appear instantly as PENDING
before LDK chain sync confirms them
Frontend (wallet.html):
- Outgoing Payments section added to Payments tab with pagination
- Columns: Status, Type, Amount, Fee, Updated, ID
- Txid is click-to-copy with hover highlight
- Auto-refreshes after on-chain sends
0 commit comments