async fn validate_txn( blockchain: &Blockchain, wallet1: &mut Wallet, amount: f64, fee: f64, ) -> (i8, String)
Validate the transaction details.