stellar-sdk 0.8.0 → 0.9.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/{LICENSE.txt → LICENSE} +0 -0
  3. data/README.md +4 -5
  4. data/lib/stellar-sdk.rb +2 -3
  5. data/lib/stellar/account.rb +16 -18
  6. data/lib/stellar/amount.rb +9 -13
  7. data/lib/stellar/client.rb +153 -113
  8. data/lib/stellar/horizon/problem.rb +14 -16
  9. data/lib/stellar/sep10.rb +56 -93
  10. data/lib/stellar/transaction_page.rb +4 -6
  11. data/lib/stellar/version.rb +1 -1
  12. metadata +13 -217
  13. data/.github/CODEOWNERS +0 -2
  14. data/.gitignore +0 -17
  15. data/.travis.yml +0 -20
  16. data/.yardopts +0 -7
  17. data/CONTRIBUTING.md +0 -48
  18. data/Gemfile +0 -14
  19. data/Guardfile +0 -5
  20. data/Rakefile +0 -3
  21. data/examples/01_get_funded.rb +0 -37
  22. data/examples/02_payment.rb +0 -15
  23. data/examples/03_transaction_history.rb +0 -21
  24. data/examples/04_setting_trust.rb +0 -1
  25. data/examples/05_fiat_payment.rb +0 -13
  26. data/examples/06_fund_testnet_friendbot.rb +0 -15
  27. data/examples/07_sep10.rb +0 -125
  28. data/ruby-stellar-sdk.gemspec +0 -35
  29. data/spec/config.yml.sample +0 -12
  30. data/spec/fixtures/vcr_cassettes/Stellar_Account/_lookup/should_handle_404_request_when_performing_federation_lookup.yml +0 -133
  31. data/spec/fixtures/vcr_cassettes/Stellar_Account/_lookup/should_handle_domains_that_are_not_federation_servers.yml +0 -44
  32. data/spec/fixtures/vcr_cassettes/Stellar_Account/_lookup/should_peforms_federation_lookup.yml +0 -85
  33. data/spec/fixtures/vcr_cassettes/Stellar_Client/_account_info/returns_the_current_details_for_the_account.yml +0 -190
  34. data/spec/fixtures/vcr_cassettes/Stellar_Client/_account_merge/merges_source_account_into_destination.yml +0 -714
  35. data/spec/fixtures/vcr_cassettes/Stellar_Client/_change_trust/given_an_asset_described_as_an_array/creates_updates_or_deletes_a_trustline.yml +0 -1156
  36. data/spec/fixtures/vcr_cassettes/Stellar_Client/_create_account/creates_the_account.yml +0 -323
  37. data/spec/fixtures/vcr_cassettes/Stellar_Client/_friendbot/requests_for_XLM_from_a_friendbot.yml +0 -246
  38. data/spec/fixtures/vcr_cassettes/Stellar_Client/_load_account/loads_successfully.yml +0 -226
  39. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/alphanum12_asset/sends_a_alphanum12_asset_to_the_destination.yml +0 -747
  40. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/alphanum4_asset/sends_a_alphanum4_asset_to_the_destination.yml +0 -747
  41. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/memo/accepts_the_memo_attribute.yml +0 -725
  42. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/native_asset/sends_a_native_payment_to_the_account.yml +0 -562
  43. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/using_a_payment_channel/sends_a_payment_account_through_a_channel_account.yml +0 -757
  44. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/using_a_payment_channel/sends_a_payment_when_the_channel_is_the_same_as_from_.yml +0 -642
  45. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/account_transactions/accepts_a_cursor_to_return_less_data.yml +0 -94
  46. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/account_transactions/returns_a_list_of_transaction_for_an_account.yml +0 -94
  47. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/all_transactions/accepts_a_cursor_to_return_less_data.yml +0 -94
  48. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/all_transactions/returns_a_list_of_transactions.yml +0 -94
  49. data/spec/lib/stellar/account_spec.rb +0 -59
  50. data/spec/lib/stellar/amount_spec.rb +0 -70
  51. data/spec/lib/stellar/client_spec.rb +0 -430
  52. data/spec/lib/stellar/sep10_spec.rb +0 -1148
  53. data/spec/spec_helper.rb +0 -14
  54. data/spec/support/config.rb +0 -3
  55. data/spec/support/vcr.rb +0 -10
  56. data/tasks/rspec.rake +0 -6
  57. data/tasks/travis.rake +0 -1
@@ -1,323 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://horizon-testnet.stellar.org/
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v0.9.2
12
- Accept:
13
- - application/hal+json,application/problem+json,application/json
14
- response:
15
- status:
16
- code: 200
17
- message: OK
18
- headers:
19
- Content-Type:
20
- - application/hal+json; charset=utf-8
21
- Date:
22
- - Sun, 26 Mar 2017 07:28:39 GMT
23
- X-Ratelimit-Limit:
24
- - '72000'
25
- X-Ratelimit-Remaining:
26
- - '71950'
27
- X-Ratelimit-Reset:
28
- - '2166'
29
- Content-Length:
30
- - '1366'
31
- Connection:
32
- - keep-alive
33
- body:
34
- encoding: UTF-8
35
- string: |-
36
- {
37
- "_links": {
38
- "account": {
39
- "href": "https://horizon-testnet.stellar.org/accounts/{account_id}",
40
- "templated": true
41
- },
42
- "account_transactions": {
43
- "href": "https://horizon-testnet.stellar.org/accounts/{account_id}/transactions{?cursor,limit,order}",
44
- "templated": true
45
- },
46
- "friendbot": {
47
- "href": "https://horizon-testnet.stellar.org/friendbot{?addr}",
48
- "templated": true
49
- },
50
- "metrics": {
51
- "href": "https://horizon-testnet.stellar.org/metrics"
52
- },
53
- "order_book": {
54
- "href": "https://horizon-testnet.stellar.org/order_book{?selling_asset_type,selling_asset_code,selling_issuer,buying_asset_type,buying_asset_code,buying_issuer}",
55
- "templated": true
56
- },
57
- "self": {
58
- "href": "https://horizon-testnet.stellar.org/"
59
- },
60
- "transaction": {
61
- "href": "https://horizon-testnet.stellar.org/transactions/{hash}",
62
- "templated": true
63
- },
64
- "transactions": {
65
- "href": "https://horizon-testnet.stellar.org/transactions{?cursor,limit,order}",
66
- "templated": true
67
- }
68
- },
69
- "horizon_version": "v0.10.0-3-g50eda21",
70
- "core_version": "v0.6.1-2-g12a1603",
71
- "history_latest_ledger": 124857,
72
- "history_elder_ledger": 1,
73
- "core_latest_ledger": 124857,
74
- "core_elder_ledger": 1,
75
- "network_passphrase": "Test SDF Network ; September 2015",
76
- "protocol_version": 4
77
- }
78
- http_version:
79
- recorded_at: Sun, 26 Mar 2017 07:28:38 GMT
80
- - request:
81
- method: get
82
- uri: https://horizon-testnet.stellar.org/accounts/[source_address]
83
- body:
84
- encoding: US-ASCII
85
- string: ''
86
- headers:
87
- User-Agent:
88
- - Faraday v0.9.2
89
- Accept:
90
- - application/hal+json,application/problem+json,application/json
91
- response:
92
- status:
93
- code: 200
94
- message: OK
95
- headers:
96
- Content-Type:
97
- - application/hal+json; charset=utf-8
98
- Date:
99
- - Sun, 26 Mar 2017 07:28:40 GMT
100
- X-Ratelimit-Limit:
101
- - '72000'
102
- X-Ratelimit-Remaining:
103
- - '71949'
104
- X-Ratelimit-Reset:
105
- - '2165'
106
- Connection:
107
- - keep-alive
108
- body:
109
- encoding: UTF-8
110
- string: |-
111
- {
112
- "_links": {
113
- "self": {
114
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
115
- },
116
- "transactions": {
117
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/transactions{?cursor,limit,order}",
118
- "templated": true
119
- },
120
- "operations": {
121
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/operations{?cursor,limit,order}",
122
- "templated": true
123
- },
124
- "payments": {
125
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/payments{?cursor,limit,order}",
126
- "templated": true
127
- },
128
- "effects": {
129
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/effects{?cursor,limit,order}",
130
- "templated": true
131
- },
132
- "offers": {
133
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/offers{?cursor,limit,order}",
134
- "templated": true
135
- },
136
- "trades": {
137
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/trades{?cursor,limit,order}",
138
- "templated": true
139
- },
140
- "data": {
141
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/data/{key}",
142
- "templated": true
143
- }
144
- },
145
- "id": "[source_address]",
146
- "paging_token": "",
147
- "account_id": "[source_address]",
148
- "sequence": "346973227974693",
149
- "subentry_count": 0,
150
- "thresholds": {
151
- "low_threshold": 0,
152
- "med_threshold": 0,
153
- "high_threshold": 0
154
- },
155
- "flags": {
156
- "auth_required": false,
157
- "auth_revocable": false
158
- },
159
- "balances": [
160
- {
161
- "balance": "4949.9998600",
162
- "asset_type": "native"
163
- }
164
- ],
165
- "signers": [
166
- {
167
- "public_key": "[source_address]",
168
- "weight": 1,
169
- "key": "[source_address]",
170
- "type": "ed25519_public_key"
171
- }
172
- ],
173
- "data": {}
174
- }
175
- http_version:
176
- recorded_at: Sun, 26 Mar 2017 07:28:39 GMT
177
- - request:
178
- method: post
179
- uri: https://horizon-testnet.stellar.org/transactions
180
- body:
181
- encoding: UTF-8
182
- string: tx=AAAAAKEiSt7wL8zHIfwsJF5PvoI%2FqW7Epb2ihhiW7lxPpHJCO5rKAAABO5IAAAAmAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAA3thuBcDVJ%2B1nsrzNBZUsTXSzLqe%2F1uSLB3pCUNbLLccAAAAAO5rKAAAAAAAAAAABT6RyQgAAAED%2F4yyK21dzG2s7fEVNMeqQ%2FIjH12yPb%2FokUABPH3l%2FDxzTYgkWMC1V2MD4pV%2FpcqAbRrwWp6AUoTvjiE%2BhqF4C
183
- headers:
184
- User-Agent:
185
- - Faraday v0.9.2
186
- Accept:
187
- - application/hal+json,application/problem+json,application/json
188
- Content-Type:
189
- - application/x-www-form-urlencoded
190
- response:
191
- status:
192
- code: 200
193
- message: OK
194
- headers:
195
- Content-Type:
196
- - application/hal+json; charset=utf-8
197
- Date:
198
- - Sun, 26 Mar 2017 07:28:46 GMT
199
- X-Ratelimit-Limit:
200
- - '72000'
201
- X-Ratelimit-Remaining:
202
- - '71948'
203
- X-Ratelimit-Reset:
204
- - '2164'
205
- Content-Length:
206
- - '915'
207
- Connection:
208
- - keep-alive
209
- body:
210
- encoding: UTF-8
211
- string: |-
212
- {
213
- "_links": {
214
- "transaction": {
215
- "href": "https://horizon-testnet.stellar.org/transactions/c56288996ef30a6677716d1c12879911076cd49984b997226b7d6e85105bb792"
216
- }
217
- },
218
- "hash": "c56288996ef30a6677716d1c12879911076cd49984b997226b7d6e85105bb792",
219
- "ledger": 124860,
220
- "envelope_xdr": "AAAAAKEiSt7wL8zHIfwsJF5PvoI/qW7Epb2ihhiW7lxPpHJCO5rKAAABO5IAAAAmAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAA3thuBcDVJ+1nsrzNBZUsTXSzLqe/1uSLB3pCUNbLLccAAAAAO5rKAAAAAAAAAAABT6RyQgAAAED/4yyK21dzG2s7fEVNMeqQ/IjH12yPb/okUABPH3l/DxzTYgkWMC1V2MD4pV/pcqAbRrwWp6AUoTvjiE+hqF4C",
221
- "result_xdr": "AAAAADuaygAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA=",
222
- "result_meta_xdr": "AAAAAAAAAAEAAAACAAAAAAAB57wAAAAAAAAAAN7YbgXA1SftZ7K8zQWVLE10sy6nv9bkiwd6QlDWyy3HAAAAADuaygAAAee8AAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAQAB57wAAAAAAAAAAKEiSt7wL8zHIfwsJF5PvoI/qW7Epb2ihhiW7lxPpHJCAAAACw84dYgAATuSAAAAJgAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAA"
223
- }
224
- http_version:
225
- recorded_at: Sun, 26 Mar 2017 07:28:45 GMT
226
- - request:
227
- method: get
228
- uri: https://horizon-testnet.stellar.org/accounts/GDPNQ3QFYDKSP3LHWK6M2BMVFRGXJMZOU675NZELA55EEUGWZMW4OGMC
229
- body:
230
- encoding: US-ASCII
231
- string: ''
232
- headers:
233
- User-Agent:
234
- - Faraday v0.9.2
235
- Accept:
236
- - application/hal+json,application/problem+json,application/json
237
- response:
238
- status:
239
- code: 200
240
- message: OK
241
- headers:
242
- Content-Type:
243
- - application/hal+json; charset=utf-8
244
- Date:
245
- - Sun, 26 Mar 2017 07:28:47 GMT
246
- X-Ratelimit-Limit:
247
- - '72000'
248
- X-Ratelimit-Remaining:
249
- - '71947'
250
- X-Ratelimit-Reset:
251
- - '2158'
252
- Connection:
253
- - keep-alive
254
- body:
255
- encoding: UTF-8
256
- string: |-
257
- {
258
- "_links": {
259
- "self": {
260
- "href": "https://horizon-testnet.stellar.org/accounts/GDPNQ3QFYDKSP3LHWK6M2BMVFRGXJMZOU675NZELA55EEUGWZMW4OGMC"
261
- },
262
- "transactions": {
263
- "href": "https://horizon-testnet.stellar.org/accounts/GDPNQ3QFYDKSP3LHWK6M2BMVFRGXJMZOU675NZELA55EEUGWZMW4OGMC/transactions{?cursor,limit,order}",
264
- "templated": true
265
- },
266
- "operations": {
267
- "href": "https://horizon-testnet.stellar.org/accounts/GDPNQ3QFYDKSP3LHWK6M2BMVFRGXJMZOU675NZELA55EEUGWZMW4OGMC/operations{?cursor,limit,order}",
268
- "templated": true
269
- },
270
- "payments": {
271
- "href": "https://horizon-testnet.stellar.org/accounts/GDPNQ3QFYDKSP3LHWK6M2BMVFRGXJMZOU675NZELA55EEUGWZMW4OGMC/payments{?cursor,limit,order}",
272
- "templated": true
273
- },
274
- "effects": {
275
- "href": "https://horizon-testnet.stellar.org/accounts/GDPNQ3QFYDKSP3LHWK6M2BMVFRGXJMZOU675NZELA55EEUGWZMW4OGMC/effects{?cursor,limit,order}",
276
- "templated": true
277
- },
278
- "offers": {
279
- "href": "https://horizon-testnet.stellar.org/accounts/GDPNQ3QFYDKSP3LHWK6M2BMVFRGXJMZOU675NZELA55EEUGWZMW4OGMC/offers{?cursor,limit,order}",
280
- "templated": true
281
- },
282
- "trades": {
283
- "href": "https://horizon-testnet.stellar.org/accounts/GDPNQ3QFYDKSP3LHWK6M2BMVFRGXJMZOU675NZELA55EEUGWZMW4OGMC/trades{?cursor,limit,order}",
284
- "templated": true
285
- },
286
- "data": {
287
- "href": "https://horizon-testnet.stellar.org/accounts/GDPNQ3QFYDKSP3LHWK6M2BMVFRGXJMZOU675NZELA55EEUGWZMW4OGMC/data/{key}",
288
- "templated": true
289
- }
290
- },
291
- "id": "GDPNQ3QFYDKSP3LHWK6M2BMVFRGXJMZOU675NZELA55EEUGWZMW4OGMC",
292
- "paging_token": "",
293
- "account_id": "GDPNQ3QFYDKSP3LHWK6M2BMVFRGXJMZOU675NZELA55EEUGWZMW4OGMC",
294
- "sequence": "536269616578560",
295
- "subentry_count": 0,
296
- "thresholds": {
297
- "low_threshold": 0,
298
- "med_threshold": 0,
299
- "high_threshold": 0
300
- },
301
- "flags": {
302
- "auth_required": false,
303
- "auth_revocable": false
304
- },
305
- "balances": [
306
- {
307
- "balance": "100.0000000",
308
- "asset_type": "native"
309
- }
310
- ],
311
- "signers": [
312
- {
313
- "public_key": "GDPNQ3QFYDKSP3LHWK6M2BMVFRGXJMZOU675NZELA55EEUGWZMW4OGMC",
314
- "weight": 1,
315
- "key": "GDPNQ3QFYDKSP3LHWK6M2BMVFRGXJMZOU675NZELA55EEUGWZMW4OGMC",
316
- "type": "ed25519_public_key"
317
- }
318
- ],
319
- "data": {}
320
- }
321
- http_version:
322
- recorded_at: Sun, 26 Mar 2017 07:28:46 GMT
323
- recorded_with: VCR 3.0.3
@@ -1,246 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://friendbot.stellar.org/?addr=GCVV6PPVRMBSNMC3CXLYVF5IR3M4EWZJMPHMB6H6GGLJKZQUQXHHWLH7
6
- body:
7
- encoding: UTF-8
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v0.15.4
12
- Content-Length:
13
- - '0'
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- Accept:
17
- - "*/*"
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Content-Disposition:
24
- - inline
25
- Content-Type:
26
- - application/hal+json; charset=utf-8
27
- Date:
28
- - Wed, 27 Feb 2019 13:37:42 GMT
29
- Vary:
30
- - Origin
31
- Content-Length:
32
- - '1305'
33
- Connection:
34
- - keep-alive
35
- body:
36
- encoding: UTF-8
37
- string: |-
38
- {
39
- "_links": {
40
- "transaction": {
41
- "href": "https://horizon-testnet.stellar.org/transactions/2b860ac7335b9dba1731c2398ac3a2791521397ccc619ee0381edf705bb132ef"
42
- }
43
- },
44
- "hash": "2b860ac7335b9dba1731c2398ac3a2791521397ccc619ee0381edf705bb132ef",
45
- "ledger": 2626,
46
- "envelope_xdr": "AAAAABB90WssODNIgi6BHveqzxTRmIpvAFRyVNM+Hm2GVuCcAAAAZAAABD0AAALWAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAq1899YsDJrBbFdeKl6iO2cJbKWPOwPj+MZaVZhSFznsAAAAXSHboAAAAAAAAAAABhlbgnAAAAEBJDTZxL0wLfR8Jn1DsY5mqUM+g0e6Va9LVSqcWMRBu3JXukA43VIBhMinuyFG3CJ9t82eWlOV8WqCyGZbKZLQM",
47
- "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA=",
48
- "result_meta_xdr": "AAAAAQAAAAIAAAADAAAKQgAAAAAAAAAAEH3Rayw4M0iCLoEe96rPFNGYim8AVHJU0z4ebYZW4JwAA1UD3FScaAAABD0AAALVAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAKQgAAAAAAAAAAEH3Rayw4M0iCLoEe96rPFNGYim8AVHJU0z4ebYZW4JwAA1UD3FScaAAABD0AAALWAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAMAAApCAAAAAAAAAAAQfdFrLDgzSIIugR73qs8U0ZiKbwBUclTTPh5thlbgnAADVQPcVJxoAAAEPQAAAtYAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAApCAAAAAAAAAAAQfdFrLDgzSIIugR73qs8U0ZiKbwBUclTTPh5thlbgnAADVOyT3bRoAAAEPQAAAtYAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAApCAAAAAAAAAACrXz31iwMmsFsV14qXqI7ZwlspY87A+P4xlpVmFIXOewAAABdIdugAAAAKQgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="
49
- }
50
- http_version:
51
- recorded_at: Wed, 27 Feb 2019 13:37:42 GMT
52
- - request:
53
- method: get
54
- uri: https://horizon-testnet.stellar.org/
55
- body:
56
- encoding: US-ASCII
57
- string: ''
58
- headers:
59
- User-Agent:
60
- - Faraday v0.15.4
61
- Accept:
62
- - application/hal+json,application/problem+json,application/json
63
- response:
64
- status:
65
- code: 200
66
- message: OK
67
- headers:
68
- Cache-Control:
69
- - no-cache, no-store, max-age=0
70
- Content-Disposition:
71
- - inline
72
- Content-Type:
73
- - application/hal+json; charset=utf-8
74
- Date:
75
- - Wed, 27 Feb 2019 13:37:44 GMT
76
- Vary:
77
- - Origin
78
- X-Ratelimit-Limit:
79
- - '101'
80
- X-Ratelimit-Remaining:
81
- - '100'
82
- X-Ratelimit-Reset:
83
- - '1'
84
- Content-Length:
85
- - '1615'
86
- Connection:
87
- - keep-alive
88
- body:
89
- encoding: ASCII-8BIT
90
- string: |-
91
- {
92
- "_links": {
93
- "account": {
94
- "href": "https://horizon-testnet.stellar.org/accounts/{account_id}",
95
- "templated": true
96
- },
97
- "account_transactions": {
98
- "href": "https://horizon-testnet.stellar.org/accounts/{account_id}/transactions{?cursor,limit,order}",
99
- "templated": true
100
- },
101
- "assets": {
102
- "href": "https://horizon-testnet.stellar.org/assets{?asset_code,asset_issuer,cursor,limit,order}",
103
- "templated": true
104
- },
105
- "friendbot": {
106
- "href": "https://friendbot.stellar.org/{?addr}",
107
- "templated": true
108
- },
109
- "metrics": {
110
- "href": "https://horizon-testnet.stellar.org/metrics"
111
- },
112
- "order_book": {
113
- "href": "https://horizon-testnet.stellar.org/order_book{?selling_asset_type,selling_asset_code,selling_asset_issuer,buying_asset_type,buying_asset_code,buying_asset_issuer,limit}",
114
- "templated": true
115
- },
116
- "self": {
117
- "href": "https://horizon-testnet.stellar.org/"
118
- },
119
- "transaction": {
120
- "href": "https://horizon-testnet.stellar.org/transactions/{hash}",
121
- "templated": true
122
- },
123
- "transactions": {
124
- "href": "https://horizon-testnet.stellar.org/transactions{?cursor,limit,order}",
125
- "templated": true
126
- }
127
- },
128
- "horizon_version": "0.17.0-f510ce5a0450f1fab1576f248a8a9f7a9ec3aaf7",
129
- "core_version": "stellar-core 10.2.0 (54504c714ab6e696283e0bd0fdf1c3a029b7c88b)",
130
- "history_latest_ledger": 2626,
131
- "history_elder_ledger": 1,
132
- "core_latest_ledger": 2626,
133
- "network_passphrase": "Test SDF Network ; September 2015",
134
- "current_protocol_version": 10,
135
- "core_supported_protocol_version": 10
136
- }
137
- http_version:
138
- recorded_at: Wed, 27 Feb 2019 13:37:44 GMT
139
- - request:
140
- method: get
141
- uri: https://horizon-testnet.stellar.org/accounts/GCVV6PPVRMBSNMC3CXLYVF5IR3M4EWZJMPHMB6H6GGLJKZQUQXHHWLH7
142
- body:
143
- encoding: US-ASCII
144
- string: ''
145
- headers:
146
- User-Agent:
147
- - Faraday v0.15.4
148
- Accept:
149
- - application/hal+json,application/problem+json,application/json
150
- response:
151
- status:
152
- code: 200
153
- message: OK
154
- headers:
155
- Cache-Control:
156
- - no-cache, no-store, max-age=0
157
- Content-Disposition:
158
- - inline
159
- Content-Type:
160
- - application/hal+json; charset=utf-8
161
- Date:
162
- - Wed, 27 Feb 2019 13:37:45 GMT
163
- Vary:
164
- - Origin
165
- X-Ratelimit-Limit:
166
- - '101'
167
- X-Ratelimit-Remaining:
168
- - '100'
169
- X-Ratelimit-Reset:
170
- - '1'
171
- Content-Length:
172
- - '2295'
173
- Connection:
174
- - keep-alive
175
- body:
176
- encoding: ASCII-8BIT
177
- string: |-
178
- {
179
- "_links": {
180
- "self": {
181
- "href": "https://horizon-testnet.stellar.org/accounts/GCVV6PPVRMBSNMC3CXLYVF5IR3M4EWZJMPHMB6H6GGLJKZQUQXHHWLH7"
182
- },
183
- "transactions": {
184
- "href": "https://horizon-testnet.stellar.org/accounts/GCVV6PPVRMBSNMC3CXLYVF5IR3M4EWZJMPHMB6H6GGLJKZQUQXHHWLH7/transactions{?cursor,limit,order}",
185
- "templated": true
186
- },
187
- "operations": {
188
- "href": "https://horizon-testnet.stellar.org/accounts/GCVV6PPVRMBSNMC3CXLYVF5IR3M4EWZJMPHMB6H6GGLJKZQUQXHHWLH7/operations{?cursor,limit,order}",
189
- "templated": true
190
- },
191
- "payments": {
192
- "href": "https://horizon-testnet.stellar.org/accounts/GCVV6PPVRMBSNMC3CXLYVF5IR3M4EWZJMPHMB6H6GGLJKZQUQXHHWLH7/payments{?cursor,limit,order}",
193
- "templated": true
194
- },
195
- "effects": {
196
- "href": "https://horizon-testnet.stellar.org/accounts/GCVV6PPVRMBSNMC3CXLYVF5IR3M4EWZJMPHMB6H6GGLJKZQUQXHHWLH7/effects{?cursor,limit,order}",
197
- "templated": true
198
- },
199
- "offers": {
200
- "href": "https://horizon-testnet.stellar.org/accounts/GCVV6PPVRMBSNMC3CXLYVF5IR3M4EWZJMPHMB6H6GGLJKZQUQXHHWLH7/offers{?cursor,limit,order}",
201
- "templated": true
202
- },
203
- "trades": {
204
- "href": "https://horizon-testnet.stellar.org/accounts/GCVV6PPVRMBSNMC3CXLYVF5IR3M4EWZJMPHMB6H6GGLJKZQUQXHHWLH7/trades{?cursor,limit,order}",
205
- "templated": true
206
- },
207
- "data": {
208
- "href": "https://horizon-testnet.stellar.org/accounts/GCVV6PPVRMBSNMC3CXLYVF5IR3M4EWZJMPHMB6H6GGLJKZQUQXHHWLH7/data/{key}",
209
- "templated": true
210
- }
211
- },
212
- "id": "GCVV6PPVRMBSNMC3CXLYVF5IR3M4EWZJMPHMB6H6GGLJKZQUQXHHWLH7",
213
- "paging_token": "",
214
- "account_id": "GCVV6PPVRMBSNMC3CXLYVF5IR3M4EWZJMPHMB6H6GGLJKZQUQXHHWLH7",
215
- "sequence": "11278584119296",
216
- "subentry_count": 0,
217
- "thresholds": {
218
- "low_threshold": 0,
219
- "med_threshold": 0,
220
- "high_threshold": 0
221
- },
222
- "flags": {
223
- "auth_required": false,
224
- "auth_revocable": false,
225
- "auth_immutable": false
226
- },
227
- "balances": [
228
- {
229
- "balance": "10000.0000000",
230
- "buying_liabilities": "0.0000000",
231
- "selling_liabilities": "0.0000000",
232
- "asset_type": "native"
233
- }
234
- ],
235
- "signers": [
236
- {
237
- "weight": 1,
238
- "key": "GCVV6PPVRMBSNMC3CXLYVF5IR3M4EWZJMPHMB6H6GGLJKZQUQXHHWLH7",
239
- "type": "ed25519_public_key"
240
- }
241
- ],
242
- "data": {}
243
- }
244
- http_version:
245
- recorded_at: Wed, 27 Feb 2019 13:37:45 GMT
246
- recorded_with: VCR 3.0.3