diff --git a/content/_code-samples/checks/cli/submit-create-req.sh b/content/_code-samples/checks/cli/submit-create-req.sh index 2b93a699d7..75b9b87dab 100644 --- a/content/_code-samples/checks/cli/submit-create-req.sh +++ b/content/_code-samples/checks/cli/submit-create-req.sh @@ -1 +1 @@ -rippled submit 120010228000000024000000042E00000001501146060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE29168400000000000000C694000000005F5E100732103B6FCD7FAC4F665FE92415DD6E8450AD90F7D6B3D45A6CFCF2E359045FF4BB40074463044022071A341F911A8EF3B68399487CAF5BA3B59C6FE476B626698AEF044B8183721BC0220166053A859BD907251DFCCF34DD71202180EBABAE7098BB5903D16EBFC993C408114735FF88E5269C80CD7F7AF10530DAB840BBF6FDF8314A8B6B9FF3246856CADC4A0106198C066EA1F9C39 +rippled submit 120010228000000024000000012A21FB3DF12E00000001501146060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE29168400000000000000C694000000005F5E100732103B6FCD7FAC4F665FE92415DD6E8450AD90F7D6B3D45A6CFCF2E359045FF4BB40074473045022100EB5A9001E14FC7304C4C2DF66507F9FC59D17FDCF98B43A4E30356658AB2A7CF02207127187EE0F287665D9552D15BEE6B00D3C6691C6773CE416E8A714B853F44FC8114735FF88E5269C80CD7F7AF10530DAB840BBF6FDF8314A8B6B9FF3246856CADC4A0106198C066EA1F9C39 diff --git a/content/_code-samples/checks/cli/submit-create-resp.txt b/content/_code-samples/checks/cli/submit-create-resp.txt index 6f7f1a12e0..a59187d29a 100644 --- a/content/_code-samples/checks/cli/submit-create-resp.txt +++ b/content/_code-samples/checks/cli/submit-create-resp.txt @@ -7,20 +7,21 @@ Loading: "/home/mduo13/.config/ripple/rippled.cfg" "engine_result_code": -89, "engine_result_message": "Held until escalated fee drops.", "status" : "success", - "tx_blob": "120010228000000024000000042E00000001501146060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE29168400000000000000C694000000005F5E100732103B6FCD7FAC4F665FE92415DD6E8450AD90F7D6B3D45A6CFCF2E359045FF4BB40074463044022071A341F911A8EF3B68399487CAF5BA3B59C6FE476B626698AEF044B8183721BC0220166053A859BD907251DFCCF34DD71202180EBABAE7098BB5903D16EBFC993C408114735FF88E5269C80CD7F7AF10530DAB840BBF6FDF8314A8B6B9FF3246856CADC4A0106198C066EA1F9C39", - "tx_json": { - "Account": "rBXsgNkPcDN2runsvWmwxk3Lh97zdgo9za", - "Destination": "rGPnRH1EBpHeTF2QG8DCAgM7z5pb75LAis", - "DestinationTag": 1, - "Fee": "12", - "Flags": 2147483648, - "InvoiceID": "46060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE291", - "SendMax": "100000000", - "Sequence": 4, - "SigningPubKey": "03B6FCD7FAC4F665FE92415DD6E8450AD90F7D6B3D45A6CFCF2E359045FF4BB400", - "TransactionType": "CheckCreate", - "TxnSignature": "3044022071A341F911A8EF3B68399487CAF5BA3B59C6FE476B626698AEF044B8183721BC0220166053A859BD907251DFCCF34DD71202180EBABAE7098BB5903D16EBFC993C40", - "hash": "09D992D4C89E2A24D4BA9BB57ED81C7003815940F39B7C87ADBF2E49034380BB" + "tx_blob" : "120010228000000024000000012A21FB3DF12E00000001501146060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE29168400000000000000C694000000005F5E100732103B6FCD7FAC4F665FE92415DD6E8450AD90F7D6B3D45A6CFCF2E359045FF4BB40074473045022100EB5A9001E14FC7304C4C2DF66507F9FC59D17FDCF98B43A4E30356658AB2A7CF02207127187EE0F287665D9552D15BEE6B00D3C6691C6773CE416E8A714B853F44FC8114735FF88E5269C80CD7F7AF10530DAB840BBF6FDF8314A8B6B9FF3246856CADC4A0106198C066EA1F9C39", + "tx_json" : { + "Account" : "rBXsgNkPcDN2runsvWmwxk3Lh97zdgo9za", + "Destination" : "rGPnRH1EBpHeTF2QG8DCAgM7z5pb75LAis", + "DestinationTag" : 1, + "Expiration" : 570113521, + "Fee" : "12", + "Flags" : 2147483648, + "InvoiceID" : "46060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE291", + "SendMax" : "100000000", + "Sequence" : 1, + "SigningPubKey" : "03B6FCD7FAC4F665FE92415DD6E8450AD90F7D6B3D45A6CFCF2E359045FF4BB400", + "TransactionType" : "CheckCreate", + "TxnSignature" : "3045022100EB5A9001E14FC7304C4C2DF66507F9FC59D17FDCF98B43A4E30356658AB2A7CF02207127187EE0F287665D9552D15BEE6B00D3C6691C6773CE416E8A714B853F44FC", + "hash" : "07C3B2878B6941FED97BA647244531B7E2203268B05C71C3A1A014045ADDF408" } } } diff --git a/content/_code-samples/checks/cli/tx-create-req.sh b/content/_code-samples/checks/cli/tx-create-req.sh index 19f9f21574..5de6e4fe02 100644 --- a/content/_code-samples/checks/cli/tx-create-req.sh +++ b/content/_code-samples/checks/cli/tx-create-req.sh @@ -1 +1 @@ -rippled tx 09D992D4C89E2A24D4BA9BB57ED81C7003815940F39B7C87ADBF2E49034380BB +rippled tx 07C3B2878B6941FED97BA647244531B7E2203268B05C71C3A1A014045ADDF408 diff --git a/content/_code-samples/checks/cli/tx-create-resp.txt b/content/_code-samples/checks/cli/tx-create-resp.txt index 4625981271..f900b5e405 100644 --- a/content/_code-samples/checks/cli/tx-create-resp.txt +++ b/content/_code-samples/checks/cli/tx-create-resp.txt @@ -6,16 +6,18 @@ Loading: "/home/mduo13/.config/ripple/rippled.cfg" "Account" : "rBXsgNkPcDN2runsvWmwxk3Lh97zdgo9za", "Destination" : "rGPnRH1EBpHeTF2QG8DCAgM7z5pb75LAis", "DestinationTag" : 1, + "Expiration" : 570113521, "Fee" : "12", "Flags" : 2147483648, "InvoiceID" : "46060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE291", "SendMax" : "100000000", - "Sequence" : 4, + "Sequence" : 1, "SigningPubKey" : "03B6FCD7FAC4F665FE92415DD6E8450AD90F7D6B3D45A6CFCF2E359045FF4BB400", "TransactionType" : "CheckCreate", - "TxnSignature" : "3044022071A341F911A8EF3B68399487CAF5BA3B59C6FE476B626698AEF044B8183721BC0220166053A859BD907251DFCCF34DD71202180EBABAE7098BB5903D16EBFC993C40", + "TxnSignature" : "3045022100EB5A9001E14FC7304C4C2DF66507F9FC59D17FDCF98B43A4E30356658AB2A7CF02207127187EE0F287665D9552D15BEE6B00D3C6691C6773CE416E8A714B853F44FC", + "hash" : "07C3B2878B6941FED97BA647244531B7E2203268B05C71C3A1A014045ADDF408" + "date" : 575516100, - "hash" : "09D992D4C89E2A24D4BA9BB57ED81C7003815940F39B7C87ADBF2E49034380BB", "inLedger" : 7841263, "ledger_index" : 7841263, "meta" : { @@ -41,7 +43,7 @@ Loading: "/home/mduo13/.config/ripple/rippled.cfg" "DestinationTag" : 1, "InvoiceID" : "46060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE291", "SendMax" : "100000000", - "Sequence" : 4 + "Sequence" : 1 } } }, @@ -52,14 +54,14 @@ Loading: "/home/mduo13/.config/ripple/rippled.cfg" "Balance" : "9999999952", "Flags" : 0, "OwnerCount" : 2, - "Sequence" : 5 + "Sequence" : 2 }, "LedgerEntryType" : "AccountRoot", "LedgerIndex" : "A9A591BA661F69433D5BEAA49F10BA2B8DEA5183EF414B9130BFE5E0328FE875", "PreviousFields" : { "Balance" : "9999999964", "OwnerCount" : 1, - "Sequence" : 4 + "Sequence" : 1 }, "PreviousTxnID" : "45AF36CF7A810D0054C38C82C898EFC7E4898DF94FA7A3AAF80CB868708F7CE0", "PreviousTxnLgrSeq" : 7841237 diff --git a/content/_snippets/tutorial-sign-step.md b/content/_snippets/tutorial-sign-step.md index 25a56ce0b3..d01157a52b 100644 --- a/content/_snippets/tutorial-sign-step.md +++ b/content/_snippets/tutorial-sign-step.md @@ -1,3 +1,3 @@ -The most secure way to sign a transaction is to do it locally with a signing library, such as [RippleAPI](rippleapi-reference.html). Alternatively, you can sign the transaction using the [sign method](sign.html) command, but this must be done through a trusted and encrypted connection, or through a local connection, and only to a server you control. +The most secure way to sign a transaction is to do it locally with a signing library, such as [RippleAPI](rippleapi-reference.html). Alternatively, you can sign the transaction using the [sign method](sign.html), but this must be done through a trusted and encrypted connection, or through a local connection, and only to a server you control. In all cases, note the signed transaction's identifying hash for later. diff --git a/content/tutorials/use-complex-payment-types/use-checks/send-a-check.md b/content/tutorials/use-complex-payment-types/use-checks/send-a-check.md index 6823e76ce4..d64f649eb6 100644 --- a/content/tutorials/use-complex-payment-types/use-checks/send-a-check.md +++ b/content/tutorials/use-complex-payment-types/use-checks/send-a-check.md @@ -44,6 +44,12 @@ The following example shows a prepared Check from BoxSend SG (rBXsgNkPcDN2runsvW +*RippleAPI* + +```js +{% include '_code-samples/checks/js/prepareCreate.js' %} +``` + *JSON-RPC, WebSocket, or Commandline* ``` @@ -56,12 +62,6 @@ The following example shows a prepared Check from BoxSend SG (rBXsgNkPcDN2runsvW } ``` -*RippleAPI* - -```js -{% include '_code-samples/checks/js/prepareCreate.js' %} -``` - ## {{send_n.next()}}. Sign the CheckCreate transaction