stellar-sdk 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +5 -4
- data/CHANGELOG.md +5 -0
- data/README.md +8 -7
- data/examples/07_sep10.rb +125 -0
- data/lib/stellar-sdk.rb +1 -1
- data/lib/stellar/client.rb +72 -4
- data/lib/stellar/sep10.rb +384 -0
- data/lib/stellar/version.rb +1 -1
- data/ruby-stellar-sdk.gemspec +6 -7
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_load_account/loads_successfully.yml +226 -0
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/memo/accepts_the_memo_attribute.yml +239 -230
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/using_a_payment_channel/sends_a_payment_account_through_a_channel_account.yml +198 -135
- 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 +166 -110
- data/spec/lib/stellar/client_spec.rb +18 -1
- data/spec/lib/stellar/sep10_spec.rb +1148 -0
- metadata +25 -20
@@ -8,9 +8,13 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.
|
11
|
+
- Faraday v0.17.3
|
12
12
|
Accept:
|
13
13
|
- application/hal+json,application/problem+json,application/json
|
14
|
+
X-Client-Name:
|
15
|
+
- ruby-stellar-sdk
|
16
|
+
X-Client-Version:
|
17
|
+
- 0.7.0
|
14
18
|
response:
|
15
19
|
status:
|
16
20
|
code: 200
|
@@ -23,17 +27,17 @@ http_interactions:
|
|
23
27
|
Content-Type:
|
24
28
|
- application/hal+json; charset=utf-8
|
25
29
|
Date:
|
26
|
-
- Fri,
|
30
|
+
- Fri, 13 Mar 2020 22:04:58 GMT
|
27
31
|
Vary:
|
28
32
|
- Origin
|
29
33
|
X-Ratelimit-Limit:
|
30
|
-
- '
|
34
|
+
- '101'
|
31
35
|
X-Ratelimit-Remaining:
|
32
|
-
- '
|
36
|
+
- '100'
|
33
37
|
X-Ratelimit-Reset:
|
34
|
-
- '
|
38
|
+
- '1'
|
35
39
|
Content-Length:
|
36
|
-
- '
|
40
|
+
- '2496'
|
37
41
|
Connection:
|
38
42
|
- keep-alive
|
39
43
|
body:
|
@@ -45,6 +49,10 @@ http_interactions:
|
|
45
49
|
"href": "https://horizon-testnet.stellar.org/accounts/{account_id}",
|
46
50
|
"templated": true
|
47
51
|
},
|
52
|
+
"accounts": {
|
53
|
+
"href": "https://horizon-testnet.stellar.org/accounts{?signer,asset,cursor,limit,order}",
|
54
|
+
"templated": true
|
55
|
+
},
|
48
56
|
"account_transactions": {
|
49
57
|
"href": "https://horizon-testnet.stellar.org/accounts/{account_id}/transactions{?cursor,limit,order}",
|
50
58
|
"templated": true
|
@@ -57,8 +65,13 @@ http_interactions:
|
|
57
65
|
"href": "https://friendbot.stellar.org/{?addr}",
|
58
66
|
"templated": true
|
59
67
|
},
|
60
|
-
"
|
61
|
-
"href": "https://horizon-testnet.stellar.org/
|
68
|
+
"offer": {
|
69
|
+
"href": "https://horizon-testnet.stellar.org/offers/{offer_id}",
|
70
|
+
"templated": true
|
71
|
+
},
|
72
|
+
"offers": {
|
73
|
+
"href": "https://horizon-testnet.stellar.org/offers{?selling,buying,seller,cursor,limit,order}",
|
74
|
+
"templated": true
|
62
75
|
},
|
63
76
|
"order_book": {
|
64
77
|
"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}",
|
@@ -67,6 +80,14 @@ http_interactions:
|
|
67
80
|
"self": {
|
68
81
|
"href": "https://horizon-testnet.stellar.org/"
|
69
82
|
},
|
83
|
+
"strict_receive_paths": {
|
84
|
+
"href": "https://horizon-testnet.stellar.org/paths/strict-receive{?source_assets,source_account,destination_account,destination_asset_type,destination_asset_issuer,destination_asset_code,destination_amount}",
|
85
|
+
"templated": true
|
86
|
+
},
|
87
|
+
"strict_send_paths": {
|
88
|
+
"href": "https://horizon-testnet.stellar.org/paths/strict-send{?destination_account,destination_assets,source_asset_type,source_asset_issuer,source_asset_code,source_amount}",
|
89
|
+
"templated": true
|
90
|
+
},
|
70
91
|
"transaction": {
|
71
92
|
"href": "https://horizon-testnet.stellar.org/transactions/{hash}",
|
72
93
|
"templated": true
|
@@ -76,16 +97,18 @@ http_interactions:
|
|
76
97
|
"templated": true
|
77
98
|
}
|
78
99
|
},
|
79
|
-
"horizon_version": "0.
|
80
|
-
"core_version": "stellar-core
|
81
|
-
"
|
100
|
+
"horizon_version": "1.0.0-948d8d1221abd4f15cac2d3a9eb44b31633cd3b9",
|
101
|
+
"core_version": "stellar-core 12.4.0 (c0136139802ac1a1ac8899424e7888fa9366414e)",
|
102
|
+
"ingest_latest_ledger": 705782,
|
103
|
+
"history_latest_ledger": 705782,
|
82
104
|
"history_elder_ledger": 1,
|
83
|
-
"core_latest_ledger":
|
105
|
+
"core_latest_ledger": 705783,
|
84
106
|
"network_passphrase": "Test SDF Network ; September 2015",
|
85
|
-
"
|
107
|
+
"current_protocol_version": 12,
|
108
|
+
"core_supported_protocol_version": 12
|
86
109
|
}
|
87
110
|
http_version:
|
88
|
-
recorded_at: Fri,
|
111
|
+
recorded_at: Fri, 13 Mar 2020 22:04:58 GMT
|
89
112
|
- request:
|
90
113
|
method: get
|
91
114
|
uri: https://horizon-testnet.stellar.org/accounts/[source_address]
|
@@ -94,9 +117,13 @@ http_interactions:
|
|
94
117
|
string: ''
|
95
118
|
headers:
|
96
119
|
User-Agent:
|
97
|
-
- Faraday v0.
|
120
|
+
- Faraday v0.17.3
|
98
121
|
Accept:
|
99
122
|
- application/hal+json,application/problem+json,application/json
|
123
|
+
X-Client-Name:
|
124
|
+
- ruby-stellar-sdk
|
125
|
+
X-Client-Version:
|
126
|
+
- 0.7.0
|
100
127
|
response:
|
101
128
|
status:
|
102
129
|
code: 200
|
@@ -109,17 +136,19 @@ http_interactions:
|
|
109
136
|
Content-Type:
|
110
137
|
- application/hal+json; charset=utf-8
|
111
138
|
Date:
|
112
|
-
- Fri,
|
139
|
+
- Fri, 13 Mar 2020 22:04:58 GMT
|
140
|
+
Latest-Ledger:
|
141
|
+
- '705783'
|
113
142
|
Vary:
|
114
143
|
- Origin
|
115
144
|
X-Ratelimit-Limit:
|
116
|
-
- '
|
145
|
+
- '101'
|
117
146
|
X-Ratelimit-Remaining:
|
118
|
-
- '
|
147
|
+
- '100'
|
119
148
|
X-Ratelimit-Reset:
|
120
|
-
- '
|
149
|
+
- '1'
|
121
150
|
Content-Length:
|
122
|
-
- '
|
151
|
+
- '2386'
|
123
152
|
Connection:
|
124
153
|
- keep-alive
|
125
154
|
body:
|
@@ -160,10 +189,10 @@ http_interactions:
|
|
160
189
|
}
|
161
190
|
},
|
162
191
|
"id": "[source_address]",
|
163
|
-
"paging_token": "",
|
164
192
|
"account_id": "[source_address]",
|
165
|
-
"sequence": "
|
193
|
+
"sequence": "3030756557324292",
|
166
194
|
"subentry_count": 0,
|
195
|
+
"last_modified_ledger": 705778,
|
167
196
|
"thresholds": {
|
168
197
|
"low_threshold": 0,
|
169
198
|
"med_threshold": 0,
|
@@ -171,11 +200,12 @@ http_interactions:
|
|
171
200
|
},
|
172
201
|
"flags": {
|
173
202
|
"auth_required": false,
|
174
|
-
"auth_revocable": false
|
203
|
+
"auth_revocable": false,
|
204
|
+
"auth_immutable": false
|
175
205
|
},
|
176
206
|
"balances": [
|
177
207
|
{
|
178
|
-
"balance": "
|
208
|
+
"balance": "9747.4499600",
|
179
209
|
"buying_liabilities": "0.0000000",
|
180
210
|
"selling_liabilities": "0.0000000",
|
181
211
|
"asset_type": "native"
|
@@ -183,27 +213,31 @@ http_interactions:
|
|
183
213
|
],
|
184
214
|
"signers": [
|
185
215
|
{
|
186
|
-
"public_key": "[source_address]",
|
187
216
|
"weight": 1,
|
188
217
|
"key": "[source_address]",
|
189
218
|
"type": "ed25519_public_key"
|
190
219
|
}
|
191
220
|
],
|
192
|
-
"data": {}
|
221
|
+
"data": {},
|
222
|
+
"paging_token": "[source_address]"
|
193
223
|
}
|
194
224
|
http_version:
|
195
|
-
recorded_at: Fri,
|
225
|
+
recorded_at: Fri, 13 Mar 2020 22:04:58 GMT
|
196
226
|
- request:
|
197
227
|
method: post
|
198
228
|
uri: https://horizon-testnet.stellar.org/transactions
|
199
229
|
body:
|
200
230
|
encoding: UTF-8
|
201
|
-
string: tx=
|
231
|
+
string: tx=AAAAAJA8Jibp68sQkog4sikMusVOeuhVzZVx9r9Vrb0oBNloAAAAZAAKxHUAAAAFAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAA%2F6A%2FxEN%2FdkGyiPddIfkV5rplKJBVbqklTzCa9TQoqwwAAAAAAJiWgAAAAAAAAAABKATZaAAAAEAWAqp%2FRIdl%2Fkm24l2evhuNJnIgToaNfntXVM6IfptmGoNUoVXc4akNS2WG2rDOT%2F0RPnuMvnhl1zKW4LmDmrkN
|
202
232
|
headers:
|
203
233
|
User-Agent:
|
204
|
-
- Faraday v0.
|
234
|
+
- Faraday v0.17.3
|
205
235
|
Accept:
|
206
236
|
- application/hal+json,application/problem+json,application/json
|
237
|
+
X-Client-Name:
|
238
|
+
- ruby-stellar-sdk
|
239
|
+
X-Client-Version:
|
240
|
+
- 0.7.0
|
207
241
|
Content-Type:
|
208
242
|
- application/x-www-form-urlencoded
|
209
243
|
response:
|
@@ -218,15 +252,15 @@ http_interactions:
|
|
218
252
|
Content-Type:
|
219
253
|
- application/hal+json; charset=utf-8
|
220
254
|
Date:
|
221
|
-
- Fri,
|
255
|
+
- Fri, 13 Mar 2020 22:05:04 GMT
|
222
256
|
Vary:
|
223
257
|
- Origin
|
224
258
|
X-Ratelimit-Limit:
|
225
|
-
- '
|
259
|
+
- '101'
|
226
260
|
X-Ratelimit-Remaining:
|
227
|
-
- '
|
261
|
+
- '100'
|
228
262
|
X-Ratelimit-Reset:
|
229
|
-
- '
|
263
|
+
- '1'
|
230
264
|
Content-Length:
|
231
265
|
- '1307'
|
232
266
|
Connection:
|
@@ -237,17 +271,17 @@ http_interactions:
|
|
237
271
|
{
|
238
272
|
"_links": {
|
239
273
|
"transaction": {
|
240
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
274
|
+
"href": "https://horizon-testnet.stellar.org/transactions/2b8ab52552bb81882f9f7b99f838f76cf0a8728d1b9ab9034a1e3a85d8cac23e"
|
241
275
|
}
|
242
276
|
},
|
243
|
-
"hash": "
|
244
|
-
"ledger":
|
245
|
-
"envelope_xdr": "
|
277
|
+
"hash": "2b8ab52552bb81882f9f7b99f838f76cf0a8728d1b9ab9034a1e3a85d8cac23e",
|
278
|
+
"ledger": 705784,
|
279
|
+
"envelope_xdr": "AAAAAJA8Jibp68sQkog4sikMusVOeuhVzZVx9r9Vrb0oBNloAAAAZAAKxHUAAAAFAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAA/6A/xEN/dkGyiPddIfkV5rplKJBVbqklTzCa9TQoqwwAAAAAAJiWgAAAAAAAAAABKATZaAAAAEAWAqp/RIdl/km24l2evhuNJnIgToaNfntXVM6IfptmGoNUoVXc4akNS2WG2rDOT/0RPnuMvnhl1zKW4LmDmrkN",
|
246
280
|
"result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA=",
|
247
|
-
"result_meta_xdr": "
|
281
|
+
"result_meta_xdr": "AAAAAQAAAAIAAAADAArE+AAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAWse7TrAAKxHUAAAAEAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAArE+AAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAWse7TrAAKxHUAAAAFAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAMACsT4AAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABax7tOsAArEdQAAAAUAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsT4AAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABaxVj0sAArEdQAAAAUAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAACsT4AAAAAAAAAAD/oD/EQ392QbKI910h+RXmumUokFVuqSVPMJr1NCirDAAAAAAAmJaAAArE+AAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="
|
248
282
|
}
|
249
283
|
http_version:
|
250
|
-
recorded_at: Fri,
|
284
|
+
recorded_at: Fri, 13 Mar 2020 22:05:04 GMT
|
251
285
|
- request:
|
252
286
|
method: get
|
253
287
|
uri: https://horizon-testnet.stellar.org/accounts/[source_address]
|
@@ -256,9 +290,13 @@ http_interactions:
|
|
256
290
|
string: ''
|
257
291
|
headers:
|
258
292
|
User-Agent:
|
259
|
-
- Faraday v0.
|
293
|
+
- Faraday v0.17.3
|
260
294
|
Accept:
|
261
295
|
- application/hal+json,application/problem+json,application/json
|
296
|
+
X-Client-Name:
|
297
|
+
- ruby-stellar-sdk
|
298
|
+
X-Client-Version:
|
299
|
+
- 0.7.0
|
262
300
|
response:
|
263
301
|
status:
|
264
302
|
code: 200
|
@@ -271,17 +309,19 @@ http_interactions:
|
|
271
309
|
Content-Type:
|
272
310
|
- application/hal+json; charset=utf-8
|
273
311
|
Date:
|
274
|
-
- Fri,
|
312
|
+
- Fri, 13 Mar 2020 22:05:04 GMT
|
313
|
+
Latest-Ledger:
|
314
|
+
- '705784'
|
275
315
|
Vary:
|
276
316
|
- Origin
|
277
317
|
X-Ratelimit-Limit:
|
278
|
-
- '
|
318
|
+
- '101'
|
279
319
|
X-Ratelimit-Remaining:
|
280
|
-
- '
|
320
|
+
- '100'
|
281
321
|
X-Ratelimit-Reset:
|
282
|
-
- '
|
322
|
+
- '1'
|
283
323
|
Content-Length:
|
284
|
-
- '
|
324
|
+
- '2386'
|
285
325
|
Connection:
|
286
326
|
- keep-alive
|
287
327
|
body:
|
@@ -322,10 +362,10 @@ http_interactions:
|
|
322
362
|
}
|
323
363
|
},
|
324
364
|
"id": "[source_address]",
|
325
|
-
"paging_token": "",
|
326
365
|
"account_id": "[source_address]",
|
327
|
-
"sequence": "
|
366
|
+
"sequence": "3030756557324293",
|
328
367
|
"subentry_count": 0,
|
368
|
+
"last_modified_ledger": 705784,
|
329
369
|
"thresholds": {
|
330
370
|
"low_threshold": 0,
|
331
371
|
"med_threshold": 0,
|
@@ -333,11 +373,12 @@ http_interactions:
|
|
333
373
|
},
|
334
374
|
"flags": {
|
335
375
|
"auth_required": false,
|
336
|
-
"auth_revocable": false
|
376
|
+
"auth_revocable": false,
|
377
|
+
"auth_immutable": false
|
337
378
|
},
|
338
379
|
"balances": [
|
339
380
|
{
|
340
|
-
"balance": "
|
381
|
+
"balance": "9746.4499500",
|
341
382
|
"buying_liabilities": "0.0000000",
|
342
383
|
"selling_liabilities": "0.0000000",
|
343
384
|
"asset_type": "native"
|
@@ -345,27 +386,31 @@ http_interactions:
|
|
345
386
|
],
|
346
387
|
"signers": [
|
347
388
|
{
|
348
|
-
"public_key": "[source_address]",
|
349
389
|
"weight": 1,
|
350
390
|
"key": "[source_address]",
|
351
391
|
"type": "ed25519_public_key"
|
352
392
|
}
|
353
393
|
],
|
354
|
-
"data": {}
|
394
|
+
"data": {},
|
395
|
+
"paging_token": "[source_address]"
|
355
396
|
}
|
356
397
|
http_version:
|
357
|
-
recorded_at: Fri,
|
398
|
+
recorded_at: Fri, 13 Mar 2020 22:05:04 GMT
|
358
399
|
- request:
|
359
400
|
method: post
|
360
401
|
uri: https://horizon-testnet.stellar.org/transactions
|
361
402
|
body:
|
362
403
|
encoding: UTF-8
|
363
|
-
string: tx=
|
404
|
+
string: tx=AAAAAJA8Jibp68sQkog4sikMusVOeuhVzZVx9r9Vrb0oBNloAAAAZAAKxHUAAAAGAAAAAAAAAAAAAAABAAAAAQAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa%2FVa29KATZaAAAAAEAAAAA%2F6A%2FxEN%2FdkGyiPddIfkV5rplKJBVbqklTzCa9TQoqwwAAAAAAAAAAABT7GAAAAAAAAAAASgE2WgAAABAj6xw0Glqqxvn3PZr9T39Al4tpilFnHRXOXmZHi0TJZjkO%2FzIvi69U4V5JIwPDSTvjEg7S6wD6%2BPry6mHMYGKDQ%3D%3D
|
364
405
|
headers:
|
365
406
|
User-Agent:
|
366
|
-
- Faraday v0.
|
407
|
+
- Faraday v0.17.3
|
367
408
|
Accept:
|
368
409
|
- application/hal+json,application/problem+json,application/json
|
410
|
+
X-Client-Name:
|
411
|
+
- ruby-stellar-sdk
|
412
|
+
X-Client-Version:
|
413
|
+
- 0.7.0
|
369
414
|
Content-Type:
|
370
415
|
- application/x-www-form-urlencoded
|
371
416
|
response:
|
@@ -380,15 +425,15 @@ http_interactions:
|
|
380
425
|
Content-Type:
|
381
426
|
- application/hal+json; charset=utf-8
|
382
427
|
Date:
|
383
|
-
- Fri,
|
428
|
+
- Fri, 13 Mar 2020 22:05:09 GMT
|
384
429
|
Vary:
|
385
430
|
- Origin
|
386
431
|
X-Ratelimit-Limit:
|
387
|
-
- '
|
432
|
+
- '101'
|
388
433
|
X-Ratelimit-Remaining:
|
389
|
-
- '
|
434
|
+
- '100'
|
390
435
|
X-Ratelimit-Reset:
|
391
|
-
- '
|
436
|
+
- '1'
|
392
437
|
Content-Length:
|
393
438
|
- '1491'
|
394
439
|
Connection:
|
@@ -399,28 +444,32 @@ http_interactions:
|
|
399
444
|
{
|
400
445
|
"_links": {
|
401
446
|
"transaction": {
|
402
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
447
|
+
"href": "https://horizon-testnet.stellar.org/transactions/0b00554e45ab71d5ef897ea2f9d2caa4cb49ed7c42b0a59780234e0abdb6d0fe"
|
403
448
|
}
|
404
449
|
},
|
405
|
-
"hash": "
|
406
|
-
"ledger":
|
407
|
-
"envelope_xdr": "
|
450
|
+
"hash": "0b00554e45ab71d5ef897ea2f9d2caa4cb49ed7c42b0a59780234e0abdb6d0fe",
|
451
|
+
"ledger": 705785,
|
452
|
+
"envelope_xdr": "AAAAAJA8Jibp68sQkog4sikMusVOeuhVzZVx9r9Vrb0oBNloAAAAZAAKxHUAAAAGAAAAAAAAAAAAAAABAAAAAQAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAAAEAAAAA/6A/xEN/dkGyiPddIfkV5rplKJBVbqklTzCa9TQoqwwAAAAAAAAAAABT7GAAAAAAAAAAASgE2WgAAABAj6xw0Glqqxvn3PZr9T39Al4tpilFnHRXOXmZHi0TJZjkO/zIvi69U4V5JIwPDSTvjEg7S6wD6+Pry6mHMYGKDQ==",
|
408
453
|
"result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
|
409
|
-
"result_meta_xdr": "
|
454
|
+
"result_meta_xdr": "AAAAAQAAAAIAAAADAArE+QAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAWsVY8yAAKxHUAAAAFAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAArE+QAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAWsVY8yAAKxHUAAAAGAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABAAAAAMACsT4AAAAAAAAAAD/oD/EQ392QbKI910h+RXmumUokFVuqSVPMJr1NCirDAAAAAAAmJaAAArE+AAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsT5AAAAAAAAAAD/oD/EQ392QbKI910h+RXmumUokFVuqSVPMJr1NCirDAAAAAAA7ILgAArE+AAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAMACsT5AAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABaxVjzIAArEdQAAAAYAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsT5AAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABaxAlBoAArEdQAAAAYAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="
|
410
455
|
}
|
411
456
|
http_version:
|
412
|
-
recorded_at: Fri,
|
457
|
+
recorded_at: Fri, 13 Mar 2020 22:05:09 GMT
|
413
458
|
- request:
|
414
459
|
method: get
|
415
|
-
uri: https://horizon-testnet.stellar.org/transactions/
|
460
|
+
uri: https://horizon-testnet.stellar.org/transactions/0b00554e45ab71d5ef897ea2f9d2caa4cb49ed7c42b0a59780234e0abdb6d0fe
|
416
461
|
body:
|
417
462
|
encoding: US-ASCII
|
418
463
|
string: ''
|
419
464
|
headers:
|
420
465
|
User-Agent:
|
421
|
-
- Faraday v0.
|
466
|
+
- Faraday v0.17.3
|
422
467
|
Accept:
|
423
468
|
- application/hal+json,application/problem+json,application/json
|
469
|
+
X-Client-Name:
|
470
|
+
- ruby-stellar-sdk
|
471
|
+
X-Client-Version:
|
472
|
+
- 0.7.0
|
424
473
|
response:
|
425
474
|
status:
|
426
475
|
code: 200
|
@@ -433,17 +482,17 @@ http_interactions:
|
|
433
482
|
Content-Type:
|
434
483
|
- application/hal+json; charset=utf-8
|
435
484
|
Date:
|
436
|
-
- Fri,
|
485
|
+
- Fri, 13 Mar 2020 22:05:09 GMT
|
437
486
|
Vary:
|
438
487
|
- Origin
|
439
488
|
X-Ratelimit-Limit:
|
440
|
-
- '
|
489
|
+
- '101'
|
441
490
|
X-Ratelimit-Remaining:
|
442
|
-
- '
|
491
|
+
- '100'
|
443
492
|
X-Ratelimit-Reset:
|
444
|
-
- '
|
493
|
+
- '1'
|
445
494
|
Content-Length:
|
446
|
-
- '
|
495
|
+
- '3193'
|
447
496
|
Connection:
|
448
497
|
- keep-alive
|
449
498
|
body:
|
@@ -452,60 +501,66 @@ http_interactions:
|
|
452
501
|
{
|
453
502
|
"_links": {
|
454
503
|
"self": {
|
455
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
504
|
+
"href": "https://horizon-testnet.stellar.org/transactions/0b00554e45ab71d5ef897ea2f9d2caa4cb49ed7c42b0a59780234e0abdb6d0fe"
|
456
505
|
},
|
457
506
|
"account": {
|
458
507
|
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
|
459
508
|
},
|
460
509
|
"ledger": {
|
461
|
-
"href": "https://horizon-testnet.stellar.org/ledgers/
|
510
|
+
"href": "https://horizon-testnet.stellar.org/ledgers/705785"
|
462
511
|
},
|
463
512
|
"operations": {
|
464
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
513
|
+
"href": "https://horizon-testnet.stellar.org/transactions/0b00554e45ab71d5ef897ea2f9d2caa4cb49ed7c42b0a59780234e0abdb6d0fe/operations{?cursor,limit,order}",
|
465
514
|
"templated": true
|
466
515
|
},
|
467
516
|
"effects": {
|
468
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
517
|
+
"href": "https://horizon-testnet.stellar.org/transactions/0b00554e45ab71d5ef897ea2f9d2caa4cb49ed7c42b0a59780234e0abdb6d0fe/effects{?cursor,limit,order}",
|
469
518
|
"templated": true
|
470
519
|
},
|
471
520
|
"precedes": {
|
472
|
-
"href": "https://horizon-testnet.stellar.org/transactions?order=asc\u0026cursor=
|
521
|
+
"href": "https://horizon-testnet.stellar.org/transactions?order=asc\u0026cursor=3031323493027840"
|
473
522
|
},
|
474
523
|
"succeeds": {
|
475
|
-
"href": "https://horizon-testnet.stellar.org/transactions?order=desc\u0026cursor=
|
524
|
+
"href": "https://horizon-testnet.stellar.org/transactions?order=desc\u0026cursor=3031323493027840"
|
476
525
|
}
|
477
526
|
},
|
478
|
-
"id": "
|
479
|
-
"paging_token": "
|
480
|
-
"
|
481
|
-
"
|
482
|
-
"
|
527
|
+
"id": "0b00554e45ab71d5ef897ea2f9d2caa4cb49ed7c42b0a59780234e0abdb6d0fe",
|
528
|
+
"paging_token": "3031323493027840",
|
529
|
+
"successful": true,
|
530
|
+
"hash": "0b00554e45ab71d5ef897ea2f9d2caa4cb49ed7c42b0a59780234e0abdb6d0fe",
|
531
|
+
"ledger": 705785,
|
532
|
+
"created_at": "2020-03-13T22:05:07Z",
|
483
533
|
"source_account": "[source_address]",
|
484
|
-
"source_account_sequence": "
|
485
|
-
"
|
534
|
+
"source_account_sequence": "3030756557324294",
|
535
|
+
"fee_charged": 100,
|
536
|
+
"max_fee": 100,
|
486
537
|
"operation_count": 1,
|
487
|
-
"envelope_xdr": "
|
538
|
+
"envelope_xdr": "AAAAAJA8Jibp68sQkog4sikMusVOeuhVzZVx9r9Vrb0oBNloAAAAZAAKxHUAAAAGAAAAAAAAAAAAAAABAAAAAQAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAAAEAAAAA/6A/xEN/dkGyiPddIfkV5rplKJBVbqklTzCa9TQoqwwAAAAAAAAAAABT7GAAAAAAAAAAASgE2WgAAABAj6xw0Glqqxvn3PZr9T39Al4tpilFnHRXOXmZHi0TJZjkO/zIvi69U4V5JIwPDSTvjEg7S6wD6+Pry6mHMYGKDQ==",
|
488
539
|
"result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
|
489
|
-
"result_meta_xdr": "
|
490
|
-
"fee_meta_xdr": "
|
540
|
+
"result_meta_xdr": "AAAAAQAAAAIAAAADAArE+QAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAWsVY8yAAKxHUAAAAFAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAArE+QAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAWsVY8yAAKxHUAAAAGAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABAAAAAMACsT4AAAAAAAAAAD/oD/EQ392QbKI910h+RXmumUokFVuqSVPMJr1NCirDAAAAAAAmJaAAArE+AAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsT5AAAAAAAAAAD/oD/EQ392QbKI910h+RXmumUokFVuqSVPMJr1NCirDAAAAAAA7ILgAArE+AAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAMACsT5AAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABaxVjzIAArEdQAAAAYAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsT5AAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABaxAlBoAArEdQAAAAYAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
|
541
|
+
"fee_meta_xdr": "AAAAAgAAAAMACsT4AAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABaxVj0sAArEdQAAAAUAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsT5AAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABaxVjzIAArEdQAAAAUAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
|
491
542
|
"memo_type": "none",
|
492
543
|
"signatures": [
|
493
|
-
"
|
544
|
+
"j6xw0Glqqxvn3PZr9T39Al4tpilFnHRXOXmZHi0TJZjkO/zIvi69U4V5JIwPDSTvjEg7S6wD6+Pry6mHMYGKDQ=="
|
494
545
|
]
|
495
546
|
}
|
496
547
|
http_version:
|
497
|
-
recorded_at: Fri,
|
548
|
+
recorded_at: Fri, 13 Mar 2020 22:05:09 GMT
|
498
549
|
- request:
|
499
550
|
method: get
|
500
|
-
uri: https://horizon-testnet.stellar.org/transactions/
|
551
|
+
uri: https://horizon-testnet.stellar.org/transactions/0b00554e45ab71d5ef897ea2f9d2caa4cb49ed7c42b0a59780234e0abdb6d0fe/operations
|
501
552
|
body:
|
502
553
|
encoding: US-ASCII
|
503
554
|
string: ''
|
504
555
|
headers:
|
505
556
|
User-Agent:
|
506
|
-
- Faraday v0.
|
557
|
+
- Faraday v0.17.3
|
507
558
|
Accept:
|
508
559
|
- application/hal+json,application/problem+json,application/json
|
560
|
+
X-Client-Name:
|
561
|
+
- ruby-stellar-sdk
|
562
|
+
X-Client-Version:
|
563
|
+
- 0.7.0
|
509
564
|
response:
|
510
565
|
status:
|
511
566
|
code: 200
|
@@ -518,17 +573,17 @@ http_interactions:
|
|
518
573
|
Content-Type:
|
519
574
|
- application/hal+json; charset=utf-8
|
520
575
|
Date:
|
521
|
-
- Fri,
|
576
|
+
- Fri, 13 Mar 2020 22:05:09 GMT
|
522
577
|
Vary:
|
523
578
|
- Origin
|
524
579
|
X-Ratelimit-Limit:
|
525
|
-
- '
|
580
|
+
- '101'
|
526
581
|
X-Ratelimit-Remaining:
|
527
|
-
- '
|
582
|
+
- '100'
|
528
583
|
X-Ratelimit-Reset:
|
529
|
-
- '
|
584
|
+
- '1'
|
530
585
|
Content-Length:
|
531
|
-
- '
|
586
|
+
- '2057'
|
532
587
|
Connection:
|
533
588
|
- keep-alive
|
534
589
|
body:
|
@@ -537,13 +592,13 @@ http_interactions:
|
|
537
592
|
{
|
538
593
|
"_links": {
|
539
594
|
"self": {
|
540
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
595
|
+
"href": "https://horizon-testnet.stellar.org/transactions/0b00554e45ab71d5ef897ea2f9d2caa4cb49ed7c42b0a59780234e0abdb6d0fe/operations?cursor=\u0026limit=10\u0026order=asc"
|
541
596
|
},
|
542
597
|
"next": {
|
543
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
598
|
+
"href": "https://horizon-testnet.stellar.org/transactions/0b00554e45ab71d5ef897ea2f9d2caa4cb49ed7c42b0a59780234e0abdb6d0fe/operations?cursor=3031323493027841\u0026limit=10\u0026order=asc"
|
544
599
|
},
|
545
600
|
"prev": {
|
546
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
601
|
+
"href": "https://horizon-testnet.stellar.org/transactions/0b00554e45ab71d5ef897ea2f9d2caa4cb49ed7c42b0a59780234e0abdb6d0fe/operations?cursor=3031323493027841\u0026limit=10\u0026order=desc"
|
547
602
|
}
|
548
603
|
},
|
549
604
|
"_embedded": {
|
@@ -551,36 +606,37 @@ http_interactions:
|
|
551
606
|
{
|
552
607
|
"_links": {
|
553
608
|
"self": {
|
554
|
-
"href": "https://horizon-testnet.stellar.org/operations/
|
609
|
+
"href": "https://horizon-testnet.stellar.org/operations/3031323493027841"
|
555
610
|
},
|
556
611
|
"transaction": {
|
557
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
612
|
+
"href": "https://horizon-testnet.stellar.org/transactions/0b00554e45ab71d5ef897ea2f9d2caa4cb49ed7c42b0a59780234e0abdb6d0fe"
|
558
613
|
},
|
559
614
|
"effects": {
|
560
|
-
"href": "https://horizon-testnet.stellar.org/operations/
|
615
|
+
"href": "https://horizon-testnet.stellar.org/operations/3031323493027841/effects"
|
561
616
|
},
|
562
617
|
"succeeds": {
|
563
|
-
"href": "https://horizon-testnet.stellar.org/effects?order=desc\u0026cursor=
|
618
|
+
"href": "https://horizon-testnet.stellar.org/effects?order=desc\u0026cursor=3031323493027841"
|
564
619
|
},
|
565
620
|
"precedes": {
|
566
|
-
"href": "https://horizon-testnet.stellar.org/effects?order=asc\u0026cursor=
|
621
|
+
"href": "https://horizon-testnet.stellar.org/effects?order=asc\u0026cursor=3031323493027841"
|
567
622
|
}
|
568
623
|
},
|
569
|
-
"id": "
|
570
|
-
"paging_token": "
|
624
|
+
"id": "3031323493027841",
|
625
|
+
"paging_token": "3031323493027841",
|
626
|
+
"transaction_successful": true,
|
571
627
|
"source_account": "[source_address]",
|
572
628
|
"type": "payment",
|
573
629
|
"type_i": 1,
|
574
|
-
"created_at": "
|
575
|
-
"transaction_hash": "
|
630
|
+
"created_at": "2020-03-13T22:05:07Z",
|
631
|
+
"transaction_hash": "0b00554e45ab71d5ef897ea2f9d2caa4cb49ed7c42b0a59780234e0abdb6d0fe",
|
576
632
|
"asset_type": "native",
|
577
633
|
"from": "[source_address]",
|
578
|
-
"to": "
|
634
|
+
"to": "GD72AP6EIN7XMQNSRD3V2IPZCXTLUZJISBKW5KJFJ4YJV5JUFCVQYQQX",
|
579
635
|
"amount": "0.5500000"
|
580
636
|
}
|
581
637
|
]
|
582
638
|
}
|
583
639
|
}
|
584
640
|
http_version:
|
585
|
-
recorded_at: Fri,
|
641
|
+
recorded_at: Fri, 13 Mar 2020 22:05:09 GMT
|
586
642
|
recorded_with: VCR 3.0.3
|