1
For few reasons, I must use rpc node to handle wallet at this time. In the near future, I will change the flow to use library to create addreses, store privatekey at database and create raw transaction. That means I will use rpc node for broadcasting only, not depend on it too much. But I need time to do, so I will divide this period to few parts, firstly, I will start at creating and store address:
I have both hex private key and wif key, then I use importprivkey to import wif key to rpc node without rescan because I have a large request contacting to rpc. If those addresses are fresh, it's very nice scenario, each new input to them will automatically fetch UTXO by using listunspent command to check.
In other case, the very worst scenario, for maintenance or backup, I import an address which contains old UTXO and wanna fetch these UTXOs to addresses without using rescan command (it takes a long time to complete), like other api just put address and get UTXOs in a blink.
https://testnet.blockexplorer.com/api/addr/myzhMVXT39L7nnco6TtJ2a7sYaEo8ixT4Q/utxo
Is there any ways to fetch old UTXO to address in rpc node without rescan? Because these api are very fast response, I think they're not using rescan. For long term, using other api is not good for my project, I'm using version 0.16 (I know it's very old but the project need time to change it slowly and carefully), thanks for help so much.
Thank you, I've understood. But I can not find more detail on this
scantxoutsetcommand. May you give me a simple format with a valid adress without publickey, example:bitcoin-cli scantxoutset start '[{"desc":"MY_ADDRESS", "range":100}]'– mmo2112 – 2019-08-16T07:03:40.123bitcoin-cli scantxoutset start '["addr(<address>)", "addr(<address2>)"]'where<address>and <address2> are the addresses you want to scan for. Since it is an array, you can just add moreaddr(<address>)style descriptors. – Andrew Chow – 2019-08-16T14:25:11.380