diff --git a/packages/sbtc/package.json b/packages/sbtc/package.json index 0b7573232..d82f8a285 100644 --- a/packages/sbtc/package.json +++ b/packages/sbtc/package.json @@ -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)", diff --git a/packages/sbtc/src/api.ts b/packages/sbtc/src/api.ts index c00227721..ffcd814e4 100644 --- a/packages/sbtc/src/api.ts +++ b/packages/sbtc/src/api.ts @@ -102,6 +102,7 @@ export class SbtcApiClient { async broadcastTx(tx: btc.Transaction): Promise { return await fetch(`${this.config.btcApiUrl}/tx`, { method: 'POST', + headers: { 'Content-Type': 'text/plain' }, body: tx.hex, }).then(res => res.json() as Promise); }