Skip to content

On-Chain Wallets#69

Open
raymond98 wants to merge 4 commits intoACINQ:masterfrom
raymond98:On-Chain
Open

On-Chain Wallets#69
raymond98 wants to merge 4 commits intoACINQ:masterfrom
raymond98:On-Chain

Conversation

@raymond98
Copy link
Copy Markdown

Swap-in Wallet Endpoints Added:

  • GET /getswapinaddress: Returns the current wallet address and index.
  • GET /swapinwalletbalance: Returns swap-in wallet balances.
  • GET /swapintransactions: Returns UTXOs.
  • GET /getswapinwalletinfo: Returns descriptors.

Final Wallet Endpoints Added:

  • GET /finalwalletbalance: Returns final wallet balances.
  • GET /getfinalwalletinfo: Returns final wallet xpub and path.
  • GET /getfinaladdress: Returns final wallet address.

Other Endpoints:

  • DELETE /payments/incoming/{paymentHash}: Deletes an incoming payment by its paymentHash.
  • POST /splicein: Performs manual splice-in to any open channel.

Note:
Changes made to the lightning-kmp's fee-credit-8 branch on the Peer:

  • Using ElectrumWatcher instead of MempoolSpaceWatcher.
  • Updating the swapInFeeratesFlow value inside the updateFeerates as required by the swapInJob for auto swap-ins.

@massmux
Copy link
Copy Markdown

massmux commented Sep 30, 2024

Adding this feature would be very nice in my opinion.

@remyers
Copy link
Copy Markdown

remyers commented Mar 9, 2026

If you add /splicein, then /spliceout would also be good.

@matthiasdebernardini
Copy link
Copy Markdown

This is exactly what I was oooking for. Managed to make the feature using a simple Bdk wallet but at the end of the day I want the sats in my ln node. What needs to be done to get this merged in? I'm
Happy to take this over since I'm actively using this

matthiasdebernardini added a commit to matthiasdebernardini/phoenixd that referenced this pull request Mar 9, 2026
…kend

Port swap-in functionality from PR ACINQ#69 to current master by switching the
blockchain backend from MempoolSpaceClient to ElectrumClient. This enables
peer.swapInWallet (which requires IElectrumClient) and adds three new API
endpoints: getswapinaddress, swapinwalletbalance, and splicein.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants