stellar-sdk 0.4.0 → 0.9.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -2
  3. data/{LICENSE.txt → LICENSE} +0 -0
  4. data/README.md +17 -11
  5. data/lib/stellar-sdk.rb +3 -4
  6. data/lib/stellar/account.rb +16 -18
  7. data/lib/stellar/amount.rb +9 -13
  8. data/lib/stellar/client.rb +255 -74
  9. data/lib/stellar/horizon/problem.rb +14 -16
  10. data/lib/stellar/sep10.rb +347 -0
  11. data/lib/stellar/transaction_page.rb +4 -6
  12. data/lib/stellar/version.rb +1 -1
  13. metadata +17 -203
  14. data/.gitignore +0 -16
  15. data/.travis.yml +0 -13
  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 -12
  25. data/examples/05_fiat_payment.rb +0 -13
  26. data/examples/06_fund_testnet_friendbot.rb +0 -15
  27. data/ruby-stellar-sdk.gemspec +0 -36
  28. data/spec/config.yml.sample +0 -10
  29. data/spec/fixtures/vcr_cassettes/Stellar_Account/_lookup/should_handle_404_request_when_performing_federation_lookup.yml +0 -133
  30. data/spec/fixtures/vcr_cassettes/Stellar_Account/_lookup/should_handle_domains_that_are_not_federation_servers.yml +0 -44
  31. data/spec/fixtures/vcr_cassettes/Stellar_Account/_lookup/should_peforms_federation_lookup.yml +0 -85
  32. data/spec/fixtures/vcr_cassettes/Stellar_Client/_account_info/returns_the_current_details_for_the_account.yml +0 -190
  33. data/spec/fixtures/vcr_cassettes/Stellar_Client/_create_account/creates_the_account.yml +0 -323
  34. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/alphanum12_asset/sends_a_alphanum12_asset_to_the_destination.yml +0 -448
  35. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/alphanum4_asset/sends_a_alphanum4_asset_to_the_destination.yml +0 -448
  36. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/native_asset/sends_a_native_payment_to_the_account.yml +0 -469
  37. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/account_transactions/accepts_a_cursor_to_return_less_data.yml +0 -94
  38. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/account_transactions/returns_a_list_of_transaction_for_an_account.yml +0 -94
  39. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/all_transactions/accepts_a_cursor_to_return_less_data.yml +0 -94
  40. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/all_transactions/returns_a_list_of_transactions.yml +0 -94
  41. data/spec/lib/stellar/account_spec.rb +0 -59
  42. data/spec/lib/stellar/amount_spec.rb +0 -70
  43. data/spec/lib/stellar/client_spec.rb +0 -173
  44. data/spec/spec_helper.rb +0 -14
  45. data/spec/support/config.rb +0 -3
  46. data/spec/support/vcr.rb +0 -10
  47. data/tasks/rspec.rake +0 -6
  48. data/tasks/travis.rake +0 -1
@@ -1,448 +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:29:42 GMT
23
- X-Ratelimit-Limit:
24
- - '72000'
25
- X-Ratelimit-Remaining:
26
- - '71932'
27
- X-Ratelimit-Reset:
28
- - '2103'
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": 124871,
72
- "history_elder_ledger": 1,
73
- "core_latest_ledger": 124872,
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:29:41 GMT
80
- - request:
81
- method: get
82
- uri: https://horizon-testnet.stellar.org/accounts/[destination_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:29:43 GMT
100
- X-Ratelimit-Limit:
101
- - '72000'
102
- X-Ratelimit-Remaining:
103
- - '71931'
104
- X-Ratelimit-Reset:
105
- - '2102'
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/[destination_address]"
115
- },
116
- "transactions": {
117
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/transactions{?cursor,limit,order}",
118
- "templated": true
119
- },
120
- "operations": {
121
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/operations{?cursor,limit,order}",
122
- "templated": true
123
- },
124
- "payments": {
125
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/payments{?cursor,limit,order}",
126
- "templated": true
127
- },
128
- "effects": {
129
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/effects{?cursor,limit,order}",
130
- "templated": true
131
- },
132
- "offers": {
133
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/offers{?cursor,limit,order}",
134
- "templated": true
135
- },
136
- "trades": {
137
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/trades{?cursor,limit,order}",
138
- "templated": true
139
- },
140
- "data": {
141
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/data/{key}",
142
- "templated": true
143
- }
144
- },
145
- "id": "[destination_address]",
146
- "paging_token": "",
147
- "account_id": "[destination_address]",
148
- "sequence": "534727723319299",
149
- "subentry_count": 2,
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": "0.0000000",
162
- "limit": "922337203685.4775807",
163
- "asset_type": "credit_alphanum12",
164
- "asset_code": "LONGNAME",
165
- "asset_issuer": "[source_address]"
166
- },
167
- {
168
- "balance": "450.0000000",
169
- "limit": "922337203685.4775807",
170
- "asset_type": "credit_alphanum4",
171
- "asset_code": "BTC",
172
- "asset_issuer": "[source_address]"
173
- },
174
- {
175
- "balance": "9999.9999700",
176
- "asset_type": "native"
177
- }
178
- ],
179
- "signers": [
180
- {
181
- "public_key": "[destination_address]",
182
- "weight": 1,
183
- "key": "[destination_address]",
184
- "type": "ed25519_public_key"
185
- }
186
- ],
187
- "data": {}
188
- }
189
- http_version:
190
- recorded_at: Sun, 26 Mar 2017 07:29:42 GMT
191
- - request:
192
- method: get
193
- uri: https://horizon-testnet.stellar.org/accounts/[source_address]
194
- body:
195
- encoding: US-ASCII
196
- string: ''
197
- headers:
198
- User-Agent:
199
- - Faraday v0.9.2
200
- Accept:
201
- - application/hal+json,application/problem+json,application/json
202
- response:
203
- status:
204
- code: 200
205
- message: OK
206
- headers:
207
- Content-Type:
208
- - application/hal+json; charset=utf-8
209
- Date:
210
- - Sun, 26 Mar 2017 07:29:45 GMT
211
- X-Ratelimit-Limit:
212
- - '72000'
213
- X-Ratelimit-Remaining:
214
- - '71930'
215
- X-Ratelimit-Reset:
216
- - '2100'
217
- Connection:
218
- - keep-alive
219
- body:
220
- encoding: UTF-8
221
- string: |-
222
- {
223
- "_links": {
224
- "self": {
225
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
226
- },
227
- "transactions": {
228
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/transactions{?cursor,limit,order}",
229
- "templated": true
230
- },
231
- "operations": {
232
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/operations{?cursor,limit,order}",
233
- "templated": true
234
- },
235
- "payments": {
236
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/payments{?cursor,limit,order}",
237
- "templated": true
238
- },
239
- "effects": {
240
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/effects{?cursor,limit,order}",
241
- "templated": true
242
- },
243
- "offers": {
244
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/offers{?cursor,limit,order}",
245
- "templated": true
246
- },
247
- "trades": {
248
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/trades{?cursor,limit,order}",
249
- "templated": true
250
- },
251
- "data": {
252
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/data/{key}",
253
- "templated": true
254
- }
255
- },
256
- "id": "[source_address]",
257
- "paging_token": "",
258
- "account_id": "[source_address]",
259
- "sequence": "346973227974697",
260
- "subentry_count": 0,
261
- "thresholds": {
262
- "low_threshold": 0,
263
- "med_threshold": 0,
264
- "high_threshold": 0
265
- },
266
- "flags": {
267
- "auth_required": false,
268
- "auth_revocable": false
269
- },
270
- "balances": [
271
- {
272
- "balance": "4399.9998400",
273
- "asset_type": "native"
274
- }
275
- ],
276
- "signers": [
277
- {
278
- "public_key": "[source_address]",
279
- "weight": 1,
280
- "key": "[source_address]",
281
- "type": "ed25519_public_key"
282
- }
283
- ],
284
- "data": {}
285
- }
286
- http_version:
287
- recorded_at: Sun, 26 Mar 2017 07:29:44 GMT
288
- - request:
289
- method: post
290
- uri: https://horizon-testnet.stellar.org/transactions
291
- body:
292
- encoding: UTF-8
293
- string: tx=AAAAAKEiSt7wL8zHIfwsJF5PvoI%2FqW7Epb2ihhiW7lxPpHJCAAAAZAABO5IAAAAqAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAA8RA%2BPteVWFSF0ebzR9MQD1xUygu9t%2BQcKZWQYBZAumAAAAACTE9OR05BTUUAAAAAAAAAAKEiSt7wL8zHIfwsJF5PvoI%2FqW7Epb2ihhiW7lxPpHJCAAAAAFloLwAAAAAAAAAAAU%2BkckIAAABAQx5DHEnThKdnt7he%2Fp%2B8TihB8dzmC95FCP73AyRugyf6OG5M5fRm%2BklDF5kAc786sTG1CwTyNN8Yv8qY9E3HDw%3D%3D
294
- headers:
295
- User-Agent:
296
- - Faraday v0.9.2
297
- Accept:
298
- - application/hal+json,application/problem+json,application/json
299
- Content-Type:
300
- - application/x-www-form-urlencoded
301
- response:
302
- status:
303
- code: 200
304
- message: OK
305
- headers:
306
- Content-Type:
307
- - application/hal+json; charset=utf-8
308
- Date:
309
- - Sun, 26 Mar 2017 07:29:51 GMT
310
- X-Ratelimit-Limit:
311
- - '72000'
312
- X-Ratelimit-Remaining:
313
- - '71929'
314
- X-Ratelimit-Reset:
315
- - '2099'
316
- Content-Length:
317
- - '1075'
318
- Connection:
319
- - keep-alive
320
- body:
321
- encoding: UTF-8
322
- string: |-
323
- {
324
- "_links": {
325
- "transaction": {
326
- "href": "https://horizon-testnet.stellar.org/transactions/39a1bf57589f1cc37e3303238b5d3ad7aade9d5996a6a0370ccdb336cb3fca0f"
327
- }
328
- },
329
- "hash": "39a1bf57589f1cc37e3303238b5d3ad7aade9d5996a6a0370ccdb336cb3fca0f",
330
- "ledger": 124875,
331
- "envelope_xdr": "AAAAAKEiSt7wL8zHIfwsJF5PvoI/qW7Epb2ihhiW7lxPpHJCAAAAZAABO5IAAAAqAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAA8RA+PteVWFSF0ebzR9MQD1xUygu9t+QcKZWQYBZAumAAAAACTE9OR05BTUUAAAAAAAAAAKEiSt7wL8zHIfwsJF5PvoI/qW7Epb2ihhiW7lxPpHJCAAAAAFloLwAAAAAAAAAAAU+kckIAAABAQx5DHEnThKdnt7he/p+8TihB8dzmC95FCP73AyRugyf6OG5M5fRm+klDF5kAc786sTG1CwTyNN8Yv8qY9E3HDw==",
332
- "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
333
- "result_meta_xdr": "AAAAAAAAAAEAAAACAAAAAwAB52oAAAABAAAAAPEQPj7XlVhUhdHm80fTEA9cVMoLvbfkHCmVkGAWQLpgAAAAAkxPTkdOQU1FAAAAAAAAAAChIkre8C/MxyH8LCReT76CP6luxKW9ooYYlu5cT6RyQgAAAAAAAAAAf/////////8AAAABAAAAAAAAAAAAAAABAAHnywAAAAEAAAAA8RA+PteVWFSF0ebzR9MQD1xUygu9t+QcKZWQYBZAumAAAAACTE9OR05BTUUAAAAAAAAAAKEiSt7wL8zHIfwsJF5PvoI/qW7Epb2ihhiW7lxPpHJCAAAAAFloLwB//////////wAAAAEAAAAAAAAAAA=="
334
- }
335
- http_version:
336
- recorded_at: Sun, 26 Mar 2017 07:29:50 GMT
337
- - request:
338
- method: get
339
- uri: https://horizon-testnet.stellar.org/accounts/[destination_address]
340
- body:
341
- encoding: US-ASCII
342
- string: ''
343
- headers:
344
- User-Agent:
345
- - Faraday v0.9.2
346
- Accept:
347
- - application/hal+json,application/problem+json,application/json
348
- response:
349
- status:
350
- code: 200
351
- message: OK
352
- headers:
353
- Content-Type:
354
- - application/hal+json; charset=utf-8
355
- Date:
356
- - Sun, 26 Mar 2017 07:29:52 GMT
357
- X-Ratelimit-Limit:
358
- - '72000'
359
- X-Ratelimit-Remaining:
360
- - '71928'
361
- X-Ratelimit-Reset:
362
- - '2093'
363
- Connection:
364
- - keep-alive
365
- body:
366
- encoding: UTF-8
367
- string: |-
368
- {
369
- "_links": {
370
- "self": {
371
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]"
372
- },
373
- "transactions": {
374
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/transactions{?cursor,limit,order}",
375
- "templated": true
376
- },
377
- "operations": {
378
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/operations{?cursor,limit,order}",
379
- "templated": true
380
- },
381
- "payments": {
382
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/payments{?cursor,limit,order}",
383
- "templated": true
384
- },
385
- "effects": {
386
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/effects{?cursor,limit,order}",
387
- "templated": true
388
- },
389
- "offers": {
390
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/offers{?cursor,limit,order}",
391
- "templated": true
392
- },
393
- "trades": {
394
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/trades{?cursor,limit,order}",
395
- "templated": true
396
- },
397
- "data": {
398
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/data/{key}",
399
- "templated": true
400
- }
401
- },
402
- "id": "[destination_address]",
403
- "paging_token": "",
404
- "account_id": "[destination_address]",
405
- "sequence": "534727723319299",
406
- "subentry_count": 2,
407
- "thresholds": {
408
- "low_threshold": 0,
409
- "med_threshold": 0,
410
- "high_threshold": 0
411
- },
412
- "flags": {
413
- "auth_required": false,
414
- "auth_revocable": false
415
- },
416
- "balances": [
417
- {
418
- "balance": "450.0000000",
419
- "limit": "922337203685.4775807",
420
- "asset_type": "credit_alphanum4",
421
- "asset_code": "BTC",
422
- "asset_issuer": "[source_address]"
423
- },
424
- {
425
- "balance": "150.0000000",
426
- "limit": "922337203685.4775807",
427
- "asset_type": "credit_alphanum12",
428
- "asset_code": "LONGNAME",
429
- "asset_issuer": "[source_address]"
430
- },
431
- {
432
- "balance": "9999.9999700",
433
- "asset_type": "native"
434
- }
435
- ],
436
- "signers": [
437
- {
438
- "public_key": "[destination_address]",
439
- "weight": 1,
440
- "key": "[destination_address]",
441
- "type": "ed25519_public_key"
442
- }
443
- ],
444
- "data": {}
445
- }
446
- http_version:
447
- recorded_at: Sun, 26 Mar 2017 07:29:51 GMT
448
- recorded_with: VCR 3.0.3
@@ -1,448 +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:29:04 GMT
23
- X-Ratelimit-Limit:
24
- - '72000'
25
- X-Ratelimit-Remaining:
26
- - '71940'
27
- X-Ratelimit-Reset:
28
- - '2141'
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": 124863,
72
- "history_elder_ledger": 1,
73
- "core_latest_ledger": 124863,
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:29:03 GMT
80
- - request:
81
- method: get
82
- uri: https://horizon-testnet.stellar.org/accounts/[destination_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:29:06 GMT
100
- X-Ratelimit-Limit:
101
- - '72000'
102
- X-Ratelimit-Remaining:
103
- - '71939'
104
- X-Ratelimit-Reset:
105
- - '2139'
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/[destination_address]"
115
- },
116
- "transactions": {
117
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/transactions{?cursor,limit,order}",
118
- "templated": true
119
- },
120
- "operations": {
121
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/operations{?cursor,limit,order}",
122
- "templated": true
123
- },
124
- "payments": {
125
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/payments{?cursor,limit,order}",
126
- "templated": true
127
- },
128
- "effects": {
129
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/effects{?cursor,limit,order}",
130
- "templated": true
131
- },
132
- "offers": {
133
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/offers{?cursor,limit,order}",
134
- "templated": true
135
- },
136
- "trades": {
137
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/trades{?cursor,limit,order}",
138
- "templated": true
139
- },
140
- "data": {
141
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/data/{key}",
142
- "templated": true
143
- }
144
- },
145
- "id": "[destination_address]",
146
- "paging_token": "",
147
- "account_id": "[destination_address]",
148
- "sequence": "534727723319299",
149
- "subentry_count": 2,
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": "0.0000000",
162
- "limit": "922337203685.4775807",
163
- "asset_type": "credit_alphanum12",
164
- "asset_code": "LONGNAME",
165
- "asset_issuer": "[source_address]"
166
- },
167
- {
168
- "balance": "300.0000000",
169
- "limit": "922337203685.4775807",
170
- "asset_type": "credit_alphanum4",
171
- "asset_code": "BTC",
172
- "asset_issuer": "[source_address]"
173
- },
174
- {
175
- "balance": "9999.9999700",
176
- "asset_type": "native"
177
- }
178
- ],
179
- "signers": [
180
- {
181
- "public_key": "[destination_address]",
182
- "weight": 1,
183
- "key": "[destination_address]",
184
- "type": "ed25519_public_key"
185
- }
186
- ],
187
- "data": {}
188
- }
189
- http_version:
190
- recorded_at: Sun, 26 Mar 2017 07:29:05 GMT
191
- - request:
192
- method: get
193
- uri: https://horizon-testnet.stellar.org/accounts/[source_address]
194
- body:
195
- encoding: US-ASCII
196
- string: ''
197
- headers:
198
- User-Agent:
199
- - Faraday v0.9.2
200
- Accept:
201
- - application/hal+json,application/problem+json,application/json
202
- response:
203
- status:
204
- code: 200
205
- message: OK
206
- headers:
207
- Content-Type:
208
- - application/hal+json; charset=utf-8
209
- Date:
210
- - Sun, 26 Mar 2017 07:29:07 GMT
211
- X-Ratelimit-Limit:
212
- - '72000'
213
- X-Ratelimit-Remaining:
214
- - '71938'
215
- X-Ratelimit-Reset:
216
- - '2138'
217
- Connection:
218
- - keep-alive
219
- body:
220
- encoding: UTF-8
221
- string: |-
222
- {
223
- "_links": {
224
- "self": {
225
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
226
- },
227
- "transactions": {
228
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/transactions{?cursor,limit,order}",
229
- "templated": true
230
- },
231
- "operations": {
232
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/operations{?cursor,limit,order}",
233
- "templated": true
234
- },
235
- "payments": {
236
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/payments{?cursor,limit,order}",
237
- "templated": true
238
- },
239
- "effects": {
240
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/effects{?cursor,limit,order}",
241
- "templated": true
242
- },
243
- "offers": {
244
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/offers{?cursor,limit,order}",
245
- "templated": true
246
- },
247
- "trades": {
248
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/trades{?cursor,limit,order}",
249
- "templated": true
250
- },
251
- "data": {
252
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/data/{key}",
253
- "templated": true
254
- }
255
- },
256
- "id": "[source_address]",
257
- "paging_token": "",
258
- "account_id": "[source_address]",
259
- "sequence": "346973227974696",
260
- "subentry_count": 0,
261
- "thresholds": {
262
- "low_threshold": 0,
263
- "med_threshold": 0,
264
- "high_threshold": 0
265
- },
266
- "flags": {
267
- "auth_required": false,
268
- "auth_revocable": false
269
- },
270
- "balances": [
271
- {
272
- "balance": "4399.9998500",
273
- "asset_type": "native"
274
- }
275
- ],
276
- "signers": [
277
- {
278
- "public_key": "[source_address]",
279
- "weight": 1,
280
- "key": "[source_address]",
281
- "type": "ed25519_public_key"
282
- }
283
- ],
284
- "data": {}
285
- }
286
- http_version:
287
- recorded_at: Sun, 26 Mar 2017 07:29:06 GMT
288
- - request:
289
- method: post
290
- uri: https://horizon-testnet.stellar.org/transactions
291
- body:
292
- encoding: UTF-8
293
- string: tx=AAAAAKEiSt7wL8zHIfwsJF5PvoI%2FqW7Epb2ihhiW7lxPpHJCAAAAZAABO5IAAAApAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAA8RA%2BPteVWFSF0ebzR9MQD1xUygu9t%2BQcKZWQYBZAumAAAAABQlRDAAAAAAChIkre8C%2FMxyH8LCReT76CP6luxKW9ooYYlu5cT6RyQgAAAABZaC8AAAAAAAAAAAFPpHJCAAAAQN59VbAYLZ5QTP%2FPgRKodGuAWDdIb5UKgI03ujYL%2FaS640wSVnxDWARvqYhcnc3epkBkV%2B%2Bgpfeq%2B%2B6uuNXD0AI%3D
294
- headers:
295
- User-Agent:
296
- - Faraday v0.9.2
297
- Accept:
298
- - application/hal+json,application/problem+json,application/json
299
- Content-Type:
300
- - application/x-www-form-urlencoded
301
- response:
302
- status:
303
- code: 200
304
- message: OK
305
- headers:
306
- Content-Type:
307
- - application/hal+json; charset=utf-8
308
- Date:
309
- - Sun, 26 Mar 2017 07:29:11 GMT
310
- X-Ratelimit-Limit:
311
- - '72000'
312
- X-Ratelimit-Remaining:
313
- - '71937'
314
- X-Ratelimit-Reset:
315
- - '2137'
316
- Content-Length:
317
- - '1039'
318
- Connection:
319
- - keep-alive
320
- body:
321
- encoding: UTF-8
322
- string: |-
323
- {
324
- "_links": {
325
- "transaction": {
326
- "href": "https://horizon-testnet.stellar.org/transactions/538e77af044e06bc1392c8b202165894c068e10d019f6d953ad9ad79689e4ce1"
327
- }
328
- },
329
- "hash": "538e77af044e06bc1392c8b202165894c068e10d019f6d953ad9ad79689e4ce1",
330
- "ledger": 124865,
331
- "envelope_xdr": "AAAAAKEiSt7wL8zHIfwsJF5PvoI/qW7Epb2ihhiW7lxPpHJCAAAAZAABO5IAAAApAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAA8RA+PteVWFSF0ebzR9MQD1xUygu9t+QcKZWQYBZAumAAAAABQlRDAAAAAAChIkre8C/MxyH8LCReT76CP6luxKW9ooYYlu5cT6RyQgAAAABZaC8AAAAAAAAAAAFPpHJCAAAAQN59VbAYLZ5QTP/PgRKodGuAWDdIb5UKgI03ujYL/aS640wSVnxDWARvqYhcnc3epkBkV++gpfeq++6uuNXD0AI=",
332
- "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
333
- "result_meta_xdr": "AAAAAAAAAAEAAAACAAAAAwAB564AAAABAAAAAPEQPj7XlVhUhdHm80fTEA9cVMoLvbfkHCmVkGAWQLpgAAAAAUJUQwAAAAAAoSJK3vAvzMch/CwkXk++gj+pbsSlvaKGGJbuXE+kckIAAAAAstBeAH//////////AAAAAQAAAAAAAAAAAAAAAQAB58EAAAABAAAAAPEQPj7XlVhUhdHm80fTEA9cVMoLvbfkHCmVkGAWQLpgAAAAAUJUQwAAAAAAoSJK3vAvzMch/CwkXk++gj+pbsSlvaKGGJbuXE+kckIAAAABDDiNAH//////////AAAAAQAAAAAAAAAA"
334
- }
335
- http_version:
336
- recorded_at: Sun, 26 Mar 2017 07:29:10 GMT
337
- - request:
338
- method: get
339
- uri: https://horizon-testnet.stellar.org/accounts/[destination_address]
340
- body:
341
- encoding: US-ASCII
342
- string: ''
343
- headers:
344
- User-Agent:
345
- - Faraday v0.9.2
346
- Accept:
347
- - application/hal+json,application/problem+json,application/json
348
- response:
349
- status:
350
- code: 200
351
- message: OK
352
- headers:
353
- Content-Type:
354
- - application/hal+json; charset=utf-8
355
- Date:
356
- - Sun, 26 Mar 2017 07:29:12 GMT
357
- X-Ratelimit-Limit:
358
- - '72000'
359
- X-Ratelimit-Remaining:
360
- - '71936'
361
- X-Ratelimit-Reset:
362
- - '2133'
363
- Connection:
364
- - keep-alive
365
- body:
366
- encoding: UTF-8
367
- string: |-
368
- {
369
- "_links": {
370
- "self": {
371
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]"
372
- },
373
- "transactions": {
374
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/transactions{?cursor,limit,order}",
375
- "templated": true
376
- },
377
- "operations": {
378
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/operations{?cursor,limit,order}",
379
- "templated": true
380
- },
381
- "payments": {
382
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/payments{?cursor,limit,order}",
383
- "templated": true
384
- },
385
- "effects": {
386
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/effects{?cursor,limit,order}",
387
- "templated": true
388
- },
389
- "offers": {
390
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/offers{?cursor,limit,order}",
391
- "templated": true
392
- },
393
- "trades": {
394
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/trades{?cursor,limit,order}",
395
- "templated": true
396
- },
397
- "data": {
398
- "href": "https://horizon-testnet.stellar.org/accounts/[destination_address]/data/{key}",
399
- "templated": true
400
- }
401
- },
402
- "id": "[destination_address]",
403
- "paging_token": "",
404
- "account_id": "[destination_address]",
405
- "sequence": "534727723319299",
406
- "subentry_count": 2,
407
- "thresholds": {
408
- "low_threshold": 0,
409
- "med_threshold": 0,
410
- "high_threshold": 0
411
- },
412
- "flags": {
413
- "auth_required": false,
414
- "auth_revocable": false
415
- },
416
- "balances": [
417
- {
418
- "balance": "0.0000000",
419
- "limit": "922337203685.4775807",
420
- "asset_type": "credit_alphanum12",
421
- "asset_code": "LONGNAME",
422
- "asset_issuer": "[source_address]"
423
- },
424
- {
425
- "balance": "450.0000000",
426
- "limit": "922337203685.4775807",
427
- "asset_type": "credit_alphanum4",
428
- "asset_code": "BTC",
429
- "asset_issuer": "[source_address]"
430
- },
431
- {
432
- "balance": "9999.9999700",
433
- "asset_type": "native"
434
- }
435
- ],
436
- "signers": [
437
- {
438
- "public_key": "[destination_address]",
439
- "weight": 1,
440
- "key": "[destination_address]",
441
- "type": "ed25519_public_key"
442
- }
443
- ],
444
- "data": {}
445
- }
446
- http_version:
447
- recorded_at: Sun, 26 Mar 2017 07:29:11 GMT
448
- recorded_with: VCR 3.0.3