Block scanning gives every slot one chance. A skipped or abandoned slot,
a restart, or an incomplete lookback range loses a payment for good, and
nothing finds it again.
Once a Solana order has been expired for a minute (up to two hours), look
it up once in the receiving token accounts' own history:
- token accounts: the wallet's associated token account, derived locally,
plus any other account from getTokenAccountsByOwner when the node
supports it (publicnode's free tier rejects that method);
- getSignaturesForAddress back to the order's creation time, keeping
successful signatures inside the order window that no order has used;
- getTransaction, parsed with parseTransaction and checked with the
existing orderTransferMatch. A match is marked confirming and then
follows the normal confirm and callback flow.
RPC errors leave the order for the next round. Cost: a few RPC calls per
expired Solana order plus one getTransaction per candidate payment.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>