Skip to content

Commit 87593ee

Browse files
authored
add accountId to broadcast (#168)
1 parent 9c085ea commit 87593ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/services/bbn.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ export class BbnService extends Service {
5757
/**
5858
* Broadcast transaction to the network
5959
* @param signedTx the transaction to broadcast
60+
* @param accountId the account id to attach the stake to
6061
*/
61-
async broadcast(signedTx: BitcoinSignedTx): Promise<BitcoinTxHash> {
62+
async broadcast(signedTx: BitcoinSignedTx, accountId?: string): Promise<BitcoinTxHash> {
6263
const { data } = await api.post<BitcoinTxHash>('/v1/bbn/transaction/broadcast', {
64+
account_id: accountId,
6365
tx_serialized: signedTx.data.signed_tx_serialized,
6466
});
6567
return data;

0 commit comments

Comments
 (0)