Wallet RPCs that allow a rescan based on block-timestamp or block-height need to sync with the active chain first, because the user might assume the wallet is up-to-date with the latest block they got reported via a blockchain RPC.
90dudx8uvsr5jb4j
Originally posted by @alirezaayande in #20583 (comment)