locked, }); Ok( "0000000000000000000000000000000000000000000000000000000000000000" .parse() .unwrap(), ) } fn get_transaction( &self, txid: Txid, _include_watchonly: Option, ) -> Result { match self.state.lock().unwrap().transactions.get(&txid) { Some(tx) => Ok( serde_json::to_value(GetTransactionResult { info: WalletTxInfo { txid, confirmations: 0, time: 0, timereceived: 0, blockhash: None, blockindex: None, blockheight: None, blocktime: None, wallet_conflicts: Vec::new(), bip125_replaceable: Bip125Replaceable::Unknown, }, amount: SignedAmount::from_sat(0), fee: None, details: Vec::new(), hex: serialize(tx), }) .unwrap(), ), None => Err(jsonrpc_core::Error::new( jsonrpc_core::types::error::ErrorCode::ServerError(-8),