stellar-sdk 0.5.0 → 0.9.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -2
- data/{LICENSE.txt → LICENSE} +0 -0
- data/README.md +17 -11
- data/lib/stellar-sdk.rb +3 -4
- data/lib/stellar/account.rb +16 -18
- data/lib/stellar/amount.rb +9 -13
- data/lib/stellar/client.rb +217 -91
- data/lib/stellar/horizon/problem.rb +14 -16
- data/lib/stellar/sep10.rb +347 -0
- data/lib/stellar/transaction_page.rb +4 -6
- data/lib/stellar/version.rb +1 -1
- metadata +17 -207
- data/.gitignore +0 -16
- data/.travis.yml +0 -13
- data/.yardopts +0 -7
- data/CONTRIBUTING.md +0 -48
- data/Gemfile +0 -14
- data/Guardfile +0 -5
- data/Rakefile +0 -3
- data/examples/01_get_funded.rb +0 -37
- data/examples/02_payment.rb +0 -15
- data/examples/03_transaction_history.rb +0 -21
- data/examples/04_setting_trust.rb +0 -1
- data/examples/05_fiat_payment.rb +0 -13
- data/examples/06_fund_testnet_friendbot.rb +0 -15
- data/ruby-stellar-sdk.gemspec +0 -36
- data/spec/config.yml.sample +0 -7
- data/spec/fixtures/vcr_cassettes/Stellar_Account/_lookup/should_handle_404_request_when_performing_federation_lookup.yml +0 -133
- data/spec/fixtures/vcr_cassettes/Stellar_Account/_lookup/should_handle_domains_that_are_not_federation_servers.yml +0 -44
- data/spec/fixtures/vcr_cassettes/Stellar_Account/_lookup/should_peforms_federation_lookup.yml +0 -85
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_account_info/returns_the_current_details_for_the_account.yml +0 -190
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_account_merge/merges_source_account_into_destination.yml +0 -714
- 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
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_create_account/creates_the_account.yml +0 -323
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/alphanum12_asset/sends_a_alphanum12_asset_to_the_destination.yml +0 -737
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/alphanum4_asset/sends_a_alphanum4_asset_to_the_destination.yml +0 -737
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/native_asset/sends_a_native_payment_to_the_account.yml +0 -469
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/account_transactions/accepts_a_cursor_to_return_less_data.yml +0 -94
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/account_transactions/returns_a_list_of_transaction_for_an_account.yml +0 -94
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/all_transactions/accepts_a_cursor_to_return_less_data.yml +0 -94
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/all_transactions/returns_a_list_of_transactions.yml +0 -94
- data/spec/lib/stellar/account_spec.rb +0 -59
- data/spec/lib/stellar/amount_spec.rb +0 -70
- data/spec/lib/stellar/client_spec.rb +0 -302
- data/spec/spec_helper.rb +0 -14
- data/spec/support/config.rb +0 -3
- data/spec/support/vcr.rb +0 -10
- data/tasks/rspec.rake +0 -6
- data/tasks/travis.rake +0 -1
@@ -1,737 +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.1
|
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
|
-
- Thu, 17 May 2018 07:29:40 GMT
|
21
|
-
Content-Type:
|
22
|
-
- application/hal+json; charset=utf-8
|
23
|
-
Content-Length:
|
24
|
-
- '1545'
|
25
|
-
Connection:
|
26
|
-
- keep-alive
|
27
|
-
Set-Cookie:
|
28
|
-
- __cfduid=de9806ed4157da084e5db0fb0c1781c521526542179; expires=Fri, 17-May-19
|
29
|
-
07:29:39 GMT; path=/; domain=.stellar.org; HttpOnly
|
30
|
-
Content-Disposition:
|
31
|
-
- inline
|
32
|
-
Vary:
|
33
|
-
- Origin
|
34
|
-
X-Ratelimit-Limit:
|
35
|
-
- '17200'
|
36
|
-
X-Ratelimit-Remaining:
|
37
|
-
- '17197'
|
38
|
-
X-Ratelimit-Reset:
|
39
|
-
- '3535'
|
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
|
-
- 41c45fcdce90a9ba-SIN
|
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": "snapshot-cfa216c",
|
87
|
-
"core_version": "stellar-core 9.2.0rc6 (b0923f153b86d394a83b2a619db6b23f07ed0700)",
|
88
|
-
"history_latest_ledger": 9007796,
|
89
|
-
"history_elder_ledger": 1,
|
90
|
-
"core_latest_ledger": 9007796,
|
91
|
-
"network_passphrase": "Test SDF Network ; September 2015",
|
92
|
-
"protocol_version": 9
|
93
|
-
}
|
94
|
-
http_version:
|
95
|
-
recorded_at: Thu, 17 May 2018 07:29:40 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.1
|
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
|
-
- Thu, 17 May 2018 07:29:43 GMT
|
114
|
-
Content-Type:
|
115
|
-
- application/hal+json; charset=utf-8
|
116
|
-
Content-Length:
|
117
|
-
- '2266'
|
118
|
-
Connection:
|
119
|
-
- keep-alive
|
120
|
-
Set-Cookie:
|
121
|
-
- __cfduid=de80222ff246553fe76c3c80002fc6fc31526542182; expires=Fri, 17-May-19
|
122
|
-
07:29:42 GMT; path=/; domain=.stellar.org; HttpOnly
|
123
|
-
Content-Disposition:
|
124
|
-
- inline
|
125
|
-
Vary:
|
126
|
-
- Origin
|
127
|
-
X-Ratelimit-Limit:
|
128
|
-
- '17200'
|
129
|
-
X-Ratelimit-Remaining:
|
130
|
-
- '17197'
|
131
|
-
X-Ratelimit-Reset:
|
132
|
-
- '3534'
|
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
|
-
- 41c45fe0ac8170bc-SIN
|
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": "38688184934072320",
|
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": "10000.0000000",
|
193
|
-
"asset_type": "native"
|
194
|
-
}
|
195
|
-
],
|
196
|
-
"signers": [
|
197
|
-
{
|
198
|
-
"public_key": "[source_address]",
|
199
|
-
"weight": 1,
|
200
|
-
"key": "[source_address]",
|
201
|
-
"type": "ed25519_public_key"
|
202
|
-
}
|
203
|
-
],
|
204
|
-
"data": {}
|
205
|
-
}
|
206
|
-
http_version:
|
207
|
-
recorded_at: Thu, 17 May 2018 07:29:43 GMT
|
208
|
-
- request:
|
209
|
-
method: post
|
210
|
-
uri: https://horizon-testnet.stellar.org/transactions
|
211
|
-
body:
|
212
|
-
encoding: UTF-8
|
213
|
-
string: tx=AAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAZACJcrMAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAbCBUd5htFXQJuBbVX9Pni5GzQcs%2FrQcsdnt5HYhsoIUAAAAAATEtAAAAAAAAAAABMluxGQAAAEDqQ9d38ssFTELp0ZIbUUmMVtW2OsFjpYnXw6SiH9o8VYZriIo%2ByDU%2BPiOE1563Ec7kaFP7IOypQdhiYIih6lsI
|
214
|
-
headers:
|
215
|
-
User-Agent:
|
216
|
-
- Faraday v0.15.1
|
217
|
-
Accept:
|
218
|
-
- application/hal+json,application/problem+json,application/json
|
219
|
-
Content-Type:
|
220
|
-
- application/x-www-form-urlencoded
|
221
|
-
response:
|
222
|
-
status:
|
223
|
-
code: 200
|
224
|
-
message: OK
|
225
|
-
headers:
|
226
|
-
Date:
|
227
|
-
- Thu, 17 May 2018 07:29:46 GMT
|
228
|
-
Content-Type:
|
229
|
-
- application/hal+json; charset=utf-8
|
230
|
-
Content-Length:
|
231
|
-
- '1044'
|
232
|
-
Connection:
|
233
|
-
- keep-alive
|
234
|
-
Set-Cookie:
|
235
|
-
- __cfduid=da4e7642ab9950cab5950e02050eb377f1526542185; expires=Fri, 17-May-19
|
236
|
-
07:29:45 GMT; path=/; domain=.stellar.org; HttpOnly
|
237
|
-
Content-Disposition:
|
238
|
-
- inline
|
239
|
-
Vary:
|
240
|
-
- Origin
|
241
|
-
X-Ratelimit-Limit:
|
242
|
-
- '17200'
|
243
|
-
X-Ratelimit-Remaining:
|
244
|
-
- '17196'
|
245
|
-
X-Ratelimit-Reset:
|
246
|
-
- '3531'
|
247
|
-
Expect-Ct:
|
248
|
-
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
249
|
-
Server:
|
250
|
-
- cloudflare
|
251
|
-
Cf-Ray:
|
252
|
-
- 41c45ff10a686fde-SIN
|
253
|
-
body:
|
254
|
-
encoding: ASCII-8BIT
|
255
|
-
string: |-
|
256
|
-
{
|
257
|
-
"_links": {
|
258
|
-
"transaction": {
|
259
|
-
"href": "https://horizon-testnet.stellar.org/transactions/1631fe9b141bb09b457544473e5d51784c0508fa522e7b6c1b60c4ba033927ed"
|
260
|
-
}
|
261
|
-
},
|
262
|
-
"hash": "1631fe9b141bb09b457544473e5d51784c0508fa522e7b6c1b60c4ba033927ed",
|
263
|
-
"ledger": 9007798,
|
264
|
-
"envelope_xdr": "AAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAZACJcrMAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAbCBUd5htFXQJuBbVX9Pni5GzQcs/rQcsdnt5HYhsoIUAAAAAATEtAAAAAAAAAAABMluxGQAAAEDqQ9d38ssFTELp0ZIbUUmMVtW2OsFjpYnXw6SiH9o8VYZriIo+yDU+PiOE1563Ec7kaFP7IOypQdhiYIih6lsI",
|
265
|
-
"result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA=",
|
266
|
-
"result_meta_xdr": "AAAAAAAAAAEAAAADAAAAAACJcrYAAAAAAAAAAGwgVHeYbRV0CbgW1V/T54uRs0HLP60HLHZ7eR2IbKCFAAAAAAExLQAAiXK2AAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAwCJcrYAAAAAAAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAF0h255wAiXKzAAAAAQAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAQCJcrYAAAAAAAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAF0dFupwAiXKzAAAAAQAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAA"
|
267
|
-
}
|
268
|
-
http_version:
|
269
|
-
recorded_at: Thu, 17 May 2018 07:29:46 GMT
|
270
|
-
- request:
|
271
|
-
method: get
|
272
|
-
uri: https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ
|
273
|
-
body:
|
274
|
-
encoding: US-ASCII
|
275
|
-
string: ''
|
276
|
-
headers:
|
277
|
-
User-Agent:
|
278
|
-
- Faraday v0.15.1
|
279
|
-
Accept:
|
280
|
-
- application/hal+json,application/problem+json,application/json
|
281
|
-
response:
|
282
|
-
status:
|
283
|
-
code: 200
|
284
|
-
message: OK
|
285
|
-
headers:
|
286
|
-
Date:
|
287
|
-
- Thu, 17 May 2018 07:29:48 GMT
|
288
|
-
Content-Type:
|
289
|
-
- application/hal+json; charset=utf-8
|
290
|
-
Content-Length:
|
291
|
-
- '2262'
|
292
|
-
Connection:
|
293
|
-
- keep-alive
|
294
|
-
Set-Cookie:
|
295
|
-
- __cfduid=d4d9ff2d6f4c10b118b14f6f806a376221526542187; expires=Fri, 17-May-19
|
296
|
-
07:29:47 GMT; path=/; domain=.stellar.org; HttpOnly
|
297
|
-
Content-Disposition:
|
298
|
-
- inline
|
299
|
-
Vary:
|
300
|
-
- Origin
|
301
|
-
X-Ratelimit-Limit:
|
302
|
-
- '17200'
|
303
|
-
X-Ratelimit-Remaining:
|
304
|
-
- '17195'
|
305
|
-
X-Ratelimit-Reset:
|
306
|
-
- '3529'
|
307
|
-
Expect-Ct:
|
308
|
-
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
309
|
-
Server:
|
310
|
-
- cloudflare
|
311
|
-
Cf-Ray:
|
312
|
-
- 41c45fff2de07050-SIN
|
313
|
-
body:
|
314
|
-
encoding: ASCII-8BIT
|
315
|
-
string: |-
|
316
|
-
{
|
317
|
-
"_links": {
|
318
|
-
"self": {
|
319
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ"
|
320
|
-
},
|
321
|
-
"transactions": {
|
322
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ/transactions{?cursor,limit,order}",
|
323
|
-
"templated": true
|
324
|
-
},
|
325
|
-
"operations": {
|
326
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ/operations{?cursor,limit,order}",
|
327
|
-
"templated": true
|
328
|
-
},
|
329
|
-
"payments": {
|
330
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ/payments{?cursor,limit,order}",
|
331
|
-
"templated": true
|
332
|
-
},
|
333
|
-
"effects": {
|
334
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ/effects{?cursor,limit,order}",
|
335
|
-
"templated": true
|
336
|
-
},
|
337
|
-
"offers": {
|
338
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ/offers{?cursor,limit,order}",
|
339
|
-
"templated": true
|
340
|
-
},
|
341
|
-
"trades": {
|
342
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ/trades{?cursor,limit,order}",
|
343
|
-
"templated": true
|
344
|
-
},
|
345
|
-
"data": {
|
346
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ/data/{key}",
|
347
|
-
"templated": true
|
348
|
-
}
|
349
|
-
},
|
350
|
-
"id": "GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ",
|
351
|
-
"paging_token": "",
|
352
|
-
"account_id": "GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ",
|
353
|
-
"sequence": "38688197818974208",
|
354
|
-
"subentry_count": 0,
|
355
|
-
"thresholds": {
|
356
|
-
"low_threshold": 0,
|
357
|
-
"med_threshold": 0,
|
358
|
-
"high_threshold": 0
|
359
|
-
},
|
360
|
-
"flags": {
|
361
|
-
"auth_required": false,
|
362
|
-
"auth_revocable": false
|
363
|
-
},
|
364
|
-
"balances": [
|
365
|
-
{
|
366
|
-
"balance": "2.0000000",
|
367
|
-
"asset_type": "native"
|
368
|
-
}
|
369
|
-
],
|
370
|
-
"signers": [
|
371
|
-
{
|
372
|
-
"public_key": "GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ",
|
373
|
-
"weight": 1,
|
374
|
-
"key": "GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ",
|
375
|
-
"type": "ed25519_public_key"
|
376
|
-
}
|
377
|
-
],
|
378
|
-
"data": {}
|
379
|
-
}
|
380
|
-
http_version:
|
381
|
-
recorded_at: Thu, 17 May 2018 07:29:48 GMT
|
382
|
-
- request:
|
383
|
-
method: post
|
384
|
-
uri: https://horizon-testnet.stellar.org/transactions
|
385
|
-
body:
|
386
|
-
encoding: UTF-8
|
387
|
-
string: tx=AAAAAGwgVHeYbRV0CbgW1V%2FT54uRs0HLP60HLHZ7eR2IbKCFAAAAZACJcrYAAAABAAAAAAAAAAAAAAABAAAAAAAAAAYAAAABQlRDAAAAAADAaswqs6zkg%2FeOw0XVFSsANzwSOpCSPb5FPUMNMluxGX%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FAAAAAAAAAAGIbKCFAAAAQDdcwjV8hHkBa%2Bn2KrlJ9CFPV3N4ARjBH3utj6Kqn56uOUbqBxYM%2BIjoBVJoXqG%2FdoXih8WhU7PNYJHSslGMpAY%3D
|
388
|
-
headers:
|
389
|
-
User-Agent:
|
390
|
-
- Faraday v0.15.1
|
391
|
-
Accept:
|
392
|
-
- application/hal+json,application/problem+json,application/json
|
393
|
-
Content-Type:
|
394
|
-
- application/x-www-form-urlencoded
|
395
|
-
response:
|
396
|
-
status:
|
397
|
-
code: 200
|
398
|
-
message: OK
|
399
|
-
headers:
|
400
|
-
Date:
|
401
|
-
- Thu, 17 May 2018 07:29:52 GMT
|
402
|
-
Content-Type:
|
403
|
-
- application/hal+json; charset=utf-8
|
404
|
-
Content-Length:
|
405
|
-
- '1088'
|
406
|
-
Connection:
|
407
|
-
- keep-alive
|
408
|
-
Set-Cookie:
|
409
|
-
- __cfduid=da4d6b05cd508f897c34ac6ee83d498fd1526542189; expires=Fri, 17-May-19
|
410
|
-
07:29:49 GMT; path=/; domain=.stellar.org; HttpOnly
|
411
|
-
Content-Disposition:
|
412
|
-
- inline
|
413
|
-
Vary:
|
414
|
-
- Origin
|
415
|
-
X-Ratelimit-Limit:
|
416
|
-
- '17200'
|
417
|
-
X-Ratelimit-Remaining:
|
418
|
-
- '17196'
|
419
|
-
X-Ratelimit-Reset:
|
420
|
-
- '3526'
|
421
|
-
Expect-Ct:
|
422
|
-
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
423
|
-
Server:
|
424
|
-
- cloudflare
|
425
|
-
Cf-Ray:
|
426
|
-
- 41c4600a4f14705c-SIN
|
427
|
-
body:
|
428
|
-
encoding: ASCII-8BIT
|
429
|
-
string: |-
|
430
|
-
{
|
431
|
-
"_links": {
|
432
|
-
"transaction": {
|
433
|
-
"href": "https://horizon-testnet.stellar.org/transactions/756e0e43b9844dd858e505e010e868399a4958b102e8c7714e77fc0405c6425d"
|
434
|
-
}
|
435
|
-
},
|
436
|
-
"hash": "756e0e43b9844dd858e505e010e868399a4958b102e8c7714e77fc0405c6425d",
|
437
|
-
"ledger": 9007799,
|
438
|
-
"envelope_xdr": "AAAAAGwgVHeYbRV0CbgW1V/T54uRs0HLP60HLHZ7eR2IbKCFAAAAZACJcrYAAAABAAAAAAAAAAAAAAABAAAAAAAAAAYAAAABQlRDAAAAAADAaswqs6zkg/eOw0XVFSsANzwSOpCSPb5FPUMNMluxGX//////////AAAAAAAAAAGIbKCFAAAAQDdcwjV8hHkBa+n2KrlJ9CFPV3N4ARjBH3utj6Kqn56uOUbqBxYM+IjoBVJoXqG/doXih8WhU7PNYJHSslGMpAY=",
|
439
|
-
"result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAGAAAAAAAAAAA=",
|
440
|
-
"result_meta_xdr": "AAAAAAAAAAEAAAADAAAAAACJcrcAAAABAAAAAGwgVHeYbRV0CbgW1V/T54uRs0HLP60HLHZ7eR2IbKCFAAAAAUJUQwAAAAAAwGrMKrOs5IP3jsNF1RUrADc8EjqQkj2+RT1DDTJbsRkAAAAAAAAAAH//////////AAAAAQAAAAAAAAAAAAAAAwCJcrcAAAAAAAAAAGwgVHeYbRV0CbgW1V/T54uRs0HLP60HLHZ7eR2IbKCFAAAAAAExLJwAiXK2AAAAAQAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAQCJcrcAAAAAAAAAAGwgVHeYbRV0CbgW1V/T54uRs0HLP60HLHZ7eR2IbKCFAAAAAAExLJwAiXK2AAAAAQAAAAEAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAA"
|
441
|
-
}
|
442
|
-
http_version:
|
443
|
-
recorded_at: Thu, 17 May 2018 07:29:52 GMT
|
444
|
-
- request:
|
445
|
-
method: get
|
446
|
-
uri: https://horizon-testnet.stellar.org/accounts/[source_address]
|
447
|
-
body:
|
448
|
-
encoding: US-ASCII
|
449
|
-
string: ''
|
450
|
-
headers:
|
451
|
-
User-Agent:
|
452
|
-
- Faraday v0.15.1
|
453
|
-
Accept:
|
454
|
-
- application/hal+json,application/problem+json,application/json
|
455
|
-
response:
|
456
|
-
status:
|
457
|
-
code: 200
|
458
|
-
message: OK
|
459
|
-
headers:
|
460
|
-
Date:
|
461
|
-
- Thu, 17 May 2018 07:29:53 GMT
|
462
|
-
Content-Type:
|
463
|
-
- application/hal+json; charset=utf-8
|
464
|
-
Content-Length:
|
465
|
-
- '2265'
|
466
|
-
Connection:
|
467
|
-
- keep-alive
|
468
|
-
Set-Cookie:
|
469
|
-
- __cfduid=d04a9dc0024827165feb03f233aac5a931526542193; expires=Fri, 17-May-19
|
470
|
-
07:29:53 GMT; path=/; domain=.stellar.org; HttpOnly
|
471
|
-
Content-Disposition:
|
472
|
-
- inline
|
473
|
-
Vary:
|
474
|
-
- Origin
|
475
|
-
X-Ratelimit-Limit:
|
476
|
-
- '17200'
|
477
|
-
X-Ratelimit-Remaining:
|
478
|
-
- '17195'
|
479
|
-
X-Ratelimit-Reset:
|
480
|
-
- '3521'
|
481
|
-
Expect-Ct:
|
482
|
-
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
483
|
-
Server:
|
484
|
-
- cloudflare
|
485
|
-
Cf-Ray:
|
486
|
-
- 41c46026aa227092-SIN
|
487
|
-
body:
|
488
|
-
encoding: ASCII-8BIT
|
489
|
-
string: |-
|
490
|
-
{
|
491
|
-
"_links": {
|
492
|
-
"self": {
|
493
|
-
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
|
494
|
-
},
|
495
|
-
"transactions": {
|
496
|
-
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/transactions{?cursor,limit,order}",
|
497
|
-
"templated": true
|
498
|
-
},
|
499
|
-
"operations": {
|
500
|
-
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/operations{?cursor,limit,order}",
|
501
|
-
"templated": true
|
502
|
-
},
|
503
|
-
"payments": {
|
504
|
-
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/payments{?cursor,limit,order}",
|
505
|
-
"templated": true
|
506
|
-
},
|
507
|
-
"effects": {
|
508
|
-
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/effects{?cursor,limit,order}",
|
509
|
-
"templated": true
|
510
|
-
},
|
511
|
-
"offers": {
|
512
|
-
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/offers{?cursor,limit,order}",
|
513
|
-
"templated": true
|
514
|
-
},
|
515
|
-
"trades": {
|
516
|
-
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/trades{?cursor,limit,order}",
|
517
|
-
"templated": true
|
518
|
-
},
|
519
|
-
"data": {
|
520
|
-
"href": "https://horizon-testnet.stellar.org/accounts/[source_address]/data/{key}",
|
521
|
-
"templated": true
|
522
|
-
}
|
523
|
-
},
|
524
|
-
"id": "[source_address]",
|
525
|
-
"paging_token": "",
|
526
|
-
"account_id": "[source_address]",
|
527
|
-
"sequence": "38688184934072321",
|
528
|
-
"subentry_count": 0,
|
529
|
-
"thresholds": {
|
530
|
-
"low_threshold": 0,
|
531
|
-
"med_threshold": 0,
|
532
|
-
"high_threshold": 0
|
533
|
-
},
|
534
|
-
"flags": {
|
535
|
-
"auth_required": false,
|
536
|
-
"auth_revocable": false
|
537
|
-
},
|
538
|
-
"balances": [
|
539
|
-
{
|
540
|
-
"balance": "9997.9999900",
|
541
|
-
"asset_type": "native"
|
542
|
-
}
|
543
|
-
],
|
544
|
-
"signers": [
|
545
|
-
{
|
546
|
-
"public_key": "[source_address]",
|
547
|
-
"weight": 1,
|
548
|
-
"key": "[source_address]",
|
549
|
-
"type": "ed25519_public_key"
|
550
|
-
}
|
551
|
-
],
|
552
|
-
"data": {}
|
553
|
-
}
|
554
|
-
http_version:
|
555
|
-
recorded_at: Thu, 17 May 2018 07:29:54 GMT
|
556
|
-
- request:
|
557
|
-
method: post
|
558
|
-
uri: https://horizon-testnet.stellar.org/transactions
|
559
|
-
body:
|
560
|
-
encoding: UTF-8
|
561
|
-
string: tx=AAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAZACJcrMAAAACAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAbCBUd5htFXQJuBbVX9Pni5GzQcs%2FrQcsdnt5HYhsoIUAAAABQlRDAAAAAADAaswqs6zkg%2FeOw0XVFSsANzwSOpCSPb5FPUMNMluxGQAAAABZaC8AAAAAAAAAAAEyW7EZAAAAQDfZ5CUIr0M9qvepUMFXj7oCwQwA%2FoN0MS6DnGeOuYab3mXXVhyxw9Hjpj%2F9%2FiSpXYlP0hqKGLMHSBmtrxGe7gE%3D
|
562
|
-
headers:
|
563
|
-
User-Agent:
|
564
|
-
- Faraday v0.15.1
|
565
|
-
Accept:
|
566
|
-
- application/hal+json,application/problem+json,application/json
|
567
|
-
Content-Type:
|
568
|
-
- application/x-www-form-urlencoded
|
569
|
-
response:
|
570
|
-
status:
|
571
|
-
code: 200
|
572
|
-
message: OK
|
573
|
-
headers:
|
574
|
-
Date:
|
575
|
-
- Thu, 17 May 2018 07:29:57 GMT
|
576
|
-
Content-Type:
|
577
|
-
- application/hal+json; charset=utf-8
|
578
|
-
Content-Length:
|
579
|
-
- '1040'
|
580
|
-
Connection:
|
581
|
-
- keep-alive
|
582
|
-
Set-Cookie:
|
583
|
-
- __cfduid=d9bbafc64fc22954d1f88e5032f1da2ce1526542195; expires=Fri, 17-May-19
|
584
|
-
07:29:55 GMT; path=/; domain=.stellar.org; HttpOnly
|
585
|
-
Content-Disposition:
|
586
|
-
- inline
|
587
|
-
Vary:
|
588
|
-
- Origin
|
589
|
-
X-Ratelimit-Limit:
|
590
|
-
- '17200'
|
591
|
-
X-Ratelimit-Remaining:
|
592
|
-
- '17194'
|
593
|
-
X-Ratelimit-Reset:
|
594
|
-
- '3520'
|
595
|
-
Expect-Ct:
|
596
|
-
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
597
|
-
Server:
|
598
|
-
- cloudflare
|
599
|
-
Cf-Ray:
|
600
|
-
- 41c4602ebbaf6fc6-SIN
|
601
|
-
body:
|
602
|
-
encoding: ASCII-8BIT
|
603
|
-
string: |-
|
604
|
-
{
|
605
|
-
"_links": {
|
606
|
-
"transaction": {
|
607
|
-
"href": "https://horizon-testnet.stellar.org/transactions/640a946b7a502d162886823b04cc7a305c35693a10fa42d58b0a93b06597e2e9"
|
608
|
-
}
|
609
|
-
},
|
610
|
-
"hash": "640a946b7a502d162886823b04cc7a305c35693a10fa42d58b0a93b06597e2e9",
|
611
|
-
"ledger": 9007800,
|
612
|
-
"envelope_xdr": "AAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAZACJcrMAAAACAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAbCBUd5htFXQJuBbVX9Pni5GzQcs/rQcsdnt5HYhsoIUAAAABQlRDAAAAAADAaswqs6zkg/eOw0XVFSsANzwSOpCSPb5FPUMNMluxGQAAAABZaC8AAAAAAAAAAAEyW7EZAAAAQDfZ5CUIr0M9qvepUMFXj7oCwQwA/oN0MS6DnGeOuYab3mXXVhyxw9Hjpj/9/iSpXYlP0hqKGLMHSBmtrxGe7gE=",
|
613
|
-
"result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
|
614
|
-
"result_meta_xdr": "AAAAAAAAAAEAAAACAAAAAwCJcrcAAAABAAAAAGwgVHeYbRV0CbgW1V/T54uRs0HLP60HLHZ7eR2IbKCFAAAAAUJUQwAAAAAAwGrMKrOs5IP3jsNF1RUrADc8EjqQkj2+RT1DDTJbsRkAAAAAAAAAAH//////////AAAAAQAAAAAAAAAAAAAAAQCJcrgAAAABAAAAAGwgVHeYbRV0CbgW1V/T54uRs0HLP60HLHZ7eR2IbKCFAAAAAUJUQwAAAAAAwGrMKrOs5IP3jsNF1RUrADc8EjqQkj2+RT1DDTJbsRkAAAAAWWgvAH//////////AAAAAQAAAAAAAAAA"
|
615
|
-
}
|
616
|
-
http_version:
|
617
|
-
recorded_at: Thu, 17 May 2018 07:29:57 GMT
|
618
|
-
- request:
|
619
|
-
method: get
|
620
|
-
uri: https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ
|
621
|
-
body:
|
622
|
-
encoding: US-ASCII
|
623
|
-
string: ''
|
624
|
-
headers:
|
625
|
-
User-Agent:
|
626
|
-
- Faraday v0.15.1
|
627
|
-
Accept:
|
628
|
-
- application/hal+json,application/problem+json,application/json
|
629
|
-
response:
|
630
|
-
status:
|
631
|
-
code: 200
|
632
|
-
message: OK
|
633
|
-
headers:
|
634
|
-
Date:
|
635
|
-
- Thu, 17 May 2018 07:29:58 GMT
|
636
|
-
Content-Type:
|
637
|
-
- application/hal+json; charset=utf-8
|
638
|
-
Content-Length:
|
639
|
-
- '2494'
|
640
|
-
Connection:
|
641
|
-
- keep-alive
|
642
|
-
Set-Cookie:
|
643
|
-
- __cfduid=d66220961707d54a4e5cb95aff5763a0f1526542198; expires=Fri, 17-May-19
|
644
|
-
07:29:58 GMT; path=/; domain=.stellar.org; HttpOnly
|
645
|
-
Content-Disposition:
|
646
|
-
- inline
|
647
|
-
Vary:
|
648
|
-
- Origin
|
649
|
-
X-Ratelimit-Limit:
|
650
|
-
- '17200'
|
651
|
-
X-Ratelimit-Remaining:
|
652
|
-
- '17194'
|
653
|
-
X-Ratelimit-Reset:
|
654
|
-
- '3519'
|
655
|
-
Expect-Ct:
|
656
|
-
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
657
|
-
Server:
|
658
|
-
- cloudflare
|
659
|
-
Cf-Ray:
|
660
|
-
- 41c460436efd6fc6-SIN
|
661
|
-
body:
|
662
|
-
encoding: ASCII-8BIT
|
663
|
-
string: |-
|
664
|
-
{
|
665
|
-
"_links": {
|
666
|
-
"self": {
|
667
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ"
|
668
|
-
},
|
669
|
-
"transactions": {
|
670
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ/transactions{?cursor,limit,order}",
|
671
|
-
"templated": true
|
672
|
-
},
|
673
|
-
"operations": {
|
674
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ/operations{?cursor,limit,order}",
|
675
|
-
"templated": true
|
676
|
-
},
|
677
|
-
"payments": {
|
678
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ/payments{?cursor,limit,order}",
|
679
|
-
"templated": true
|
680
|
-
},
|
681
|
-
"effects": {
|
682
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ/effects{?cursor,limit,order}",
|
683
|
-
"templated": true
|
684
|
-
},
|
685
|
-
"offers": {
|
686
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ/offers{?cursor,limit,order}",
|
687
|
-
"templated": true
|
688
|
-
},
|
689
|
-
"trades": {
|
690
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ/trades{?cursor,limit,order}",
|
691
|
-
"templated": true
|
692
|
-
},
|
693
|
-
"data": {
|
694
|
-
"href": "https://horizon-testnet.stellar.org/accounts/GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ/data/{key}",
|
695
|
-
"templated": true
|
696
|
-
}
|
697
|
-
},
|
698
|
-
"id": "GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ",
|
699
|
-
"paging_token": "",
|
700
|
-
"account_id": "GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ",
|
701
|
-
"sequence": "38688197818974209",
|
702
|
-
"subentry_count": 1,
|
703
|
-
"thresholds": {
|
704
|
-
"low_threshold": 0,
|
705
|
-
"med_threshold": 0,
|
706
|
-
"high_threshold": 0
|
707
|
-
},
|
708
|
-
"flags": {
|
709
|
-
"auth_required": false,
|
710
|
-
"auth_revocable": false
|
711
|
-
},
|
712
|
-
"balances": [
|
713
|
-
{
|
714
|
-
"balance": "150.0000000",
|
715
|
-
"limit": "922337203685.4775807",
|
716
|
-
"asset_type": "credit_alphanum4",
|
717
|
-
"asset_code": "BTC",
|
718
|
-
"asset_issuer": "[source_address]"
|
719
|
-
},
|
720
|
-
{
|
721
|
-
"balance": "1.9999900",
|
722
|
-
"asset_type": "native"
|
723
|
-
}
|
724
|
-
],
|
725
|
-
"signers": [
|
726
|
-
{
|
727
|
-
"public_key": "GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ",
|
728
|
-
"weight": 1,
|
729
|
-
"key": "GBWCAVDXTBWRK5AJXALNKX6T46FZDM2BZM722BZMOZ5XSHMINSQILTPZ",
|
730
|
-
"type": "ed25519_public_key"
|
731
|
-
}
|
732
|
-
],
|
733
|
-
"data": {}
|
734
|
-
}
|
735
|
-
http_version:
|
736
|
-
recorded_at: Thu, 17 May 2018 07:29:58 GMT
|
737
|
-
recorded_with: VCR 3.0.3
|