From 67ff337fe04b4ffc7a221b67040ef8b9631d1ab6 Mon Sep 17 00:00:00 2001 From: Martin Saldinger Date: Wed, 4 Dec 2024 12:15:44 +0100 Subject: [PATCH] add accountId to broadcast --- 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;