From d92edd63f224adf02b05f76a3c601334a285b9f4 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Fri, 16 Jan 2015 11:47:06 -0800 Subject: [PATCH] [DOC] e2g - proper responses now that RLJS-154 and RLJS-158 are fixed --- content/exchange_to_gateway.md | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/content/exchange_to_gateway.md b/content/exchange_to_gateway.md index 70f1554a47..ec1d0dbdc5 100644 --- a/content/exchange_to_gateway.md +++ b/content/exchange_to_gateway.md @@ -304,7 +304,7 @@ Request: ``` POST https://api.ripple.com/v1/accounts/rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW/trustlines?validated=true { - "secret": "sssssssssssssssssssssss", + "secret": "sssssssssssssssssssssssss", "trustline": { "limit": "0", "currency": "USD", @@ -321,20 +321,21 @@ Response: { "success": true, "trustline": { - "hash": "E80F97A8623076D2915984058E64E46B9D02D5C16DC47F7BB8909D665ACC2E6A", - "ledger": "11085971", - "state": "validated", "account": "rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW", "limit": "0", "currency": "USD", "counterparty": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn", "account_allows_rippling": true, - "account_trustline_frozen": false - } + "account_trustline_frozen": false, + "authorized": true + }, + "hash": "4509288EE17F01C83FC7D45850EB066A795EE5DBA17BB4DC98DD4023D31EEE5B", + "ledger": "11158585", + "state": "validated" } ``` -(Would be nice to know what versions are affected by [RLJS-154](https://ripplelabs.atlassian.net/browse/RLJS-154).) + ## Robustly Monitoring for Payments ## @@ -400,7 +401,22 @@ POST https://api.ripple.com/v1/accounts/rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn/setti Response: -Setting the TransferRate in Ripple-REST is currently broken. See [RLJS-158](https://ripplelabs.atlassian.net/browse/RLJS-158) for status. +``` +200 OK + +{ + "success": true, + "settings": { + "transfer_rate": 1.005, + "require_destination_tag": false, + "require_authorization": false, + "disallow_xrp": false + }, + "hash": "4D098C181DE0A21A55ACBD362E5ADBF24EA2493BD4E56F2137DBAF113327AB4E", + "ledger": "11158720", + "state": "validated" +} +``` All Ripple Accounts, including the hot wallet, are subject to the TransferRate. If you set a nonzero TransferRate, then you must send extra (to pay the TransferRate) when making payments to users from your hot wallet. You can accomplish this by setting the `source_amount` (Ripple-REST) or the `SendMax` (rippled) parameters higher than the destination amount.