Skip to content

Commit

Permalink
add accountId to broadcast (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeTamanoir authored Dec 5, 2024
1 parent 9c085ea commit 87593ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/bbn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<BitcoinTxHash> {
async broadcast(signedTx: BitcoinSignedTx, accountId?: string): Promise<BitcoinTxHash> {
const { data } = await api.post<BitcoinTxHash>('/v1/bbn/transaction/broadcast', {
account_id: accountId,
tx_serialized: signedTx.data.signed_tx_serialized,
});
return data;
Expand Down

0 comments on commit 87593ee

Please sign in to comment.