Expand gettxout to also serve spent txo if pruning or lack of -txindex don’t get in the way.
If the output is spent, it will be slower to load, but there’s no reason not to serve this if the data is there.
TODO (functional tests):
- Test success (ideally more than one example)
- Test error no txid
- Test error no n for this txid
- Test spent/unspent
- Test txindex error
- Test prunning error