Bugfix 9022
[-] Removed the search for the final transaction to search for the final transaction, now the hash that the user entered will simply be taken, it will be checked that there is a transaction. And then when creating a transaction for a refund, it remains just to check whether the output has been spent.