'Send a Check' tutorial: minor cleanup

- Put tabs in the same order consistently (Send a Check)
- Use a consistent blob & hash for commandline examples
- Fix the redundant phrase "sign method command"
This commit is contained in:
mDuo13
2019-08-26 18:18:44 -07:00
parent 70fe00c429
commit 73f3e757d5
6 changed files with 32 additions and 29 deletions

View File

@@ -1 +1 @@
rippled submit 120010228000000024000000042E00000001501146060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE29168400000000000000C694000000005F5E100732103B6FCD7FAC4F665FE92415DD6E8450AD90F7D6B3D45A6CFCF2E359045FF4BB40074463044022071A341F911A8EF3B68399487CAF5BA3B59C6FE476B626698AEF044B8183721BC0220166053A859BD907251DFCCF34DD71202180EBABAE7098BB5903D16EBFC993C408114735FF88E5269C80CD7F7AF10530DAB840BBF6FDF8314A8B6B9FF3246856CADC4A0106198C066EA1F9C39 rippled submit 120010228000000024000000012A21FB3DF12E00000001501146060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE29168400000000000000C694000000005F5E100732103B6FCD7FAC4F665FE92415DD6E8450AD90F7D6B3D45A6CFCF2E359045FF4BB40074473045022100EB5A9001E14FC7304C4C2DF66507F9FC59D17FDCF98B43A4E30356658AB2A7CF02207127187EE0F287665D9552D15BEE6B00D3C6691C6773CE416E8A714B853F44FC8114735FF88E5269C80CD7F7AF10530DAB840BBF6FDF8314A8B6B9FF3246856CADC4A0106198C066EA1F9C39

View File

@@ -7,20 +7,21 @@ Loading: "/home/mduo13/.config/ripple/rippled.cfg"
"engine_result_code": -89, "engine_result_code": -89,
"engine_result_message": "Held until escalated fee drops.", "engine_result_message": "Held until escalated fee drops.",
"status" : "success", "status" : "success",
"tx_blob": "120010228000000024000000042E00000001501146060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE29168400000000000000C694000000005F5E100732103B6FCD7FAC4F665FE92415DD6E8450AD90F7D6B3D45A6CFCF2E359045FF4BB40074463044022071A341F911A8EF3B68399487CAF5BA3B59C6FE476B626698AEF044B8183721BC0220166053A859BD907251DFCCF34DD71202180EBABAE7098BB5903D16EBFC993C408114735FF88E5269C80CD7F7AF10530DAB840BBF6FDF8314A8B6B9FF3246856CADC4A0106198C066EA1F9C39", "tx_blob" : "120010228000000024000000012A21FB3DF12E00000001501146060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE29168400000000000000C694000000005F5E100732103B6FCD7FAC4F665FE92415DD6E8450AD90F7D6B3D45A6CFCF2E359045FF4BB40074473045022100EB5A9001E14FC7304C4C2DF66507F9FC59D17FDCF98B43A4E30356658AB2A7CF02207127187EE0F287665D9552D15BEE6B00D3C6691C6773CE416E8A714B853F44FC8114735FF88E5269C80CD7F7AF10530DAB840BBF6FDF8314A8B6B9FF3246856CADC4A0106198C066EA1F9C39",
"tx_json": { "tx_json" : {
"Account": "rBXsgNkPcDN2runsvWmwxk3Lh97zdgo9za", "Account" : "rBXsgNkPcDN2runsvWmwxk3Lh97zdgo9za",
"Destination": "rGPnRH1EBpHeTF2QG8DCAgM7z5pb75LAis", "Destination" : "rGPnRH1EBpHeTF2QG8DCAgM7z5pb75LAis",
"DestinationTag": 1, "DestinationTag" : 1,
"Fee": "12", "Expiration" : 570113521,
"Flags": 2147483648, "Fee" : "12",
"InvoiceID": "46060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE291", "Flags" : 2147483648,
"SendMax": "100000000", "InvoiceID" : "46060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE291",
"Sequence": 4, "SendMax" : "100000000",
"SigningPubKey": "03B6FCD7FAC4F665FE92415DD6E8450AD90F7D6B3D45A6CFCF2E359045FF4BB400", "Sequence" : 1,
"TransactionType": "CheckCreate", "SigningPubKey" : "03B6FCD7FAC4F665FE92415DD6E8450AD90F7D6B3D45A6CFCF2E359045FF4BB400",
"TxnSignature": "3044022071A341F911A8EF3B68399487CAF5BA3B59C6FE476B626698AEF044B8183721BC0220166053A859BD907251DFCCF34DD71202180EBABAE7098BB5903D16EBFC993C40", "TransactionType" : "CheckCreate",
"hash": "09D992D4C89E2A24D4BA9BB57ED81C7003815940F39B7C87ADBF2E49034380BB" "TxnSignature" : "3045022100EB5A9001E14FC7304C4C2DF66507F9FC59D17FDCF98B43A4E30356658AB2A7CF02207127187EE0F287665D9552D15BEE6B00D3C6691C6773CE416E8A714B853F44FC",
"hash" : "07C3B2878B6941FED97BA647244531B7E2203268B05C71C3A1A014045ADDF408"
} }
} }
} }

View File

@@ -1 +1 @@
rippled tx 09D992D4C89E2A24D4BA9BB57ED81C7003815940F39B7C87ADBF2E49034380BB rippled tx 07C3B2878B6941FED97BA647244531B7E2203268B05C71C3A1A014045ADDF408

View File

@@ -6,16 +6,18 @@ Loading: "/home/mduo13/.config/ripple/rippled.cfg"
"Account" : "rBXsgNkPcDN2runsvWmwxk3Lh97zdgo9za", "Account" : "rBXsgNkPcDN2runsvWmwxk3Lh97zdgo9za",
"Destination" : "rGPnRH1EBpHeTF2QG8DCAgM7z5pb75LAis", "Destination" : "rGPnRH1EBpHeTF2QG8DCAgM7z5pb75LAis",
"DestinationTag" : 1, "DestinationTag" : 1,
"Expiration" : 570113521,
"Fee" : "12", "Fee" : "12",
"Flags" : 2147483648, "Flags" : 2147483648,
"InvoiceID" : "46060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE291", "InvoiceID" : "46060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE291",
"SendMax" : "100000000", "SendMax" : "100000000",
"Sequence" : 4, "Sequence" : 1,
"SigningPubKey" : "03B6FCD7FAC4F665FE92415DD6E8450AD90F7D6B3D45A6CFCF2E359045FF4BB400", "SigningPubKey" : "03B6FCD7FAC4F665FE92415DD6E8450AD90F7D6B3D45A6CFCF2E359045FF4BB400",
"TransactionType" : "CheckCreate", "TransactionType" : "CheckCreate",
"TxnSignature" : "3044022071A341F911A8EF3B68399487CAF5BA3B59C6FE476B626698AEF044B8183721BC0220166053A859BD907251DFCCF34DD71202180EBABAE7098BB5903D16EBFC993C40", "TxnSignature" : "3045022100EB5A9001E14FC7304C4C2DF66507F9FC59D17FDCF98B43A4E30356658AB2A7CF02207127187EE0F287665D9552D15BEE6B00D3C6691C6773CE416E8A714B853F44FC",
"hash" : "07C3B2878B6941FED97BA647244531B7E2203268B05C71C3A1A014045ADDF408"
"date" : 575516100, "date" : 575516100,
"hash" : "09D992D4C89E2A24D4BA9BB57ED81C7003815940F39B7C87ADBF2E49034380BB",
"inLedger" : 7841263, "inLedger" : 7841263,
"ledger_index" : 7841263, "ledger_index" : 7841263,
"meta" : { "meta" : {
@@ -41,7 +43,7 @@ Loading: "/home/mduo13/.config/ripple/rippled.cfg"
"DestinationTag" : 1, "DestinationTag" : 1,
"InvoiceID" : "46060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE291", "InvoiceID" : "46060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE291",
"SendMax" : "100000000", "SendMax" : "100000000",
"Sequence" : 4 "Sequence" : 1
} }
} }
}, },
@@ -52,14 +54,14 @@ Loading: "/home/mduo13/.config/ripple/rippled.cfg"
"Balance" : "9999999952", "Balance" : "9999999952",
"Flags" : 0, "Flags" : 0,
"OwnerCount" : 2, "OwnerCount" : 2,
"Sequence" : 5 "Sequence" : 2
}, },
"LedgerEntryType" : "AccountRoot", "LedgerEntryType" : "AccountRoot",
"LedgerIndex" : "A9A591BA661F69433D5BEAA49F10BA2B8DEA5183EF414B9130BFE5E0328FE875", "LedgerIndex" : "A9A591BA661F69433D5BEAA49F10BA2B8DEA5183EF414B9130BFE5E0328FE875",
"PreviousFields" : { "PreviousFields" : {
"Balance" : "9999999964", "Balance" : "9999999964",
"OwnerCount" : 1, "OwnerCount" : 1,
"Sequence" : 4 "Sequence" : 1
}, },
"PreviousTxnID" : "45AF36CF7A810D0054C38C82C898EFC7E4898DF94FA7A3AAF80CB868708F7CE0", "PreviousTxnID" : "45AF36CF7A810D0054C38C82C898EFC7E4898DF94FA7A3AAF80CB868708F7CE0",
"PreviousTxnLgrSeq" : 7841237 "PreviousTxnLgrSeq" : 7841237

View File

@@ -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. In all cases, note the signed transaction's identifying hash for later.

View File

@@ -44,6 +44,12 @@ The following example shows a prepared Check from BoxSend SG (rBXsgNkPcDN2runsvW
<!-- MULTICODE_BLOCK_START --> <!-- MULTICODE_BLOCK_START -->
*RippleAPI*
```js
{% include '_code-samples/checks/js/prepareCreate.js' %}
```
*JSON-RPC, WebSocket, or Commandline* *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' %}
```
<!-- MULTICODE_BLOCK_END --> <!-- MULTICODE_BLOCK_END -->
## {{send_n.next()}}. Sign the CheckCreate transaction ## {{send_n.next()}}. Sign the CheckCreate transaction