stellar-sdk 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +4 -0
- data/CHANGELOG.md +10 -2
- data/README.md +6 -0
- data/lib/stellar/client.rb +21 -6
- data/lib/stellar/version.rb +1 -1
- data/ruby-stellar-sdk.gemspec +1 -1
- data/spec/config.yml.sample +5 -0
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/alphanum12_asset/sends_a_alphanum12_asset_to_the_destination.yml +146 -136
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/alphanum4_asset/sends_a_alphanum4_asset_to_the_destination.yml +146 -136
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/memo/accepts_the_memo_attribute.yml +716 -0
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/native_asset/sends_a_native_payment_to_the_account.yml +198 -105
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/using_a_payment_channel/sends_a_payment_account_through_a_channel_account.yml +694 -0
- 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 +586 -0
- data/spec/lib/stellar/client_spec.rb +90 -0
- data/spec/support/vcr.rb +1 -1
- metadata +11 -5
@@ -0,0 +1,586 @@
|
|
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
|
+
Cache-Control:
|
20
|
+
- no-cache, no-store, max-age=0
|
21
|
+
Content-Disposition:
|
22
|
+
- inline
|
23
|
+
Content-Type:
|
24
|
+
- application/hal+json; charset=utf-8
|
25
|
+
Date:
|
26
|
+
- Fri, 19 Oct 2018 13:40:01 GMT
|
27
|
+
Vary:
|
28
|
+
- Origin
|
29
|
+
X-Ratelimit-Limit:
|
30
|
+
- '17200'
|
31
|
+
X-Ratelimit-Remaining:
|
32
|
+
- '17180'
|
33
|
+
X-Ratelimit-Reset:
|
34
|
+
- '2715'
|
35
|
+
Content-Length:
|
36
|
+
- '1583'
|
37
|
+
Connection:
|
38
|
+
- keep-alive
|
39
|
+
body:
|
40
|
+
encoding: ASCII-8BIT
|
41
|
+
string: |-
|
42
|
+
{
|
43
|
+
"_links": {
|
44
|
+
"account": {
|
45
|
+
"href": "https://horizon-testnet.stellar.org/accounts/{account_id}",
|
46
|
+
"templated": true
|
47
|
+
},
|
48
|
+
"account_transactions": {
|
49
|
+
"href": "https://horizon-testnet.stellar.org/accounts/{account_id}/transactions{?cursor,limit,order}",
|
50
|
+
"templated": true
|
51
|
+
},
|
52
|
+
"assets": {
|
53
|
+
"href": "https://horizon-testnet.stellar.org/assets{?asset_code,asset_issuer,cursor,limit,order}",
|
54
|
+
"templated": true
|
55
|
+
},
|
56
|
+
"friendbot": {
|
57
|
+
"href": "https://friendbot.stellar.org/{?addr}",
|
58
|
+
"templated": true
|
59
|
+
},
|
60
|
+
"metrics": {
|
61
|
+
"href": "https://horizon-testnet.stellar.org/metrics"
|
62
|
+
},
|
63
|
+
"order_book": {
|
64
|
+
"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}",
|
65
|
+
"templated": true
|
66
|
+
},
|
67
|
+
"self": {
|
68
|
+
"href": "https://horizon-testnet.stellar.org/"
|
69
|
+
},
|
70
|
+
"transaction": {
|
71
|
+
"href": "https://horizon-testnet.stellar.org/transactions/{hash}",
|
72
|
+
"templated": true
|
73
|
+
},
|
74
|
+
"transactions": {
|
75
|
+
"href": "https://horizon-testnet.stellar.org/transactions{?cursor,limit,order}",
|
76
|
+
"templated": true
|
77
|
+
}
|
78
|
+
},
|
79
|
+
"horizon_version": "0.15.0-unstable-92db8e1f6fa5eeb4733ffd224214976ab1a97cd0",
|
80
|
+
"core_version": "stellar-core 10.0.0-dbg (1fc018b4f52e8c7e716b023ccf30600af5b4f66d)",
|
81
|
+
"history_latest_ledger": 254736,
|
82
|
+
"history_elder_ledger": 1,
|
83
|
+
"core_latest_ledger": 254736,
|
84
|
+
"network_passphrase": "Test SDF Network ; September 2015",
|
85
|
+
"protocol_version": 10
|
86
|
+
}
|
87
|
+
http_version:
|
88
|
+
recorded_at: Fri, 19 Oct 2018 13:40:01 GMT
|
89
|
+
- request:
|
90
|
+
method: get
|
91
|
+
uri: https://horizon-testnet.stellar.org/accounts/[source_address]
|
92
|
+
body:
|
93
|
+
encoding: US-ASCII
|
94
|
+
string: ''
|
95
|
+
headers:
|
96
|
+
User-Agent:
|
97
|
+
- Faraday v0.15.2
|
98
|
+
Accept:
|
99
|
+
- application/hal+json,application/problem+json,application/json
|
100
|
+
response:
|
101
|
+
status:
|
102
|
+
code: 200
|
103
|
+
message: OK
|
104
|
+
headers:
|
105
|
+
Cache-Control:
|
106
|
+
- no-cache, no-store, max-age=0
|
107
|
+
Content-Disposition:
|
108
|
+
- inline
|
109
|
+
Content-Type:
|
110
|
+
- application/hal+json; charset=utf-8
|
111
|
+
Date:
|
112
|
+
- Fri, 19 Oct 2018 13:40:02 GMT
|
113
|
+
Vary:
|
114
|
+
- Origin
|
115
|
+
X-Ratelimit-Limit:
|
116
|
+
- '17200'
|
117
|
+
X-Ratelimit-Remaining:
|
118
|
+
- '17184'
|
119
|
+
X-Ratelimit-Reset:
|
120
|
+
- '2715'
|
121
|
+
Content-Length:
|
122
|
+
- '2346'
|
123
|
+
Connection:
|
124
|
+
- keep-alive
|
125
|
+
body:
|
126
|
+
encoding: ASCII-8BIT
|
127
|
+
string: |-
|
128
|
+
{
|
129
|
+
"_links": {
|
130
|
+
"self": {
|
131
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
|
132
|
+
},
|
133
|
+
"transactions": {
|
134
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/transactions{?cursor,limit,order}",
|
135
|
+
"templated": true
|
136
|
+
},
|
137
|
+
"operations": {
|
138
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/operations{?cursor,limit,order}",
|
139
|
+
"templated": true
|
140
|
+
},
|
141
|
+
"payments": {
|
142
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/payments{?cursor,limit,order}",
|
143
|
+
"templated": true
|
144
|
+
},
|
145
|
+
"effects": {
|
146
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/effects{?cursor,limit,order}",
|
147
|
+
"templated": true
|
148
|
+
},
|
149
|
+
"offers": {
|
150
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/offers{?cursor,limit,order}",
|
151
|
+
"templated": true
|
152
|
+
},
|
153
|
+
"trades": {
|
154
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/trades{?cursor,limit,order}",
|
155
|
+
"templated": true
|
156
|
+
},
|
157
|
+
"data": {
|
158
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/data/{key}",
|
159
|
+
"templated": true
|
160
|
+
}
|
161
|
+
},
|
162
|
+
"id": "[source_address]",
|
163
|
+
"paging_token": "",
|
164
|
+
"account_id": "[source_address]",
|
165
|
+
"sequence": "930848262062096",
|
166
|
+
"subentry_count": 0,
|
167
|
+
"thresholds": {
|
168
|
+
"low_threshold": 0,
|
169
|
+
"med_threshold": 0,
|
170
|
+
"high_threshold": 0
|
171
|
+
},
|
172
|
+
"flags": {
|
173
|
+
"auth_required": false,
|
174
|
+
"auth_revocable": false
|
175
|
+
},
|
176
|
+
"balances": [
|
177
|
+
{
|
178
|
+
"balance": "9977.7998400",
|
179
|
+
"buying_liabilities": "0.0000000",
|
180
|
+
"selling_liabilities": "0.0000000",
|
181
|
+
"asset_type": "native"
|
182
|
+
}
|
183
|
+
],
|
184
|
+
"signers": [
|
185
|
+
{
|
186
|
+
"public_key": "[source_address]",
|
187
|
+
"weight": 1,
|
188
|
+
"key": "[source_address]",
|
189
|
+
"type": "ed25519_public_key"
|
190
|
+
}
|
191
|
+
],
|
192
|
+
"data": {}
|
193
|
+
}
|
194
|
+
http_version:
|
195
|
+
recorded_at: Fri, 19 Oct 2018 13:40:03 GMT
|
196
|
+
- request:
|
197
|
+
method: post
|
198
|
+
uri: https://horizon-testnet.stellar.org/transactions
|
199
|
+
body:
|
200
|
+
encoding: UTF-8
|
201
|
+
string: tx=AAAAAPfC6xA%2Fc15t9SIuO4JWyScW0F4JFxbalmlIMhnHGbQdAAAAZAADTpoAAAARAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAewzmYWqeJN0lVXr1U2ztZuXvjxjGl1wQIRw5VK9ffRcAAAAAAJiWgAAAAAAAAAABxxm0HQAAAED02VUbaxAEavaDn%2F8sUxucfdNpqIxUohUiID1yooW9Hl8nk7bQ8ObvtBrHKaO0Stim%2FeK0kAvI1wyx3PayYYIC
|
202
|
+
headers:
|
203
|
+
User-Agent:
|
204
|
+
- Faraday v0.15.2
|
205
|
+
Accept:
|
206
|
+
- application/hal+json,application/problem+json,application/json
|
207
|
+
Content-Type:
|
208
|
+
- application/x-www-form-urlencoded
|
209
|
+
response:
|
210
|
+
status:
|
211
|
+
code: 200
|
212
|
+
message: OK
|
213
|
+
headers:
|
214
|
+
Cache-Control:
|
215
|
+
- no-cache, no-store, max-age=0
|
216
|
+
Content-Disposition:
|
217
|
+
- inline
|
218
|
+
Content-Type:
|
219
|
+
- application/hal+json; charset=utf-8
|
220
|
+
Date:
|
221
|
+
- Fri, 19 Oct 2018 13:40:08 GMT
|
222
|
+
Vary:
|
223
|
+
- Origin
|
224
|
+
X-Ratelimit-Limit:
|
225
|
+
- '17200'
|
226
|
+
X-Ratelimit-Remaining:
|
227
|
+
- '17179'
|
228
|
+
X-Ratelimit-Reset:
|
229
|
+
- '2711'
|
230
|
+
Content-Length:
|
231
|
+
- '1307'
|
232
|
+
Connection:
|
233
|
+
- keep-alive
|
234
|
+
body:
|
235
|
+
encoding: ASCII-8BIT
|
236
|
+
string: |-
|
237
|
+
{
|
238
|
+
"_links": {
|
239
|
+
"transaction": {
|
240
|
+
"href": "https://horizon-testnet.stellar.org/transactions/a71ebffc7b0021d580ea6a7755ea6fd54dd5e5f9ca5fefb161ec7c06b0a454af"
|
241
|
+
}
|
242
|
+
},
|
243
|
+
"hash": "a71ebffc7b0021d580ea6a7755ea6fd54dd5e5f9ca5fefb161ec7c06b0a454af",
|
244
|
+
"ledger": 254738,
|
245
|
+
"envelope_xdr": "AAAAAPfC6xA/c15t9SIuO4JWyScW0F4JFxbalmlIMhnHGbQdAAAAZAADTpoAAAARAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAewzmYWqeJN0lVXr1U2ztZuXvjxjGl1wQIRw5VK9ffRcAAAAAAJiWgAAAAAAAAAABxxm0HQAAAED02VUbaxAEavaDn/8sUxucfdNpqIxUohUiID1yooW9Hl8nk7bQ8ObvtBrHKaO0Stim/eK0kAvI1wyx3PayYYIC",
|
246
|
+
"result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA=",
|
247
|
+
"result_meta_xdr": "AAAAAQAAAAIAAAADAAPjEgAAAAAAAAAA98LrED9zXm31Ii47glbJJxbQXgkXFtqWaUgyGccZtB0AAAAXOztt3AADTpoAAAAQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAPjEgAAAAAAAAAA98LrED9zXm31Ii47glbJJxbQXgkXFtqWaUgyGccZtB0AAAAXOztt3AADTpoAAAARAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAA+MSAAAAAAAAAAB7DOZhap4k3SVVevVTbO1m5e+PGMaXXBAhHDlUr199FwAAAAAAmJaAAAPjEgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAMAA+MSAAAAAAAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAABc7O23cAANOmgAAABEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAA+MSAAAAAAAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAABc6otdcAANOmgAAABEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="
|
248
|
+
}
|
249
|
+
http_version:
|
250
|
+
recorded_at: Fri, 19 Oct 2018 13:40:09 GMT
|
251
|
+
- request:
|
252
|
+
method: get
|
253
|
+
uri: https://horizon-testnet.stellar.org/accounts/[source_address]
|
254
|
+
body:
|
255
|
+
encoding: US-ASCII
|
256
|
+
string: ''
|
257
|
+
headers:
|
258
|
+
User-Agent:
|
259
|
+
- Faraday v0.15.2
|
260
|
+
Accept:
|
261
|
+
- application/hal+json,application/problem+json,application/json
|
262
|
+
response:
|
263
|
+
status:
|
264
|
+
code: 200
|
265
|
+
message: OK
|
266
|
+
headers:
|
267
|
+
Cache-Control:
|
268
|
+
- no-cache, no-store, max-age=0
|
269
|
+
Content-Disposition:
|
270
|
+
- inline
|
271
|
+
Content-Type:
|
272
|
+
- application/hal+json; charset=utf-8
|
273
|
+
Date:
|
274
|
+
- Fri, 19 Oct 2018 13:40:10 GMT
|
275
|
+
Vary:
|
276
|
+
- Origin
|
277
|
+
X-Ratelimit-Limit:
|
278
|
+
- '17200'
|
279
|
+
X-Ratelimit-Remaining:
|
280
|
+
- '17178'
|
281
|
+
X-Ratelimit-Reset:
|
282
|
+
- '2705'
|
283
|
+
Content-Length:
|
284
|
+
- '2346'
|
285
|
+
Connection:
|
286
|
+
- keep-alive
|
287
|
+
body:
|
288
|
+
encoding: ASCII-8BIT
|
289
|
+
string: |-
|
290
|
+
{
|
291
|
+
"_links": {
|
292
|
+
"self": {
|
293
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
|
294
|
+
},
|
295
|
+
"transactions": {
|
296
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/transactions{?cursor,limit,order}",
|
297
|
+
"templated": true
|
298
|
+
},
|
299
|
+
"operations": {
|
300
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/operations{?cursor,limit,order}",
|
301
|
+
"templated": true
|
302
|
+
},
|
303
|
+
"payments": {
|
304
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/payments{?cursor,limit,order}",
|
305
|
+
"templated": true
|
306
|
+
},
|
307
|
+
"effects": {
|
308
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/effects{?cursor,limit,order}",
|
309
|
+
"templated": true
|
310
|
+
},
|
311
|
+
"offers": {
|
312
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/offers{?cursor,limit,order}",
|
313
|
+
"templated": true
|
314
|
+
},
|
315
|
+
"trades": {
|
316
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/trades{?cursor,limit,order}",
|
317
|
+
"templated": true
|
318
|
+
},
|
319
|
+
"data": {
|
320
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/data/{key}",
|
321
|
+
"templated": true
|
322
|
+
}
|
323
|
+
},
|
324
|
+
"id": "[source_address]",
|
325
|
+
"paging_token": "",
|
326
|
+
"account_id": "[source_address]",
|
327
|
+
"sequence": "930848262062097",
|
328
|
+
"subentry_count": 0,
|
329
|
+
"thresholds": {
|
330
|
+
"low_threshold": 0,
|
331
|
+
"med_threshold": 0,
|
332
|
+
"high_threshold": 0
|
333
|
+
},
|
334
|
+
"flags": {
|
335
|
+
"auth_required": false,
|
336
|
+
"auth_revocable": false
|
337
|
+
},
|
338
|
+
"balances": [
|
339
|
+
{
|
340
|
+
"balance": "9976.7998300",
|
341
|
+
"buying_liabilities": "0.0000000",
|
342
|
+
"selling_liabilities": "0.0000000",
|
343
|
+
"asset_type": "native"
|
344
|
+
}
|
345
|
+
],
|
346
|
+
"signers": [
|
347
|
+
{
|
348
|
+
"public_key": "[source_address]",
|
349
|
+
"weight": 1,
|
350
|
+
"key": "[source_address]",
|
351
|
+
"type": "ed25519_public_key"
|
352
|
+
}
|
353
|
+
],
|
354
|
+
"data": {}
|
355
|
+
}
|
356
|
+
http_version:
|
357
|
+
recorded_at: Fri, 19 Oct 2018 13:40:11 GMT
|
358
|
+
- request:
|
359
|
+
method: post
|
360
|
+
uri: https://horizon-testnet.stellar.org/transactions
|
361
|
+
body:
|
362
|
+
encoding: UTF-8
|
363
|
+
string: tx=AAAAAPfC6xA%2Fc15t9SIuO4JWyScW0F4JFxbalmlIMhnHGbQdAAAAZAADTpoAAAASAAAAAAAAAAAAAAABAAAAAQAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAAAEAAAAAewzmYWqeJN0lVXr1U2ztZuXvjxjGl1wQIRw5VK9ffRcAAAAAAAAAAABT7GAAAAAAAAAAAccZtB0AAABALkYdp0zkofpiFva507VECYF54I5zppWOEZ8RkrqiyReEik%2BvG1rNUCbJNA3xmOKnEKD4zbPP6ETNnTeHOBx9Bw%3D%3D
|
364
|
+
headers:
|
365
|
+
User-Agent:
|
366
|
+
- Faraday v0.15.2
|
367
|
+
Accept:
|
368
|
+
- application/hal+json,application/problem+json,application/json
|
369
|
+
Content-Type:
|
370
|
+
- application/x-www-form-urlencoded
|
371
|
+
response:
|
372
|
+
status:
|
373
|
+
code: 200
|
374
|
+
message: OK
|
375
|
+
headers:
|
376
|
+
Cache-Control:
|
377
|
+
- no-cache, no-store, max-age=0
|
378
|
+
Content-Disposition:
|
379
|
+
- inline
|
380
|
+
Content-Type:
|
381
|
+
- application/hal+json; charset=utf-8
|
382
|
+
Date:
|
383
|
+
- Fri, 19 Oct 2018 13:40:13 GMT
|
384
|
+
Vary:
|
385
|
+
- Origin
|
386
|
+
X-Ratelimit-Limit:
|
387
|
+
- '17200'
|
388
|
+
X-Ratelimit-Remaining:
|
389
|
+
- '17177'
|
390
|
+
X-Ratelimit-Reset:
|
391
|
+
- '2704'
|
392
|
+
Content-Length:
|
393
|
+
- '1491'
|
394
|
+
Connection:
|
395
|
+
- keep-alive
|
396
|
+
body:
|
397
|
+
encoding: ASCII-8BIT
|
398
|
+
string: |-
|
399
|
+
{
|
400
|
+
"_links": {
|
401
|
+
"transaction": {
|
402
|
+
"href": "https://horizon-testnet.stellar.org/transactions/49ba1201cb487416c961fc611c7fd86bfb6e1c3d501db258c54096a2a3c5f82c"
|
403
|
+
}
|
404
|
+
},
|
405
|
+
"hash": "49ba1201cb487416c961fc611c7fd86bfb6e1c3d501db258c54096a2a3c5f82c",
|
406
|
+
"ledger": 254739,
|
407
|
+
"envelope_xdr": "AAAAAPfC6xA/c15t9SIuO4JWyScW0F4JFxbalmlIMhnHGbQdAAAAZAADTpoAAAASAAAAAAAAAAAAAAABAAAAAQAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAAAEAAAAAewzmYWqeJN0lVXr1U2ztZuXvjxjGl1wQIRw5VK9ffRcAAAAAAAAAAABT7GAAAAAAAAAAAccZtB0AAABALkYdp0zkofpiFva507VECYF54I5zppWOEZ8RkrqiyReEik+vG1rNUCbJNA3xmOKnEKD4zbPP6ETNnTeHOBx9Bw==",
|
408
|
+
"result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
|
409
|
+
"result_meta_xdr": "AAAAAQAAAAIAAAADAAPjEwAAAAAAAAAA98LrED9zXm31Ii47glbJJxbQXgkXFtqWaUgyGccZtB0AAAAXOqLW+AADTpoAAAARAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAPjEwAAAAAAAAAA98LrED9zXm31Ii47glbJJxbQXgkXFtqWaUgyGccZtB0AAAAXOqLW+AADTpoAAAASAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABAAAAAMAA+MSAAAAAAAAAAB7DOZhap4k3SVVevVTbO1m5e+PGMaXXBAhHDlUr199FwAAAAAAmJaAAAPjEgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAA+MTAAAAAAAAAAB7DOZhap4k3SVVevVTbO1m5e+PGMaXXBAhHDlUr199FwAAAAAA7ILgAAPjEgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAMAA+MTAAAAAAAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAABc6otb4AANOmgAAABIAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAA+MTAAAAAAAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAABc6TuqYAANOmgAAABIAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="
|
410
|
+
}
|
411
|
+
http_version:
|
412
|
+
recorded_at: Fri, 19 Oct 2018 13:40:14 GMT
|
413
|
+
- request:
|
414
|
+
method: get
|
415
|
+
uri: https://horizon-testnet.stellar.org/transactions/49ba1201cb487416c961fc611c7fd86bfb6e1c3d501db258c54096a2a3c5f82c
|
416
|
+
body:
|
417
|
+
encoding: US-ASCII
|
418
|
+
string: ''
|
419
|
+
headers:
|
420
|
+
User-Agent:
|
421
|
+
- Faraday v0.15.2
|
422
|
+
Accept:
|
423
|
+
- application/hal+json,application/problem+json,application/json
|
424
|
+
response:
|
425
|
+
status:
|
426
|
+
code: 200
|
427
|
+
message: OK
|
428
|
+
headers:
|
429
|
+
Cache-Control:
|
430
|
+
- no-cache, no-store, max-age=0
|
431
|
+
Content-Disposition:
|
432
|
+
- inline
|
433
|
+
Content-Type:
|
434
|
+
- application/hal+json; charset=utf-8
|
435
|
+
Date:
|
436
|
+
- Fri, 19 Oct 2018 13:40:16 GMT
|
437
|
+
Vary:
|
438
|
+
- Origin
|
439
|
+
X-Ratelimit-Limit:
|
440
|
+
- '17200'
|
441
|
+
X-Ratelimit-Remaining:
|
442
|
+
- '17176'
|
443
|
+
X-Ratelimit-Reset:
|
444
|
+
- '2700'
|
445
|
+
Content-Length:
|
446
|
+
- '3149'
|
447
|
+
Connection:
|
448
|
+
- keep-alive
|
449
|
+
body:
|
450
|
+
encoding: ASCII-8BIT
|
451
|
+
string: |-
|
452
|
+
{
|
453
|
+
"_links": {
|
454
|
+
"self": {
|
455
|
+
"href": "https://horizon-testnet.stellar.org/transactions/49ba1201cb487416c961fc611c7fd86bfb6e1c3d501db258c54096a2a3c5f82c"
|
456
|
+
},
|
457
|
+
"account": {
|
458
|
+
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
|
459
|
+
},
|
460
|
+
"ledger": {
|
461
|
+
"href": "https://horizon-testnet.stellar.org/ledgers/254739"
|
462
|
+
},
|
463
|
+
"operations": {
|
464
|
+
"href": "https://horizon-testnet.stellar.org/transactions/49ba1201cb487416c961fc611c7fd86bfb6e1c3d501db258c54096a2a3c5f82c/operations{?cursor,limit,order}",
|
465
|
+
"templated": true
|
466
|
+
},
|
467
|
+
"effects": {
|
468
|
+
"href": "https://horizon-testnet.stellar.org/transactions/49ba1201cb487416c961fc611c7fd86bfb6e1c3d501db258c54096a2a3c5f82c/effects{?cursor,limit,order}",
|
469
|
+
"templated": true
|
470
|
+
},
|
471
|
+
"precedes": {
|
472
|
+
"href": "https://horizon-testnet.stellar.org/transactions?order=asc\u0026cursor=1094095674028032"
|
473
|
+
},
|
474
|
+
"succeeds": {
|
475
|
+
"href": "https://horizon-testnet.stellar.org/transactions?order=desc\u0026cursor=1094095674028032"
|
476
|
+
}
|
477
|
+
},
|
478
|
+
"id": "49ba1201cb487416c961fc611c7fd86bfb6e1c3d501db258c54096a2a3c5f82c",
|
479
|
+
"paging_token": "1094095674028032",
|
480
|
+
"hash": "49ba1201cb487416c961fc611c7fd86bfb6e1c3d501db258c54096a2a3c5f82c",
|
481
|
+
"ledger": 254739,
|
482
|
+
"created_at": "2018-10-19T13:40:13Z",
|
483
|
+
"source_account": "[source_address]",
|
484
|
+
"source_account_sequence": "930848262062098",
|
485
|
+
"fee_paid": 100,
|
486
|
+
"operation_count": 1,
|
487
|
+
"envelope_xdr": "AAAAAPfC6xA/c15t9SIuO4JWyScW0F4JFxbalmlIMhnHGbQdAAAAZAADTpoAAAASAAAAAAAAAAAAAAABAAAAAQAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAAAEAAAAAewzmYWqeJN0lVXr1U2ztZuXvjxjGl1wQIRw5VK9ffRcAAAAAAAAAAABT7GAAAAAAAAAAAccZtB0AAABALkYdp0zkofpiFva507VECYF54I5zppWOEZ8RkrqiyReEik+vG1rNUCbJNA3xmOKnEKD4zbPP6ETNnTeHOBx9Bw==",
|
488
|
+
"result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
|
489
|
+
"result_meta_xdr": "AAAAAQAAAAIAAAADAAPjEwAAAAAAAAAA98LrED9zXm31Ii47glbJJxbQXgkXFtqWaUgyGccZtB0AAAAXOqLW+AADTpoAAAARAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAPjEwAAAAAAAAAA98LrED9zXm31Ii47glbJJxbQXgkXFtqWaUgyGccZtB0AAAAXOqLW+AADTpoAAAASAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABAAAAAMAA+MSAAAAAAAAAAB7DOZhap4k3SVVevVTbO1m5e+PGMaXXBAhHDlUr199FwAAAAAAmJaAAAPjEgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAA+MTAAAAAAAAAAB7DOZhap4k3SVVevVTbO1m5e+PGMaXXBAhHDlUr199FwAAAAAA7ILgAAPjEgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAMAA+MTAAAAAAAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAABc6otb4AANOmgAAABIAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAA+MTAAAAAAAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAABc6TuqYAANOmgAAABIAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
|
490
|
+
"fee_meta_xdr": "AAAAAgAAAAMAA+MSAAAAAAAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAABc6otdcAANOmgAAABEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAA+MTAAAAAAAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAABc6otb4AANOmgAAABEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
|
491
|
+
"memo_type": "none",
|
492
|
+
"signatures": [
|
493
|
+
"LkYdp0zkofpiFva507VECYF54I5zppWOEZ8RkrqiyReEik+vG1rNUCbJNA3xmOKnEKD4zbPP6ETNnTeHOBx9Bw=="
|
494
|
+
]
|
495
|
+
}
|
496
|
+
http_version:
|
497
|
+
recorded_at: Fri, 19 Oct 2018 13:40:17 GMT
|
498
|
+
- request:
|
499
|
+
method: get
|
500
|
+
uri: https://horizon-testnet.stellar.org/transactions/49ba1201cb487416c961fc611c7fd86bfb6e1c3d501db258c54096a2a3c5f82c/operations
|
501
|
+
body:
|
502
|
+
encoding: US-ASCII
|
503
|
+
string: ''
|
504
|
+
headers:
|
505
|
+
User-Agent:
|
506
|
+
- Faraday v0.15.2
|
507
|
+
Accept:
|
508
|
+
- application/hal+json,application/problem+json,application/json
|
509
|
+
response:
|
510
|
+
status:
|
511
|
+
code: 200
|
512
|
+
message: OK
|
513
|
+
headers:
|
514
|
+
Cache-Control:
|
515
|
+
- no-cache, no-store, max-age=0
|
516
|
+
Content-Disposition:
|
517
|
+
- inline
|
518
|
+
Content-Type:
|
519
|
+
- application/hal+json; charset=utf-8
|
520
|
+
Date:
|
521
|
+
- Fri, 19 Oct 2018 13:40:19 GMT
|
522
|
+
Vary:
|
523
|
+
- Origin
|
524
|
+
X-Ratelimit-Limit:
|
525
|
+
- '17200'
|
526
|
+
X-Ratelimit-Remaining:
|
527
|
+
- '17175'
|
528
|
+
X-Ratelimit-Reset:
|
529
|
+
- '2697'
|
530
|
+
Content-Length:
|
531
|
+
- '2017'
|
532
|
+
Connection:
|
533
|
+
- keep-alive
|
534
|
+
body:
|
535
|
+
encoding: ASCII-8BIT
|
536
|
+
string: |-
|
537
|
+
{
|
538
|
+
"_links": {
|
539
|
+
"self": {
|
540
|
+
"href": "https://horizon-testnet.stellar.org/transactions/49ba1201cb487416c961fc611c7fd86bfb6e1c3d501db258c54096a2a3c5f82c/operations?cursor=\u0026limit=10\u0026order=asc"
|
541
|
+
},
|
542
|
+
"next": {
|
543
|
+
"href": "https://horizon-testnet.stellar.org/transactions/49ba1201cb487416c961fc611c7fd86bfb6e1c3d501db258c54096a2a3c5f82c/operations?cursor=1094095674028033\u0026limit=10\u0026order=asc"
|
544
|
+
},
|
545
|
+
"prev": {
|
546
|
+
"href": "https://horizon-testnet.stellar.org/transactions/49ba1201cb487416c961fc611c7fd86bfb6e1c3d501db258c54096a2a3c5f82c/operations?cursor=1094095674028033\u0026limit=10\u0026order=desc"
|
547
|
+
}
|
548
|
+
},
|
549
|
+
"_embedded": {
|
550
|
+
"records": [
|
551
|
+
{
|
552
|
+
"_links": {
|
553
|
+
"self": {
|
554
|
+
"href": "https://horizon-testnet.stellar.org/operations/1094095674028033"
|
555
|
+
},
|
556
|
+
"transaction": {
|
557
|
+
"href": "https://horizon-testnet.stellar.org/transactions/49ba1201cb487416c961fc611c7fd86bfb6e1c3d501db258c54096a2a3c5f82c"
|
558
|
+
},
|
559
|
+
"effects": {
|
560
|
+
"href": "https://horizon-testnet.stellar.org/operations/1094095674028033/effects"
|
561
|
+
},
|
562
|
+
"succeeds": {
|
563
|
+
"href": "https://horizon-testnet.stellar.org/effects?order=desc\u0026cursor=1094095674028033"
|
564
|
+
},
|
565
|
+
"precedes": {
|
566
|
+
"href": "https://horizon-testnet.stellar.org/effects?order=asc\u0026cursor=1094095674028033"
|
567
|
+
}
|
568
|
+
},
|
569
|
+
"id": "1094095674028033",
|
570
|
+
"paging_token": "1094095674028033",
|
571
|
+
"source_account": "[source_address]",
|
572
|
+
"type": "payment",
|
573
|
+
"type_i": 1,
|
574
|
+
"created_at": "2018-10-19T13:40:13Z",
|
575
|
+
"transaction_hash": "49ba1201cb487416c961fc611c7fd86bfb6e1c3d501db258c54096a2a3c5f82c",
|
576
|
+
"asset_type": "native",
|
577
|
+
"from": "[source_address]",
|
578
|
+
"to": "GB5QZZTBNKPCJXJFKV5PKU3M5VTOL34PDDDJOXAQEEODSVFPL56ROV3O",
|
579
|
+
"amount": "0.5500000"
|
580
|
+
}
|
581
|
+
]
|
582
|
+
}
|
583
|
+
}
|
584
|
+
http_version:
|
585
|
+
recorded_at: Fri, 19 Oct 2018 13:40:19 GMT
|
586
|
+
recorded_with: VCR 3.0.3
|