From 87593ee9d8a6b4731b7259bbb106bce1cf1a6a77 Mon Sep 17 00:00:00 2001 From: Martin Saldinger <51637671+LeTamanoir@users.noreply.github.com> Date: Thu, 5 Dec 2024 11:52:50 +0100 Subject: [PATCH] add accountId to broadcast (#168) --- src/services/bbn.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/bbn.ts b/src/services/bbn.ts index 55b6d19..6b51bdc 100644 --- a/src/services/bbn.ts +++ b/src/services/bbn.ts @@ -57,9 +57,11 @@ export class BbnService extends Service { /** * Broadcast transaction to the network * @param signedTx the transaction to broadcast + * @param accountId the account id to attach the stake to */ - async broadcast(signedTx: BitcoinSignedTx): Promise { + async broadcast(signedTx: BitcoinSignedTx, accountId?: string): Promise { const { data } = await api.post('/v1/bbn/transaction/broadcast', { + account_id: accountId, tx_serialized: signedTx.data.signed_tx_serialized, }); return data;