We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c085ea commit 87593eeCopy full SHA for 87593ee
src/services/bbn.ts
@@ -57,9 +57,11 @@ export class BbnService extends Service {
57
/**
58
* Broadcast transaction to the network
59
* @param signedTx the transaction to broadcast
60
+ * @param accountId the account id to attach the stake to
61
*/
- async broadcast(signedTx: BitcoinSignedTx): Promise<BitcoinTxHash> {
62
+ async broadcast(signedTx: BitcoinSignedTx, accountId?: string): Promise<BitcoinTxHash> {
63
const { data } = await api.post<BitcoinTxHash>('/v1/bbn/transaction/broadcast', {
64
+ account_id: accountId,
65
tx_serialized: signedTx.data.signed_tx_serialized,
66
});
67
return data;
0 commit comments