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,747 +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.15.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
- Date:
20
- - Sun, 02 Sep 2018 04:18:17 GMT
21
- Content-Type:
22
- - application/hal+json; charset=utf-8
23
- Connection:
24
- - keep-alive
25
- Set-Cookie:
26
- - __cfduid=ddfde99e5e60e91cfde9f0caea2d705391535861897; expires=Mon, 02-Sep-19
27
- 04:18:17 GMT; path=/; domain=.stellar.org; HttpOnly
28
- Cache-Control:
29
- - no-cache, no-store, max-age=0
30
- Content-Disposition:
31
- - inline
32
- Vary:
33
- - Origin
34
- X-Ratelimit-Limit:
35
- - '17200'
36
- X-Ratelimit-Remaining:
37
- - '17164'
38
- X-Ratelimit-Reset:
39
- - '2077'
40
- Expect-Ct:
41
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
42
- Server:
43
- - cloudflare
44
- Cf-Ray:
45
- - 453d2bfb2eda780e-LAX
46
- body:
47
- encoding: ASCII-8BIT
48
- string: |-
49
- {
50
- "_links": {
51
- "account": {
52
- "href": "https://horizon-testnet.stellar.org/accounts/{account_id}",
53
- "templated": true
54
- },
55
- "account_transactions": {
56
- "href": "https://horizon-testnet.stellar.org/accounts/{account_id}/transactions{?cursor,limit,order}",
57
- "templated": true
58
- },
59
- "assets": {
60
- "href": "https://horizon-testnet.stellar.org/assets{?asset_code,asset_issuer,cursor,limit,order}",
61
- "templated": true
62
- },
63
- "friendbot": {
64
- "href": "https://horizon-testnet.stellar.org/friendbot{?addr}",
65
- "templated": true
66
- },
67
- "metrics": {
68
- "href": "https://horizon-testnet.stellar.org/metrics"
69
- },
70
- "order_book": {
71
- "href": "https://horizon-testnet.stellar.org/order_book{?selling_asset_type,selling_asset_code,selling_issuer,buying_asset_type,buying_asset_code,buying_issuer,limit}",
72
- "templated": true
73
- },
74
- "self": {
75
- "href": "https://horizon-testnet.stellar.org/"
76
- },
77
- "transaction": {
78
- "href": "https://horizon-testnet.stellar.org/transactions/{hash}",
79
- "templated": true
80
- },
81
- "transactions": {
82
- "href": "https://horizon-testnet.stellar.org/transactions{?cursor,limit,order}",
83
- "templated": true
84
- }
85
- },
86
- "horizon_version": "0.14.0rc3-5bbd27814a3ffca9aeffcbd75a09a6164959776a",
87
- "core_version": "stellar-core 10.0.0rc1 (cb61d6b09b0088989c6c3a23d55d97ef5ce1001d)",
88
- "history_latest_ledger": 10842192,
89
- "history_elder_ledger": 1,
90
- "core_latest_ledger": 10842192,
91
- "network_passphrase": "Test SDF Network ; September 2015",
92
- "protocol_version": 10
93
- }
94
- http_version:
95
- recorded_at: Sun, 02 Sep 2018 04:18:17 GMT
96
- - request:
97
- method: get
98
- uri: https://horizon-testnet.stellar.org/accounts/[source_address]
99
- body:
100
- encoding: US-ASCII
101
- string: ''
102
- headers:
103
- User-Agent:
104
- - Faraday v0.15.2
105
- Accept:
106
- - application/hal+json,application/problem+json,application/json
107
- response:
108
- status:
109
- code: 200
110
- message: OK
111
- headers:
112
- Date:
113
- - Sun, 02 Sep 2018 04:18:18 GMT
114
- Content-Type:
115
- - application/hal+json; charset=utf-8
116
- Connection:
117
- - keep-alive
118
- Set-Cookie:
119
- - __cfduid=dc75fd6357a83dd1f3ba494749c708d251535861898; expires=Mon, 02-Sep-19
120
- 04:18:18 GMT; path=/; domain=.stellar.org; HttpOnly
121
- Cache-Control:
122
- - no-cache, no-store, max-age=0
123
- Content-Disposition:
124
- - inline
125
- Vary:
126
- - Origin
127
- X-Ratelimit-Limit:
128
- - '17200'
129
- X-Ratelimit-Remaining:
130
- - '17163'
131
- X-Ratelimit-Reset:
132
- - '2076'
133
- Expect-Ct:
134
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
135
- Server:
136
- - cloudflare
137
- Cf-Ray:
138
- - 453d2c031f9077ae-LAX
139
- body:
140
- encoding: ASCII-8BIT
141
- string: |-
142
- {
143
- "_links": {
144
- "self": {
145
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
146
- },
147
- "transactions": {
148
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/transactions{?cursor,limit,order}",
149
- "templated": true
150
- },
151
- "operations": {
152
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/operations{?cursor,limit,order}",
153
- "templated": true
154
- },
155
- "payments": {
156
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/payments{?cursor,limit,order}",
157
- "templated": true
158
- },
159
- "effects": {
160
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/effects{?cursor,limit,order}",
161
- "templated": true
162
- },
163
- "offers": {
164
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/offers{?cursor,limit,order}",
165
- "templated": true
166
- },
167
- "trades": {
168
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/trades{?cursor,limit,order}",
169
- "templated": true
170
- },
171
- "data": {
172
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/data/{key}",
173
- "templated": true
174
- }
175
- },
176
- "id": "[source_address]",
177
- "paging_token": "",
178
- "account_id": "[source_address]",
179
- "sequence": "38688184934072386",
180
- "subentry_count": 0,
181
- "thresholds": {
182
- "low_threshold": 0,
183
- "med_threshold": 0,
184
- "high_threshold": 0
185
- },
186
- "flags": {
187
- "auth_required": false,
188
- "auth_revocable": false
189
- },
190
- "balances": [
191
- {
192
- "balance": "8381.9993400",
193
- "buying_liabilities": "0.0000000",
194
- "selling_liabilities": "0.0000000",
195
- "asset_type": "native"
196
- }
197
- ],
198
- "signers": [
199
- {
200
- "public_key": "[source_address]",
201
- "weight": 1,
202
- "key": "[source_address]",
203
- "type": "ed25519_public_key"
204
- }
205
- ],
206
- "data": {}
207
- }
208
- http_version:
209
- recorded_at: Sun, 02 Sep 2018 04:18:19 GMT
210
- - request:
211
- method: post
212
- uri: https://horizon-testnet.stellar.org/transactions
213
- body:
214
- encoding: UTF-8
215
- string: tx=AAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAZACJcrMAAABDAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAALCBUk%2FMGO7inYyzUiMMIWPvJwCdPFn9A6EZqVMOhLYgAAAAAATEtAAAAAAAAAAABMluxGQAAAED4ILbajzRdFDo0I6P5PeFpRc5H1DvGV%2BQB32ycDXvDr6j%2FJEptkqOi5ms7wJklQ8R%2Bebr%2FFVOZ2Qj6xMko6moG
216
- headers:
217
- User-Agent:
218
- - Faraday v0.15.2
219
- Accept:
220
- - application/hal+json,application/problem+json,application/json
221
- Content-Type:
222
- - application/x-www-form-urlencoded
223
- response:
224
- status:
225
- code: 200
226
- message: OK
227
- headers:
228
- Date:
229
- - Sun, 02 Sep 2018 04:18:25 GMT
230
- Content-Type:
231
- - application/hal+json; charset=utf-8
232
- Connection:
233
- - keep-alive
234
- Set-Cookie:
235
- - __cfduid=db8cfafc55ca0794775c74a1d8fb115091535861900; expires=Mon, 02-Sep-19
236
- 04:18:20 GMT; path=/; domain=.stellar.org; HttpOnly
237
- Cache-Control:
238
- - no-cache, no-store, max-age=0
239
- Content-Disposition:
240
- - inline
241
- Vary:
242
- - Origin
243
- X-Ratelimit-Limit:
244
- - '17200'
245
- X-Ratelimit-Remaining:
246
- - '17173'
247
- X-Ratelimit-Reset:
248
- - '2075'
249
- Expect-Ct:
250
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
251
- Server:
252
- - cloudflare
253
- Cf-Ray:
254
- - 453d2c0bc8067912-LAX
255
- body:
256
- encoding: ASCII-8BIT
257
- string: |-
258
- {
259
- "_links": {
260
- "transaction": {
261
- "href": "https://horizon-testnet.stellar.org/transactions/01327a963dbcf5daf76c607fd17371e2e9b22a0a947bba9ab4f116cda142348d"
262
- }
263
- },
264
- "hash": "01327a963dbcf5daf76c607fd17371e2e9b22a0a947bba9ab4f116cda142348d",
265
- "ledger": 10842194,
266
- "envelope_xdr": "AAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAZACJcrMAAABDAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAALCBUk/MGO7inYyzUiMMIWPvJwCdPFn9A6EZqVMOhLYgAAAAAATEtAAAAAAAAAAABMluxGQAAAED4ILbajzRdFDo0I6P5PeFpRc5H1DvGV+QB32ycDXvDr6j/JEptkqOi5ms7wJklQ8R+ebr/FVOZ2Qj6xMko6moG",
267
- "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA=",
268
- "result_meta_xdr": "AAAAAQAAAAIAAAADAKVwUgAAAAAAAAAAwGrMKrOs5IP3jsNF1RUrADc8EjqQkj2+RT1DDTJbsRkAAAAThA+Y1ACJcrMAAABCAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAKVwUgAAAAAAAAAAwGrMKrOs5IP3jsNF1RUrADc8EjqQkj2+RT1DDTJbsRkAAAAThA+Y1ACJcrMAAABDAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAApXBSAAAAAAAAAAAsIFST8wY7uKdjLNSIwwhY+8nAJ08Wf0DoRmpUw6EtiAAAAAABMS0AAKVwUgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAMApXBSAAAAAAAAAADAaswqs6zkg/eOw0XVFSsANzwSOpCSPb5FPUMNMluxGQAAABOED5jUAIlyswAAAEMAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEApXBSAAAAAAAAAADAaswqs6zkg/eOw0XVFSsANzwSOpCSPb5FPUMNMluxGQAAABOC3mvUAIlyswAAAEMAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="
269
- }
270
- http_version:
271
- recorded_at: Sun, 02 Sep 2018 04:18:25 GMT
272
- - request:
273
- method: get
274
- uri: https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF
275
- body:
276
- encoding: US-ASCII
277
- string: ''
278
- headers:
279
- User-Agent:
280
- - Faraday v0.15.2
281
- Accept:
282
- - application/hal+json,application/problem+json,application/json
283
- response:
284
- status:
285
- code: 200
286
- message: OK
287
- headers:
288
- Date:
289
- - Sun, 02 Sep 2018 04:18:26 GMT
290
- Content-Type:
291
- - application/hal+json; charset=utf-8
292
- Connection:
293
- - keep-alive
294
- Set-Cookie:
295
- - __cfduid=d484b4db691587fb6e3b01b412c29b50d1535861906; expires=Mon, 02-Sep-19
296
- 04:18:26 GMT; path=/; domain=.stellar.org; HttpOnly
297
- Cache-Control:
298
- - no-cache, no-store, max-age=0
299
- Content-Disposition:
300
- - inline
301
- Vary:
302
- - Origin
303
- X-Ratelimit-Limit:
304
- - '17200'
305
- X-Ratelimit-Remaining:
306
- - '17162'
307
- X-Ratelimit-Reset:
308
- - '2067'
309
- Expect-Ct:
310
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
311
- Server:
312
- - cloudflare
313
- Cf-Ray:
314
- - 453d2c34196b7c28-LAX
315
- body:
316
- encoding: ASCII-8BIT
317
- string: |-
318
- {
319
- "_links": {
320
- "self": {
321
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF"
322
- },
323
- "transactions": {
324
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF/transactions{?cursor,limit,order}",
325
- "templated": true
326
- },
327
- "operations": {
328
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF/operations{?cursor,limit,order}",
329
- "templated": true
330
- },
331
- "payments": {
332
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF/payments{?cursor,limit,order}",
333
- "templated": true
334
- },
335
- "effects": {
336
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF/effects{?cursor,limit,order}",
337
- "templated": true
338
- },
339
- "offers": {
340
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF/offers{?cursor,limit,order}",
341
- "templated": true
342
- },
343
- "trades": {
344
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF/trades{?cursor,limit,order}",
345
- "templated": true
346
- },
347
- "data": {
348
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF/data/{key}",
349
- "templated": true
350
- }
351
- },
352
- "id": "GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF",
353
- "paging_token": "",
354
- "account_id": "GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF",
355
- "sequence": "46566868646887424",
356
- "subentry_count": 0,
357
- "thresholds": {
358
- "low_threshold": 0,
359
- "med_threshold": 0,
360
- "high_threshold": 0
361
- },
362
- "flags": {
363
- "auth_required": false,
364
- "auth_revocable": false
365
- },
366
- "balances": [
367
- {
368
- "balance": "2.0000000",
369
- "buying_liabilities": "0.0000000",
370
- "selling_liabilities": "0.0000000",
371
- "asset_type": "native"
372
- }
373
- ],
374
- "signers": [
375
- {
376
- "public_key": "GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF",
377
- "weight": 1,
378
- "key": "GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF",
379
- "type": "ed25519_public_key"
380
- }
381
- ],
382
- "data": {}
383
- }
384
- http_version:
385
- recorded_at: Sun, 02 Sep 2018 04:18:27 GMT
386
- - request:
387
- method: post
388
- uri: https://horizon-testnet.stellar.org/transactions
389
- body:
390
- encoding: UTF-8
391
- string: tx=AAAAACwgVJPzBju4p2Ms1IjDCFj7ycAnTxZ%2FQOhGalTDoS2IAAAAZAClcFIAAAABAAAAAAAAAAAAAAABAAAAAAAAAAYAAAABQlRDAAAAAADAaswqs6zkg%2FeOw0XVFSsANzwSOpCSPb5FPUMNMluxGX%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FAAAAAAAAAAHDoS2IAAAAQM0Vm0LLHL0nfFI4D7YubIYLi1vRbYjiQYlK9n39XGlCaMSb5%2B0SLw%2FLMTrbiTDyz2I3XclTxz6P6K4ty02oYwg%3D
392
- headers:
393
- User-Agent:
394
- - Faraday v0.15.2
395
- Accept:
396
- - application/hal+json,application/problem+json,application/json
397
- Content-Type:
398
- - application/x-www-form-urlencoded
399
- response:
400
- status:
401
- code: 200
402
- message: OK
403
- headers:
404
- Date:
405
- - Sun, 02 Sep 2018 04:18:30 GMT
406
- Content-Type:
407
- - application/hal+json; charset=utf-8
408
- Connection:
409
- - keep-alive
410
- Set-Cookie:
411
- - __cfduid=d2f4317da549c0644a648dba76337b0291535861907; expires=Mon, 02-Sep-19
412
- 04:18:27 GMT; path=/; domain=.stellar.org; HttpOnly
413
- Cache-Control:
414
- - no-cache, no-store, max-age=0
415
- Content-Disposition:
416
- - inline
417
- Vary:
418
- - Origin
419
- X-Ratelimit-Limit:
420
- - '17200'
421
- X-Ratelimit-Remaining:
422
- - '17172'
423
- X-Ratelimit-Reset:
424
- - '2067'
425
- Expect-Ct:
426
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
427
- Server:
428
- - cloudflare
429
- Cf-Ray:
430
- - 453d2c3bcf777c2e-LAX
431
- body:
432
- encoding: ASCII-8BIT
433
- string: |-
434
- {
435
- "_links": {
436
- "transaction": {
437
- "href": "https://horizon-testnet.stellar.org/transactions/37dd21b5fb5a3143591b1015de418b96f056aa02b52578cc85e8b6cb9252d728"
438
- }
439
- },
440
- "hash": "37dd21b5fb5a3143591b1015de418b96f056aa02b52578cc85e8b6cb9252d728",
441
- "ledger": 10842195,
442
- "envelope_xdr": "AAAAACwgVJPzBju4p2Ms1IjDCFj7ycAnTxZ/QOhGalTDoS2IAAAAZAClcFIAAAABAAAAAAAAAAAAAAABAAAAAAAAAAYAAAABQlRDAAAAAADAaswqs6zkg/eOw0XVFSsANzwSOpCSPb5FPUMNMluxGX//////////AAAAAAAAAAHDoS2IAAAAQM0Vm0LLHL0nfFI4D7YubIYLi1vRbYjiQYlK9n39XGlCaMSb5+0SLw/LMTrbiTDyz2I3XclTxz6P6K4ty02oYwg=",
443
- "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAGAAAAAAAAAAA=",
444
- "result_meta_xdr": "AAAAAQAAAAIAAAADAKVwUwAAAAAAAAAALCBUk/MGO7inYyzUiMMIWPvJwCdPFn9A6EZqVMOhLYgAAAAAATEsnAClcFIAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAKVwUwAAAAAAAAAALCBUk/MGO7inYyzUiMMIWPvJwCdPFn9A6EZqVMOhLYgAAAAAATEsnAClcFIAAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAApXBTAAAAAQAAAAAsIFST8wY7uKdjLNSIwwhY+8nAJ08Wf0DoRmpUw6EtiAAAAAFCVEMAAAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAAAAAAAB//////////wAAAAEAAAAAAAAAAAAAAAMApXBTAAAAAAAAAAAsIFST8wY7uKdjLNSIwwhY+8nAJ08Wf0DoRmpUw6EtiAAAAAABMSycAKVwUgAAAAEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEApXBTAAAAAAAAAAAsIFST8wY7uKdjLNSIwwhY+8nAJ08Wf0DoRmpUw6EtiAAAAAABMSycAKVwUgAAAAEAAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="
445
- }
446
- http_version:
447
- recorded_at: Sun, 02 Sep 2018 04:18:30 GMT
448
- - request:
449
- method: get
450
- uri: https://horizon-testnet.stellar.org/accounts/[source_address]
451
- body:
452
- encoding: US-ASCII
453
- string: ''
454
- headers:
455
- User-Agent:
456
- - Faraday v0.15.2
457
- Accept:
458
- - application/hal+json,application/problem+json,application/json
459
- response:
460
- status:
461
- code: 200
462
- message: OK
463
- headers:
464
- Date:
465
- - Sun, 02 Sep 2018 04:18:31 GMT
466
- Content-Type:
467
- - application/hal+json; charset=utf-8
468
- Connection:
469
- - keep-alive
470
- Set-Cookie:
471
- - __cfduid=d4ac2396afd0bba177238c40c17b9e16f1535861911; expires=Mon, 02-Sep-19
472
- 04:18:31 GMT; path=/; domain=.stellar.org; HttpOnly
473
- Cache-Control:
474
- - no-cache, no-store, max-age=0
475
- Content-Disposition:
476
- - inline
477
- Vary:
478
- - Origin
479
- X-Ratelimit-Limit:
480
- - '17200'
481
- X-Ratelimit-Remaining:
482
- - '17161'
483
- X-Ratelimit-Reset:
484
- - '2063'
485
- Expect-Ct:
486
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
487
- Server:
488
- - cloudflare
489
- Cf-Ray:
490
- - 453d2c51ae3f780e-LAX
491
- body:
492
- encoding: ASCII-8BIT
493
- string: |-
494
- {
495
- "_links": {
496
- "self": {
497
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
498
- },
499
- "transactions": {
500
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/transactions{?cursor,limit,order}",
501
- "templated": true
502
- },
503
- "operations": {
504
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/operations{?cursor,limit,order}",
505
- "templated": true
506
- },
507
- "payments": {
508
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/payments{?cursor,limit,order}",
509
- "templated": true
510
- },
511
- "effects": {
512
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/effects{?cursor,limit,order}",
513
- "templated": true
514
- },
515
- "offers": {
516
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/offers{?cursor,limit,order}",
517
- "templated": true
518
- },
519
- "trades": {
520
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/trades{?cursor,limit,order}",
521
- "templated": true
522
- },
523
- "data": {
524
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/data/{key}",
525
- "templated": true
526
- }
527
- },
528
- "id": "[source_address]",
529
- "paging_token": "",
530
- "account_id": "[source_address]",
531
- "sequence": "38688184934072387",
532
- "subentry_count": 0,
533
- "thresholds": {
534
- "low_threshold": 0,
535
- "med_threshold": 0,
536
- "high_threshold": 0
537
- },
538
- "flags": {
539
- "auth_required": false,
540
- "auth_revocable": false
541
- },
542
- "balances": [
543
- {
544
- "balance": "8379.9993300",
545
- "buying_liabilities": "0.0000000",
546
- "selling_liabilities": "0.0000000",
547
- "asset_type": "native"
548
- }
549
- ],
550
- "signers": [
551
- {
552
- "public_key": "[source_address]",
553
- "weight": 1,
554
- "key": "[source_address]",
555
- "type": "ed25519_public_key"
556
- }
557
- ],
558
- "data": {}
559
- }
560
- http_version:
561
- recorded_at: Sun, 02 Sep 2018 04:18:31 GMT
562
- - request:
563
- method: post
564
- uri: https://horizon-testnet.stellar.org/transactions
565
- body:
566
- encoding: UTF-8
567
- string: tx=AAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAZACJcrMAAABEAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAALCBUk%2FMGO7inYyzUiMMIWPvJwCdPFn9A6EZqVMOhLYgAAAABQlRDAAAAAADAaswqs6zkg%2FeOw0XVFSsANzwSOpCSPb5FPUMNMluxGQAAAABZaC8AAAAAAAAAAAEyW7EZAAAAQAZyQbNUyzP6PTKVhTt3QPhZ6TqLlDhY7no4dUdI1AXB56lxG%2BLpV4UYpy8Yen9LupDeUjbuALWbyoK0UTzMfwY%3D
568
- headers:
569
- User-Agent:
570
- - Faraday v0.15.2
571
- Accept:
572
- - application/hal+json,application/problem+json,application/json
573
- Content-Type:
574
- - application/x-www-form-urlencoded
575
- response:
576
- status:
577
- code: 200
578
- message: OK
579
- headers:
580
- Date:
581
- - Sun, 02 Sep 2018 04:18:35 GMT
582
- Content-Type:
583
- - application/hal+json; charset=utf-8
584
- Connection:
585
- - keep-alive
586
- Set-Cookie:
587
- - __cfduid=df11133ecf1a102a3efdd7dd8c8d8da841535861912; expires=Mon, 02-Sep-19
588
- 04:18:32 GMT; path=/; domain=.stellar.org; HttpOnly
589
- Cache-Control:
590
- - no-cache, no-store, max-age=0
591
- Content-Disposition:
592
- - inline
593
- Vary:
594
- - Origin
595
- X-Ratelimit-Limit:
596
- - '17200'
597
- X-Ratelimit-Remaining:
598
- - '17171'
599
- X-Ratelimit-Reset:
600
- - '2063'
601
- Expect-Ct:
602
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
603
- Server:
604
- - cloudflare
605
- Cf-Ray:
606
- - 453d2c56ad6178c2-LAX
607
- body:
608
- encoding: ASCII-8BIT
609
- string: |-
610
- {
611
- "_links": {
612
- "transaction": {
613
- "href": "https://horizon-testnet.stellar.org/transactions/38462ab45311a31cf92060c218d668c69ce28957d5e3024fd6c70ced207397c0"
614
- }
615
- },
616
- "hash": "38462ab45311a31cf92060c218d668c69ce28957d5e3024fd6c70ced207397c0",
617
- "ledger": 10842196,
618
- "envelope_xdr": "AAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAZACJcrMAAABEAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAALCBUk/MGO7inYyzUiMMIWPvJwCdPFn9A6EZqVMOhLYgAAAABQlRDAAAAAADAaswqs6zkg/eOw0XVFSsANzwSOpCSPb5FPUMNMluxGQAAAABZaC8AAAAAAAAAAAEyW7EZAAAAQAZyQbNUyzP6PTKVhTt3QPhZ6TqLlDhY7no4dUdI1AXB56lxG+LpV4UYpy8Yen9LupDeUjbuALWbyoK0UTzMfwY=",
619
- "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
620
- "result_meta_xdr": "AAAAAQAAAAIAAAADAKVwVAAAAAAAAAAAwGrMKrOs5IP3jsNF1RUrADc8EjqQkj2+RT1DDTJbsRkAAAATgt5rcACJcrMAAABDAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAKVwVAAAAAAAAAAAwGrMKrOs5IP3jsNF1RUrADc8EjqQkj2+RT1DDTJbsRkAAAATgt5rcACJcrMAAABEAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAgAAAAMApXBTAAAAAQAAAAAsIFST8wY7uKdjLNSIwwhY+8nAJ08Wf0DoRmpUw6EtiAAAAAFCVEMAAAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAAAAAAAB//////////wAAAAEAAAAAAAAAAAAAAAEApXBUAAAAAQAAAAAsIFST8wY7uKdjLNSIwwhY+8nAJ08Wf0DoRmpUw6EtiAAAAAFCVEMAAAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAAFloLwB//////////wAAAAEAAAAAAAAAAA=="
621
- }
622
- http_version:
623
- recorded_at: Sun, 02 Sep 2018 04:18:35 GMT
624
- - request:
625
- method: get
626
- uri: https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF
627
- body:
628
- encoding: US-ASCII
629
- string: ''
630
- headers:
631
- User-Agent:
632
- - Faraday v0.15.2
633
- Accept:
634
- - application/hal+json,application/problem+json,application/json
635
- response:
636
- status:
637
- code: 200
638
- message: OK
639
- headers:
640
- Date:
641
- - Sun, 02 Sep 2018 04:18:36 GMT
642
- Content-Type:
643
- - application/hal+json; charset=utf-8
644
- Connection:
645
- - keep-alive
646
- Set-Cookie:
647
- - __cfduid=dfc3b747531fa00fd22e85ddd4e0b08761535861916; expires=Mon, 02-Sep-19
648
- 04:18:36 GMT; path=/; domain=.stellar.org; HttpOnly
649
- Cache-Control:
650
- - no-cache, no-store, max-age=0
651
- Content-Disposition:
652
- - inline
653
- Vary:
654
- - Origin
655
- X-Ratelimit-Limit:
656
- - '17200'
657
- X-Ratelimit-Remaining:
658
- - '17160'
659
- X-Ratelimit-Reset:
660
- - '2058'
661
- Expect-Ct:
662
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
663
- Server:
664
- - cloudflare
665
- Cf-Ray:
666
- - 453d2c718d5d7912-LAX
667
- body:
668
- encoding: ASCII-8BIT
669
- string: |-
670
- {
671
- "_links": {
672
- "self": {
673
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF"
674
- },
675
- "transactions": {
676
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF/transactions{?cursor,limit,order}",
677
- "templated": true
678
- },
679
- "operations": {
680
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF/operations{?cursor,limit,order}",
681
- "templated": true
682
- },
683
- "payments": {
684
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF/payments{?cursor,limit,order}",
685
- "templated": true
686
- },
687
- "effects": {
688
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF/effects{?cursor,limit,order}",
689
- "templated": true
690
- },
691
- "offers": {
692
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF/offers{?cursor,limit,order}",
693
- "templated": true
694
- },
695
- "trades": {
696
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF/trades{?cursor,limit,order}",
697
- "templated": true
698
- },
699
- "data": {
700
- "href": "https://horizon-testnet.stellar.org/accounts/GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF/data/{key}",
701
- "templated": true
702
- }
703
- },
704
- "id": "GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF",
705
- "paging_token": "",
706
- "account_id": "GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF",
707
- "sequence": "46566868646887425",
708
- "subentry_count": 1,
709
- "thresholds": {
710
- "low_threshold": 0,
711
- "med_threshold": 0,
712
- "high_threshold": 0
713
- },
714
- "flags": {
715
- "auth_required": false,
716
- "auth_revocable": false
717
- },
718
- "balances": [
719
- {
720
- "balance": "150.0000000",
721
- "limit": "922337203685.4775807",
722
- "buying_liabilities": "0.0000000",
723
- "selling_liabilities": "0.0000000",
724
- "asset_type": "credit_alphanum4",
725
- "asset_code": "BTC",
726
- "asset_issuer": "[source_address]"
727
- },
728
- {
729
- "balance": "1.9999900",
730
- "buying_liabilities": "0.0000000",
731
- "selling_liabilities": "0.0000000",
732
- "asset_type": "native"
733
- }
734
- ],
735
- "signers": [
736
- {
737
- "public_key": "GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF",
738
- "weight": 1,
739
- "key": "GAWCAVET6MDDXOFHMMWNJCGDBBMPXSOAE5HRM72A5BDGUVGDUEWYR6NF",
740
- "type": "ed25519_public_key"
741
- }
742
- ],
743
- "data": {}
744
- }
745
- http_version:
746
- recorded_at: Sun, 02 Sep 2018 04:18:36 GMT
747
- recorded_with: VCR 4.0.0