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;