From 1aebd6fe0bbcf2a355ef44ef329f740aed513f3e Mon Sep 17 00:00:00 2001 From: Alexander Graebe Date: Mon, 26 Jul 2021 13:30:52 -0700 Subject: [PATCH] fix: update broadcastTransaction response --- src/pages/understand-stacks/sending-tokens.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/understand-stacks/sending-tokens.md b/src/pages/understand-stacks/sending-tokens.md index 890f5c38..0fd6ab1b 100644 --- a/src/pages/understand-stacks/sending-tokens.md +++ b/src/pages/understand-stacks/sending-tokens.md @@ -159,10 +159,11 @@ const senderNonce = getNonce(senderAddress); Next, we will broadcast the transaction to the Testnet using the `network` object we created earlier: ```js -const txId = await broadcastTransaction(transaction, network); +const broadcastResponse = await broadcastTransaction(transaction, network); +const txID = broadcastResponse.txid; ``` -As soon as the `broadcastTransaction` is completed, a transaction ID is returned. +As soon as the `broadcastTransaction` is completed, a JSON object with the transaction ID (`txid`) is returned. ~> 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.