prepare_litecoin_native_send
Build an unsigned Litecoin PSBT for native sends. Fetches UTXOs and fee rate, runs coin selection, and returns a handle for signing and broadcast via Ledger.
Instructions
Build an unsigned Litecoin native-send PSBT. Same pipeline as prepare_btc_send: fetch UTXOs + fee rate, run coin-selection, build a PSBT v0 with nonWitnessUtxo populated on every input (Ledger app 2.x requirement). Initial release: source addresses must be native segwit (ltc1q…) or taproot (ltc1p…); recipients can be L/M/ltc1q/ltc1p (legacy 3-prefix P2SH refused on send because bitcoinjs-lib ties the scriptHash byte to a single network object). Returns a handle consumed by send_transaction, which signs over USB HID with the Litecoin app and broadcasts via the indexer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | One paired Litecoin source address (string), OR an array of 1-20 paired source addresses for multi-input consolidation (issue #264). All addresses must belong to the SAME Ledger account (same accountIndex + addressType). UTXOs are fetched in parallel and merged into one coin-selection pool. Initial release sends only support native segwit (`ltc1q...`) and taproot (`ltc1p...`) source addresses; legacy (`L...`) and P2SH-wrapped (`M.../3...`) sends are deferred. | |
| to | Yes | Litecoin recipient address. L/M/ltc1q/ltc1p accepted. Legacy 3-prefix P2SH is rejected on send (it's read-supported only) — ask the recipient for an M-prefix address. | |
| amount | Yes | Decimal LTC string (up to 8 fractional digits, e.g. "0.001") or "max" to sweep the full balance minus fees. | |
| feeRateSatPerVb | No | Fee rate in litoshi/vB. Optional — when omitted, uses the indexer's halfHourFee recommendation. | |
| rbf | No | BIP-125 RBF. Default true. | |
| allowHighFee | No |