From 7ee9235291cb63b2267bdc1606aa6be004ba3550 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Mon, 11 Jan 2021 20:30:28 -0800 Subject: [PATCH] Use Tickets: more interactive code progress --- .../manage-account-settings/use-tickets.md | 63 ++++++++++++++++++- 1 file changed, 61 insertions(+), 2 deletions(-) diff --git a/content/tutorials/manage-account-settings/use-tickets.md b/content/tutorials/manage-account-settings/use-tickets.md index 11f596f196..0aed39426f 100644 --- a/content/tutorials/manage-account-settings/use-tickets.md +++ b/content/tutorials/manage-account-settings/use-tickets.md @@ -4,6 +4,8 @@ funnel: Build doc_type: Tutorials category: Manage Account Settings blurb: Use Tickets to send a transaction outside of normal Sequence order. +filters: + - interactive_steps --- # Use Tickets @@ -147,8 +149,8 @@ let current_sequence = get_sequence() $("#check-sequence-output").html("") const account_info = await api.request("account_info", {account: address}) - $("#check-sequence-output").append("Current sequence: "+account_info.account_data.Sequence) - // TODO: populate Sequence number in next example + $("#check-sequence-output").append( + `

Current sequence: ${account_info.account_data.Sequence}

`) }) @@ -174,6 +176,44 @@ console.log("Transaction hash:", signed.id) let tx_blob = signed.signedTransaction ``` + +{{ start_step("Prepare & Sign") }} + +
+{{ end_step() }} + + + + + ### {{n.next()}}. Submit TicketCreate If you already have at least one Ticket available in the ledger, you can skip this step. Otherwise, you need to send a transaction to create some Tickets. @@ -185,6 +225,25 @@ let prelim_result = await api.submit(tx_blob) console.log("Preliminary result:", prelim_result) ``` +{{ start_step("Submit") }} + +
+{{ end_step() }} + + + + ### {{n.next()}}. Wait for Validation Most transactions are accepted into the next ledger version after they're submitted, which means it may take 4-7 seconds for a transaction's outcome to be final. If the XRP Ledger is busy or poor network connectivity delays a transaction from being relayed throughout the network, a transaction may take longer to be confirmed. (For information on how to set an expiration for transactions, see [Reliable Transaction Submission](reliable-transaction-submission.html).)