Skip to content

Commit

Permalink
fix: update the broadcast headers
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed Dec 12, 2024
1 parent ecb4465 commit 0e4c3aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sbtc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sbtc",
"version": "0.2.4",
"version": "0.2.5",
"description": "Library for sBTC.",
"license": "MIT",
"author": "Hiro Systems PBC (https://hiro.so)",
Expand Down
1 change: 1 addition & 0 deletions packages/sbtc/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export class SbtcApiClient {
async broadcastTx(tx: btc.Transaction): Promise<string> {
return await fetch(`${this.config.btcApiUrl}/tx`, {
method: 'POST',
headers: { 'Content-Type': 'text/plain' },
body: tx.hex,
}).then(res => res.json() as Promise<string>);
}
Expand Down

0 comments on commit 0e4c3aa

Please sign in to comment.