Skip to content

Commit 1aebd6f

Browse files
agraebepgray-hiro
authored andcommitted
fix: update broadcastTransaction response
1 parent 56bde09 commit 1aebd6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pages/understand-stacks/sending-tokens.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,11 @@ const senderNonce = getNonce(senderAddress);
159159
Next, we will broadcast the transaction to the Testnet using the `network` object we created earlier:
160160

161161
```js
162-
const txId = await broadcastTransaction(transaction, network);
162+
const broadcastResponse = await broadcastTransaction(transaction, network);
163+
const txID = broadcastResponse.txid;
163164
```
164165

165-
As soon as the `broadcastTransaction` is completed, a transaction ID is returned.
166+
As soon as the `broadcastTransaction` is completed, a JSON object with the transaction ID (`txid`) is returned.
166167

167168
~> Keep in mind that the existence of a transaction ID does not mean the transaction has been successfully processed. Please review the [transaction lifecycle](/understand-stacks/transactions#lifecycle) for more details.
168169

0 commit comments

Comments
 (0)