diff --git a/client/src/client_sync/v17/raw_transactions.rs b/client/src/client_sync/v17/raw_transactions.rs index 0473ad6..f571ca4 100644 --- a/client/src/client_sync/v17/raw_transactions.rs +++ b/client/src/client_sync/v17/raw_transactions.rs @@ -18,7 +18,8 @@ macro_rules! impl_client_v17__sendrawtransaction { &self, tx: &bitcoin::Transaction, ) -> Result { - self.call("sendrawtransaction", &[into_json(tx)?]) + let hex = bitcoin::consensus::encode::serialize_hex(tx); + self.call("sendrawtransaction", &[hex.into()]) } } };