I'm currently working on a bitcoin blockchain explorer for personal use. Everything is working fine so far but I have problems to implement the possibility to search for addresses and list all made transactions. I'm using bitcoin rpc and PHP.
After some internet search I found the RPC command importaddress but I read that it would need to rescan the whole blockchain which takes to long. Then I found the command scantxouset which
lets me scan the txout's. But I can't figure out to use this command even after visiting several websites. I'm not very familiar with JSON.
One was:
https://developer.bitcoin.org/reference/rpc/scantxoutset.htmlAnother problem is that this command can only search for unspent outputs.
Anyone has a idea how I can achieve to get all transactions made from a given address.