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