From a remote node? You'd ask for the whole block. But which one? Locally you can use txindex=1
Ok, so a connection from localhost bypasses the flood protection? If txindex=1, then you can ask for any transaction?
I assume even without txindex=1, the UTXO set is indexed.
I looked it up from the code
code (should have done that before).
From what I can see, there is no localhost exception. I guess RPC is the only way to do it.