Skip to content

Commit bbb990c

Browse files
ValuedMammaloleonardolima
authored andcommitted
fix(blocking): fix post request endpoints
1 parent e69d7e0 commit bbb990c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blocking.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ impl BlockingClient {
291291
/// Broadcast a [`Transaction`] to Esplora
292292
pub fn broadcast(&self, transaction: &Transaction) -> Result<Txid, Error> {
293293
let request = self.post_request(
294-
"tx",
294+
"/tx",
295295
serialize(transaction)
296296
.to_lower_hex_string()
297297
.as_bytes()
@@ -333,7 +333,7 @@ impl BlockingClient {
333333
.collect::<Vec<_>>();
334334

335335
let mut request = self.post_request(
336-
"txs/package",
336+
"/txs/package",
337337
serde_json::to_string(&serialized_txs)
338338
.unwrap()
339339
.as_bytes()

0 commit comments

Comments
 (0)