From ff92a3dba36f219b7475f132008a2b1d92f10b03 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Thu, 21 Jan 2016 16:58:18 -0800 Subject: [PATCH] gateway guide - more examples in rippled format --- content/gateway_guide.md | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/content/gateway_guide.md b/content/gateway_guide.md index 6ab32a4710..358fe6dd5a 100644 --- a/content/gateway_guide.md +++ b/content/gateway_guide.md @@ -409,7 +409,8 @@ The following is an example of using a locally-hosted `rippled`'s [`submit` comm Request: ``` -POST http://localhost:8088/ +POST http://localhost:5005/ +Content-Type: application/json { "method": "submit", "params": [ @@ -429,6 +430,31 @@ POST http://localhost:8088/ _(**Reminder:** Don't send your secret to a server you do not control.)_ +Response: + +``` +200 OK +{ + "result": { + "engine_result": "tesSUCCESS", + "engine_result_code": 0, + "engine_result_message": "The transaction was applied. Only final in a validated ledger.", + "status": "success", + "tx_blob": "12000322000000002400000161202100000003684000000000003A98732103AB40A0490F9B7ED8DF29D246BF2D6269820A0EE7742ACDD457BEA7C7D0931EDB74473045022100CD9A87890ADFAC49B8F69EDEC4A0DB99C86667883D7579289B06DAA4B81BF87E02207AC3FEEA518060AB2B538D330614D2594F432901F7C011D7EB92F74383E5340F81144B4E9C06F24296074F7BC48F92A97916C6DC5EA9", + "tx_json": { + "Account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn", + "Fee": "15000", + "Flags": 0, + "Sequence": 353, + "SetFlag": 3, + "SigningPubKey": "03AB40A0490F9B7ED8DF29D246BF2D6269820A0EE7742ACDD457BEA7C7D0931EDB", + "TransactionType": "AccountSet", + "TxnSignature": "3045022100CD9A87890ADFAC49B8F69EDEC4A0DB99C86667883D7579289B06DAA4B81BF87E02207AC3FEEA518060AB2B538D330614D2594F432901F7C011D7EB92F74383E5340F", + "hash": "59025DD6C9848679BA433448A1DD95833F2F4B64B03E214D074C7A5B6E3E3E70" + } + } +} +``` ## RequireAuth ## @@ -447,14 +473,14 @@ The following is an example of using a locally-hosted `rippled`'s [`submit` comm Request: ``` -POST http://localhost:8088/ +POST http://localhost:5005/ { "method": "submit", "params": [ { "secret": "sn3nxiW7v8KXzPzAqzyHXbSSKNuN9", "tx_json": { - "Account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn", + "Account": "rUpy3eEg8rqjqfUoLeBnZkscbKbFsKXC3v", "Fee": "15000", "Flags": 0, "SetFlag": 2, @@ -465,7 +491,7 @@ POST http://localhost:8088/ } ``` -_(**Reminder:** Don't send your secret to a server you do not control.)_ +_(**Reminder:** Don't send your secret to a server you do not control.)_ ### With Cold Wallets ###