rescan_ltc_account
Re-query the indexer to update cached transaction counts for all paired Litecoin addresses under a Ledger account. Use after fund receipt or if indexer was stale at pairing.
Instructions
READ-ONLY — refresh the cached on-chain txCount for every paired Litecoin address under one Ledger account by re-querying the indexer. Pure indexer-side: NO Ledger / USB interaction. Use this after the user has received funds (so a previously-empty cached address now has history) or when the indexer was stale at the original pair_ledger_ltc scan time. Updates the persisted cache, so subsequent get_ltc_balance reflects the refresh without another rescan. Three-state extend signal: needsExtend: true (trailing buffer address on any cached chain has on-chain history — re-run pair_ledger_ltc to extend the walked window); unverifiedChains: [...] (tail probe REJECTED for that chain — indeterminate, usually a transient indexer hiccup, re-run rescan_ltc_account rather than re-pairing); neither field present → all walked chains confirmed healthy. Indexer fan-out is bounded to LITECOIN_INDEXER_PARALLELISM concurrent requests (default 8) to stay under litecoinspace.org's free-tier rate limits; transient 429s and network errors are retried once internally.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountIndex | Yes | Ledger Litecoin account slot to rescan. Must already be paired (call `pair_ledger_ltc` first). Re-queries the indexer for the live `txCount` of every cached address under this account and updates the persisted cache — useful after the user has received funds or the indexer was stale at original scan time. Pure indexer-side: no Ledger / USB interaction. Returns: `needsExtend: true` when the trailing empty address on any cached chain now has history (re-pair to extend the walked window); `unverifiedChains: [...]` when the tail probe ITSELF rejected (transient indexer hiccup, status indeterminate — re-run `rescan_ltc_account` rather than re-pairing). |