lightning_fund_from_btc
Fund a Lightning wallet by sending BTC from the on-chain wallet to its Spark deposit address and returning the L1 transaction ID; claim the deposit after confirmation to credit the balance.
Instructions
Fund the Lightning wallet from the user's L1 BTC wallet. Sends BTC to the Spark deposit address and returns the L1 txid. After the transaction confirms on-chain, the deposit must be claimed to credit the Lightning balance (separate follow-up step; not automated in this PR). Requires the main wallet to be unlocked AND the Lightning wallet to be unlocked (to fetch the deposit address).
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feeRate | No | Fee rate: 'fast' (~10 min), 'medium' (~30 min), 'slow' (~1 hr), or number in sat/vB | medium |
| amountSats | Yes | Amount to deposit in satoshis (1 BTC = 100,000,000 satoshis) |