Class: SkyApi::DefaultApi

Inherits:
Object
  • Object
show all
Defined in:
lib/sky_api/api/default_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ DefaultApi

Returns a new instance of DefaultApi.



19
20
21
# File 'lib/sky_api/api/default_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/sky_api/api/default_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#address_count(opts = {}) ⇒ InlineResponse200

Returns the total number of unique address that have coins.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



25
26
27
28
# File 'lib/sky_api/api/default_api.rb', line 25

def address_count(opts = {})
  data, _status_code, _headers = address_count_with_http_info(opts)
  data
end

#address_count_with_http_info(opts = {}) ⇒ Array<(InlineResponse200, Integer, Hash)>

Returns the total number of unique address that have coins.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(InlineResponse200, Integer, Hash)>)

    InlineResponse200 data, response status code and response headers



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/sky_api/api/default_api.rb', line 33

def address_count_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.address_count ...'
  end
  # resource path
  local_var_path = '/api/v1/addresscount'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'InlineResponse200' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#address_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#address_uxouts(address, opts = {}) ⇒ Array<Object>

Returns the historical, spent outputs associated with an address

Parameters:

  • address (String)

    address to filter by

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<Object>)


80
81
82
83
# File 'lib/sky_api/api/default_api.rb', line 80

def address_uxouts(address, opts = {})
  data, _status_code, _headers = address_uxouts_with_http_info(address, opts)
  data
end

#address_uxouts_with_http_info(address, opts = {}) ⇒ Array<(Array<Object>, Integer, Hash)>

Returns the historical, spent outputs associated with an address

Parameters:

  • address (String)

    address to filter by

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<Object>, Integer, Hash)>)

    Array<Object> data, response status code and response headers



89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# File 'lib/sky_api/api/default_api.rb', line 89

def address_uxouts_with_http_info(address, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.address_uxouts ...'
  end
  # verify the required parameter 'address' is set
  if @api_client.config.client_side_validation && address.nil?
    fail ArgumentError, "Missing the required parameter 'address' when calling DefaultApi.address_uxouts"
  end
  # resource path
  local_var_path = '/api/v1/address_uxouts'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'address'] = address

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Array<Object>' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#address_uxouts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#api_v1_rawtx_get(opts = {}) ⇒ String

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


139
140
141
142
# File 'lib/sky_api/api/default_api.rb', line 139

def api_v1_rawtx_get(opts = {})
  data, _status_code, _headers = api_v1_rawtx_get_with_http_info(opts)
  data
end

#api_v1_rawtx_get_with_http_info(opts = {}) ⇒ Array<(String, Integer, Hash)>

Returns String data, response status code and response headers.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(String, Integer, Hash)>)

    String data, response status code and response headers



146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'lib/sky_api/api/default_api.rb', line 146

def api_v1_rawtx_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_v1_rawtx_get ...'
  end
  # resource path
  local_var_path = '/api/v1/rawtx'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'String' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_v1_rawtx_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#api_v2_metrics_get(opts = {}) ⇒ String

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


191
192
193
194
# File 'lib/sky_api/api/default_api.rb', line 191

def api_v2_metrics_get(opts = {})
  data, _status_code, _headers = api_v2_metrics_get_with_http_info(opts)
  data
end

#api_v2_metrics_get_with_http_info(opts = {}) ⇒ Array<(String, Integer, Hash)>

Returns String data, response status code and response headers.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(String, Integer, Hash)>)

    String data, response status code and response headers



198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
# File 'lib/sky_api/api/default_api.rb', line 198

def api_v2_metrics_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_v2_metrics_get ...'
  end
  # resource path
  local_var_path = '/api/v2/metrics'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['text/plain'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'String' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_v2_metrics_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#balance_get(addrs, opts = {}) ⇒ Object

Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends.

Parameters:

  • addrs (String)

    command separated list of addresses

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


245
246
247
248
# File 'lib/sky_api/api/default_api.rb', line 245

def balance_get(addrs, opts = {})
  data, _status_code, _headers = balance_get_with_http_info(addrs, opts)
  data
end

#balance_get_with_http_info(addrs, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends.

Parameters:

  • addrs (String)

    command separated list of addresses

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
# File 'lib/sky_api/api/default_api.rb', line 254

def balance_get_with_http_info(addrs, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.balance_get ...'
  end
  # verify the required parameter 'addrs' is set
  if @api_client.config.client_side_validation && addrs.nil?
    fail ArgumentError, "Missing the required parameter 'addrs' when calling DefaultApi.balance_get"
  end
  # resource path
  local_var_path = '/api/v1/balance'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'addrs'] = addrs

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#balance_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#balance_post(addrs, opts = {}) ⇒ Object

Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends.

Parameters:

  • addrs (String)

    command separated list of addresses

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


306
307
308
309
# File 'lib/sky_api/api/default_api.rb', line 306

def balance_post(addrs, opts = {})
  data, _status_code, _headers = balance_post_with_http_info(addrs, opts)
  data
end

#balance_post_with_http_info(addrs, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends.

Parameters:

  • addrs (String)

    command separated list of addresses

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
# File 'lib/sky_api/api/default_api.rb', line 315

def balance_post_with_http_info(addrs, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.balance_post ...'
  end
  # verify the required parameter 'addrs' is set
  if @api_client.config.client_side_validation && addrs.nil?
    fail ArgumentError, "Missing the required parameter 'addrs' when calling DefaultApi.balance_post"
  end
  # resource path
  local_var_path = '/api/v1/balance'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'addrs'] = addrs

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#balance_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#block(opts = {}) ⇒ Array<BlockSchema>

Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :hash (String)

    get block by hash

  • :seq (Integer)

    get block by sequence number

Returns:



368
369
370
371
# File 'lib/sky_api/api/default_api.rb', line 368

def block(opts = {})
  data, _status_code, _headers = block_with_http_info(opts)
  data
end

#block_with_http_info(opts = {}) ⇒ Array<(Array<BlockSchema>, Integer, Hash)>

Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :hash (String)

    get block by hash

  • :seq (Integer)

    get block by sequence number

Returns:

  • (Array<(Array<BlockSchema>, Integer, Hash)>)

    Array<BlockSchema> data, response status code and response headers



378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
# File 'lib/sky_api/api/default_api.rb', line 378

def block_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.block ...'
  end
  # resource path
  local_var_path = '/api/v1/block'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'hash'] = opts[:'hash'] if !opts[:'hash'].nil?
  query_params[:'seq'] = opts[:'seq'] if !opts[:'seq'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Array<BlockSchema>' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#block\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#blockchain_metadata(opts = {}) ⇒ Object

Returns the blockchain metadata.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


426
427
428
429
# File 'lib/sky_api/api/default_api.rb', line 426

def (opts = {})
  data, _status_code, _headers = (opts)
  data
end

#blockchain_metadata_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

Returns the blockchain metadata.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
# File 'lib/sky_api/api/default_api.rb', line 434

def (opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.blockchain_metadata ...'
  end
  # resource path
  local_var_path = '/api/v1/blockchain/metadata'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#blockchain_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#blockchain_progress(opts = {}) ⇒ Object

Returns the blockchain sync progress.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


480
481
482
483
# File 'lib/sky_api/api/default_api.rb', line 480

def blockchain_progress(opts = {})
  data, _status_code, _headers = blockchain_progress_with_http_info(opts)
  data
end

#blockchain_progress_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

Returns the blockchain sync progress.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
# File 'lib/sky_api/api/default_api.rb', line 488

def blockchain_progress_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.blockchain_progress ...'
  end
  # resource path
  local_var_path = '/api/v1/blockchain/progress'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#blockchain_progress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#blocks(opts = {}) ⇒ InlineResponse2001

Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :start (Integer)

    start seq

  • :_end (Integer)

    end seq

  • :seq (Array<Integer>)

    comma-separated list of block seqs

Returns:



537
538
539
540
# File 'lib/sky_api/api/default_api.rb', line 537

def blocks(opts = {})
  data, _status_code, _headers = blocks_with_http_info(opts)
  data
end

#blocks_with_http_info(opts = {}) ⇒ Array<(InlineResponse2001, Integer, Hash)>

Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :start (Integer)

    start seq

  • :_end (Integer)

    end seq

  • :seq (Array<Integer>)

    comma-separated list of block seqs

Returns:

  • (Array<(InlineResponse2001, Integer, Hash)>)

    InlineResponse2001 data, response status code and response headers



548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
# File 'lib/sky_api/api/default_api.rb', line 548

def blocks_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.blocks ...'
  end
  # resource path
  local_var_path = '/api/v1/blocks'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
  query_params[:'end'] = opts[:'_end'] if !opts[:'_end'].nil?
  query_params[:'seq'] = @api_client.build_collection_param(opts[:'seq'], :multi) if !opts[:'seq'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'InlineResponse2001' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#blocks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#coin_supply(opts = {}) ⇒ InlineResponse2002

coinSupplyHandler returns coin distribution supply stats

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



597
598
599
600
# File 'lib/sky_api/api/default_api.rb', line 597

def coin_supply(opts = {})
  data, _status_code, _headers = coin_supply_with_http_info(opts)
  data
end

#coin_supply_with_http_info(opts = {}) ⇒ Array<(InlineResponse2002, Integer, Hash)>

coinSupplyHandler returns coin distribution supply stats

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(InlineResponse2002, Integer, Hash)>)

    InlineResponse2002 data, response status code and response headers



605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
# File 'lib/sky_api/api/default_api.rb', line 605

def coin_supply_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.coin_supply ...'
  end
  # resource path
  local_var_path = '/api/v1/coinSupply'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'InlineResponse2002' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#coin_supply\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#csrf(opts = {}) ⇒ InlineResponse2003

Creates a new CSRF token. Previous CSRF tokens are invalidated by this call.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



651
652
653
654
# File 'lib/sky_api/api/default_api.rb', line 651

def csrf(opts = {})
  data, _status_code, _headers = csrf_with_http_info(opts)
  data
end

#csrf_with_http_info(opts = {}) ⇒ Array<(InlineResponse2003, Integer, Hash)>

Creates a new CSRF token. Previous CSRF tokens are invalidated by this call.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(InlineResponse2003, Integer, Hash)>)

    InlineResponse2003 data, response status code and response headers



659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
# File 'lib/sky_api/api/default_api.rb', line 659

def csrf_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.csrf ...'
  end
  # resource path
  local_var_path = '/api/v1/csrf'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'InlineResponse2003' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#csrf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#data_delete(opts = {}) ⇒ nil

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :type (String)

    storage type.

  • :key (String)

    key of the specific value to get.

Returns:

  • (nil)


706
707
708
709
# File 'lib/sky_api/api/default_api.rb', line 706

def data_delete(opts = {})
  data_delete_with_http_info(opts)
  nil
end

#data_delete_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :type (String)

    storage type.

  • :key (String)

    key of the specific value to get.

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
# File 'lib/sky_api/api/default_api.rb', line 715

def data_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.data_delete ...'
  end
  # resource path
  local_var_path = '/api/v2/data'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
  header_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
  header_params[:'key'] = opts[:'key'] if !opts[:'key'].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#data_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#data_get(opts = {}) ⇒ Object

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :type (String)

    storage type.

  • :key (String)

    key of the specific value to get.

Returns:

  • (Object)


764
765
766
767
# File 'lib/sky_api/api/default_api.rb', line 764

def data_get(opts = {})
  data, _status_code, _headers = data_get_with_http_info(opts)
  data
end

#data_get_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

Returns Object data, response status code and response headers.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :type (String)

    storage type.

  • :key (String)

    key of the specific value to get.

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
# File 'lib/sky_api/api/default_api.rb', line 773

def data_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.data_get ...'
  end
  # resource path
  local_var_path = '/api/v2/data'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])
  header_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
  header_params[:'key'] = opts[:'key'] if !opts[:'key'].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#data_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#data_post(opts = {}) ⇒ nil

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :type (String)

    storage type.

  • :key (String)

    key of the specific value to get.

  • :val (String)

    additional value.

Returns:

  • (nil)


823
824
825
826
# File 'lib/sky_api/api/default_api.rb', line 823

def data_post(opts = {})
  data_post_with_http_info(opts)
  nil
end

#data_post_with_http_info(opts = {}) ⇒ Array<(nil, Integer, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :type (String)

    storage type.

  • :key (String)

    key of the specific value to get.

  • :val (String)

    additional value.

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
# File 'lib/sky_api/api/default_api.rb', line 833

def data_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.data_post ...'
  end
  # resource path
  local_var_path = '/api/v2/data'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
  header_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
  header_params[:'key'] = opts[:'key'] if !opts[:'key'].nil?
  header_params[:'val'] = opts[:'val'] if !opts[:'val'].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#data_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#default_connections(opts = {}) ⇒ Array<String>

defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\n They are not necessarily connected to.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<String>)


882
883
884
885
# File 'lib/sky_api/api/default_api.rb', line 882

def default_connections(opts = {})
  data, _status_code, _headers = default_connections_with_http_info(opts)
  data
end

#default_connections_with_http_info(opts = {}) ⇒ Array<(Array<String>, Integer, Hash)>

defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\n They are not necessarily connected to.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<String>, Integer, Hash)>)

    Array<String> data, response status code and response headers



890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
# File 'lib/sky_api/api/default_api.rb', line 890

def default_connections_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.default_connections ...'
  end
  # resource path
  local_var_path = '/api/v1/network/defaultConnections'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Array<String>' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#default_connections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#health(opts = {}) ⇒ Object

Returns node health data.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


936
937
938
939
# File 'lib/sky_api/api/default_api.rb', line 936

def health(opts = {})
  data, _status_code, _headers = health_with_http_info(opts)
  data
end

#health_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

Returns node health data.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
# File 'lib/sky_api/api/default_api.rb', line 944

def health_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.health ...'
  end
  # resource path
  local_var_path = '/api/v1/health'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#health\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#last_blocks(num, opts = {}) ⇒ Object

Returns the most recent N blocks on the blockchain

Parameters:

  • num (Integer)

    Num of blockss

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


991
992
993
994
# File 'lib/sky_api/api/default_api.rb', line 991

def last_blocks(num, opts = {})
  data, _status_code, _headers = last_blocks_with_http_info(num, opts)
  data
end

#last_blocks_with_http_info(num, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Returns the most recent N blocks on the blockchain

Parameters:

  • num (Integer)

    Num of blockss

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
# File 'lib/sky_api/api/default_api.rb', line 1000

def last_blocks_with_http_info(num, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.last_blocks ...'
  end
  # verify the required parameter 'num' is set
  if @api_client.config.client_side_validation && num.nil?
    fail ArgumentError, "Missing the required parameter 'num' when calling DefaultApi.last_blocks"
  end
  # resource path
  local_var_path = '/api/v1/last_blocks'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'num'] = num

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#last_blocks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#network_connection(addr, opts = {}) ⇒ NetworkConnectionSchema

This endpoint returns a specific connection.

Parameters:

  • addr (String)

    Address port

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1052
1053
1054
1055
# File 'lib/sky_api/api/default_api.rb', line 1052

def network_connection(addr, opts = {})
  data, _status_code, _headers = network_connection_with_http_info(addr, opts)
  data
end

#network_connection_with_http_info(addr, opts = {}) ⇒ Array<(NetworkConnectionSchema, Integer, Hash)>

This endpoint returns a specific connection.

Parameters:

  • addr (String)

    Address port

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(NetworkConnectionSchema, Integer, Hash)>)

    NetworkConnectionSchema data, response status code and response headers



1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
# File 'lib/sky_api/api/default_api.rb', line 1061

def network_connection_with_http_info(addr, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.network_connection ...'
  end
  # verify the required parameter 'addr' is set
  if @api_client.config.client_side_validation && addr.nil?
    fail ArgumentError, "Missing the required parameter 'addr' when calling DefaultApi.network_connection"
  end
  # resource path
  local_var_path = '/api/v1/network/connection'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'addr'] = addr

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'NetworkConnectionSchema' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#network_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#network_connections(opts = {}) ⇒ InlineResponse2004

This endpoint returns all outgoings connections.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :states (String)

    Connection status.

  • :direction (String)

    Direction of the connection.

Returns:



1114
1115
1116
1117
# File 'lib/sky_api/api/default_api.rb', line 1114

def network_connections(opts = {})
  data, _status_code, _headers = network_connections_with_http_info(opts)
  data
end

#network_connections_disconnect(id, opts = {}) ⇒ nil

This endpoint disconnects a connection by ID or address

Parameters:

  • id (String)

    Address id.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


1181
1182
1183
1184
# File 'lib/sky_api/api/default_api.rb', line 1181

def network_connections_disconnect(id, opts = {})
  network_connections_disconnect_with_http_info(id, opts)
  nil
end

#network_connections_disconnect_with_http_info(id, opts = {}) ⇒ Array<(nil, Integer, Hash)>

This endpoint disconnects a connection by ID or address

Parameters:

  • id (String)

    Address id.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
# File 'lib/sky_api/api/default_api.rb', line 1190

def network_connections_disconnect_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.network_connections_disconnect ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.network_connections_disconnect"
  end
  # resource path
  local_var_path = '/api/v1/network/connection/disconnect'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'id'] = id

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#network_connections_disconnect\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#network_connections_exchange(opts = {}) ⇒ Array<String>

This endpoint returns all connections found through peer exchange

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<String>)


1241
1242
1243
1244
# File 'lib/sky_api/api/default_api.rb', line 1241

def network_connections_exchange(opts = {})
  data, _status_code, _headers = network_connections_exchange_with_http_info(opts)
  data
end

#network_connections_exchange_with_http_info(opts = {}) ⇒ Array<(Array<String>, Integer, Hash)>

This endpoint returns all connections found through peer exchange

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<String>, Integer, Hash)>)

    Array<String> data, response status code and response headers



1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
# File 'lib/sky_api/api/default_api.rb', line 1249

def network_connections_exchange_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.network_connections_exchange ...'
  end
  # resource path
  local_var_path = '/api/v1/network/connections/exchange'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Array<String>' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#network_connections_exchange\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#network_connections_trust(opts = {}) ⇒ Array<String>

trustConnectionsHandler returns all trusted connections.\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<String>)


1295
1296
1297
1298
# File 'lib/sky_api/api/default_api.rb', line 1295

def network_connections_trust(opts = {})
  data, _status_code, _headers = network_connections_trust_with_http_info(opts)
  data
end

#network_connections_trust_with_http_info(opts = {}) ⇒ Array<(Array<String>, Integer, Hash)>

trustConnectionsHandler returns all trusted connections.\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<String>, Integer, Hash)>)

    Array<String> data, response status code and response headers



1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
# File 'lib/sky_api/api/default_api.rb', line 1303

def network_connections_trust_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.network_connections_trust ...'
  end
  # resource path
  local_var_path = '/api/v1/network/connections/trust'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Array<String>' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#network_connections_trust\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#network_connections_with_http_info(opts = {}) ⇒ Array<(InlineResponse2004, Integer, Hash)>

This endpoint returns all outgoings connections.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :states (String)

    Connection status.

  • :direction (String)

    Direction of the connection.

Returns:

  • (Array<(InlineResponse2004, Integer, Hash)>)

    InlineResponse2004 data, response status code and response headers



1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
# File 'lib/sky_api/api/default_api.rb', line 1124

def network_connections_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.network_connections ...'
  end
  allowable_values = ["pending", "connected", "introduced"]
  if @api_client.config.client_side_validation && opts[:'states'] && !allowable_values.include?(opts[:'states'])
    fail ArgumentError, "invalid value for \"states\", must be one of #{allowable_values}"
  end
  allowable_values = ["connected", "introduced"]
  if @api_client.config.client_side_validation && opts[:'direction'] && !allowable_values.include?(opts[:'direction'])
    fail ArgumentError, "invalid value for \"direction\", must be one of #{allowable_values}"
  end
  # resource path
  local_var_path = '/api/v1/network/connections'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'states'] = opts[:'states'] if !opts[:'states'].nil?
  query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'InlineResponse2004' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#network_connections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#outputs_get(opts = {}) ⇒ Object

If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :address (Array<String>)
  • :hash (Array<String>)

Returns:

  • (Object)


1351
1352
1353
1354
# File 'lib/sky_api/api/default_api.rb', line 1351

def outputs_get(opts = {})
  data, _status_code, _headers = outputs_get_with_http_info(opts)
  data
end

#outputs_get_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :address (Array<String>)
  • :hash (Array<String>)

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
# File 'lib/sky_api/api/default_api.rb', line 1361

def outputs_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.outputs_get ...'
  end
  # resource path
  local_var_path = '/api/v1/outputs'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'address'] = @api_client.build_collection_param(opts[:'address'], :multi) if !opts[:'address'].nil?
  query_params[:'hash'] = @api_client.build_collection_param(opts[:'hash'], :multi) if !opts[:'hash'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#outputs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#outputs_post(opts = {}) ⇒ Object

If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :address (String)
  • :hash (String)

Returns:

  • (Object)


1411
1412
1413
1414
# File 'lib/sky_api/api/default_api.rb', line 1411

def outputs_post(opts = {})
  data, _status_code, _headers = outputs_post_with_http_info(opts)
  data
end

#outputs_post_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :address (String)
  • :hash (String)

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
# File 'lib/sky_api/api/default_api.rb', line 1421

def outputs_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.outputs_post ...'
  end
  # resource path
  local_var_path = '/api/v1/outputs'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'address'] = opts[:'address'] if !opts[:'address'].nil?
  query_params[:'hash'] = opts[:'hash'] if !opts[:'hash'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#outputs_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#pending_txs(opts = {}) ⇒ Array<InlineResponse20010>

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1468
1469
1470
1471
# File 'lib/sky_api/api/default_api.rb', line 1468

def pending_txs(opts = {})
  data, _status_code, _headers = pending_txs_with_http_info(opts)
  data
end

#pending_txs_with_http_info(opts = {}) ⇒ Array<(Array<InlineResponse20010>, Integer, Hash)>

Returns Array<InlineResponse20010> data, response status code and response headers.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<InlineResponse20010>, Integer, Hash)>)

    Array<InlineResponse20010> data, response status code and response headers



1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
# File 'lib/sky_api/api/default_api.rb', line 1475

def pending_txs_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.pending_txs ...'
  end
  # resource path
  local_var_path = '/api/v1/pendingTxs'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Array<InlineResponse20010>' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#pending_txs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#resend_unconfirmed_txns(opts = {}) ⇒ Object

Broadcasts all unconfirmed transactions from the unconfirmed transaction pool

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


1521
1522
1523
1524
# File 'lib/sky_api/api/default_api.rb', line 1521

def resend_unconfirmed_txns(opts = {})
  data, _status_code, _headers = resend_unconfirmed_txns_with_http_info(opts)
  data
end

#resend_unconfirmed_txns_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

Broadcasts all unconfirmed transactions from the unconfirmed transaction pool

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
# File 'lib/sky_api/api/default_api.rb', line 1529

def resend_unconfirmed_txns_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.resend_unconfirmed_txns ...'
  end
  # resource path
  local_var_path = '/api/v1/resendUnconfirmedTxns'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application-json', 'application/json', 'application/xml'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#resend_unconfirmed_txns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#richlist(opts = {}) ⇒ Object

Returns the top skycoin holders.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :include_distribution (Boolean)

    include distribution addresses or not, default value false

  • :n (String)

    include distribution addresses or not, default value false

Returns:

  • (Object)


1577
1578
1579
1580
# File 'lib/sky_api/api/default_api.rb', line 1577

def richlist(opts = {})
  data, _status_code, _headers = richlist_with_http_info(opts)
  data
end

#richlist_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

Returns the top skycoin holders.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :include_distribution (Boolean)

    include distribution addresses or not, default value false

  • :n (String)

    include distribution addresses or not, default value false

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
# File 'lib/sky_api/api/default_api.rb', line 1587

def richlist_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.richlist ...'
  end
  # resource path
  local_var_path = '/api/v1/richlist'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'include-distribution'] = opts[:'include_distribution'] if !opts[:'include_distribution'].nil?
  query_params[:'n'] = opts[:'n'] if !opts[:'n'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#richlist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#transaction(txid, opts = {}) ⇒ Transaction

Returns a transaction identified by its txid hash with just id

Parameters:

  • txid (String)

    transaction Id

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1636
1637
1638
1639
# File 'lib/sky_api/api/default_api.rb', line 1636

def transaction(txid, opts = {})
  data, _status_code, _headers = transaction_with_http_info(txid, opts)
  data
end

#transaction_inject(rawtx, opts = {}) ⇒ String

Broadcast a hex-encoded, serialized transaction to the network.

Parameters:

  • rawtx (String)

    hex-encoded serialized transaction string.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


1697
1698
1699
1700
# File 'lib/sky_api/api/default_api.rb', line 1697

def transaction_inject(rawtx, opts = {})
  data, _status_code, _headers = transaction_inject_with_http_info(rawtx, opts)
  data
end

#transaction_inject_with_http_info(rawtx, opts = {}) ⇒ Array<(String, Integer, Hash)>

Broadcast a hex-encoded, serialized transaction to the network.

Parameters:

  • rawtx (String)

    hex-encoded serialized transaction string.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(String, Integer, Hash)>)

    String data, response status code and response headers



1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
# File 'lib/sky_api/api/default_api.rb', line 1706

def transaction_inject_with_http_info(rawtx, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.transaction_inject ...'
  end
  # verify the required parameter 'rawtx' is set
  if @api_client.config.client_side_validation && rawtx.nil?
    fail ArgumentError, "Missing the required parameter 'rawtx' when calling DefaultApi.transaction_inject"
  end
  # resource path
  local_var_path = '/api/v1/injectTransaction'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'application/xml'])
  header_params[:'rawtx'] = rawtx

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'String' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#transaction_inject\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#transaction_post(opts = {}) ⇒ InlineResponse2008

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1757
1758
1759
1760
# File 'lib/sky_api/api/default_api.rb', line 1757

def transaction_post(opts = {})
  data, _status_code, _headers = transaction_post_with_http_info(opts)
  data
end

#transaction_post_unspent(transaction_v2_params_unspent, opts = {}) ⇒ InlineResponse2008

Parameters:

  • transaction_v2_params_unspent (TransactionV2ParamsUnspent)

    Unspent parameters

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1813
1814
1815
1816
# File 'lib/sky_api/api/default_api.rb', line 1813

def transaction_post_unspent(transaction_v2_params_unspent, opts = {})
  data, _status_code, _headers = transaction_post_unspent_with_http_info(transaction_v2_params_unspent, opts)
  data
end

#transaction_post_unspent_with_http_info(transaction_v2_params_unspent, opts = {}) ⇒ Array<(InlineResponse2008, Integer, Hash)>

Returns InlineResponse2008 data, response status code and response headers.

Parameters:

  • transaction_v2_params_unspent (TransactionV2ParamsUnspent)

    Unspent parameters

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(InlineResponse2008, Integer, Hash)>)

    InlineResponse2008 data, response status code and response headers



1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
# File 'lib/sky_api/api/default_api.rb', line 1821

def transaction_post_unspent_with_http_info(transaction_v2_params_unspent, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.transaction_post_unspent ...'
  end
  # verify the required parameter 'transaction_v2_params_unspent' is set
  if @api_client.config.client_side_validation && transaction_v2_params_unspent.nil?
    fail ArgumentError, "Missing the required parameter 'transaction_v2_params_unspent' when calling DefaultApi.transaction_post_unspent"
  end
  # resource path
  local_var_path = '/api/v2/transaction/unspent'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(transaction_v2_params_unspent) 

  # return_type
  return_type = opts[:return_type] || 'InlineResponse2008' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#transaction_post_unspent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#transaction_post_with_http_info(opts = {}) ⇒ Array<(InlineResponse2008, Integer, Hash)>

Returns InlineResponse2008 data, response status code and response headers.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(InlineResponse2008, Integer, Hash)>)

    InlineResponse2008 data, response status code and response headers



1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
# File 'lib/sky_api/api/default_api.rb', line 1765

def transaction_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.transaction_post ...'
  end
  # resource path
  local_var_path = '/api/v2/transaction'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(opts[:'transaction_v2_params_address']) 

  # return_type
  return_type = opts[:return_type] || 'InlineResponse2008' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#transaction_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#transaction_raw(opts = {}) ⇒ Object

Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :txid (String)

    Transaction id hash

Returns:

  • (Object)


1874
1875
1876
1877
# File 'lib/sky_api/api/default_api.rb', line 1874

def transaction_raw(opts = {})
  data, _status_code, _headers = transaction_raw_with_http_info(opts)
  data
end

#transaction_raw_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :txid (String)

    Transaction id hash

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
# File 'lib/sky_api/api/default_api.rb', line 1883

def transaction_raw_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.transaction_raw ...'
  end
  # resource path
  local_var_path = '/api/v2/transaction/raw'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'txid'] = opts[:'txid'] if !opts[:'txid'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#transaction_raw\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#transaction_verify(transaction_verify_request, opts = {}) ⇒ Object

Decode and verify an encoded transaction

Parameters:

Returns:

  • (Object)


1931
1932
1933
1934
# File 'lib/sky_api/api/default_api.rb', line 1931

def transaction_verify(transaction_verify_request, opts = {})
  data, _status_code, _headers = transaction_verify_with_http_info(transaction_verify_request, opts)
  data
end

#transaction_verify_with_http_info(transaction_verify_request, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Decode and verify an encoded transaction

Parameters:

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
# File 'lib/sky_api/api/default_api.rb', line 1940

def transaction_verify_with_http_info(transaction_verify_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.transaction_verify ...'
  end
  # verify the required parameter 'transaction_verify_request' is set
  if @api_client.config.client_side_validation && transaction_verify_request.nil?
    fail ArgumentError, "Missing the required parameter 'transaction_verify_request' when calling DefaultApi.transaction_verify"
  end
  # resource path
  local_var_path = '/api/v2/transaction/verify'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(transaction_verify_request) 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#transaction_verify\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#transaction_with_http_info(txid, opts = {}) ⇒ Array<(Transaction, Integer, Hash)>

Returns a transaction identified by its txid hash with just id

Parameters:

  • txid (String)

    transaction Id

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Transaction, Integer, Hash)>)

    Transaction data, response status code and response headers



1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
# File 'lib/sky_api/api/default_api.rb', line 1645

def transaction_with_http_info(txid, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.transaction ...'
  end
  # verify the required parameter 'txid' is set
  if @api_client.config.client_side_validation && txid.nil?
    fail ArgumentError, "Missing the required parameter 'txid' when calling DefaultApi.transaction"
  end
  # resource path
  local_var_path = '/api/v1/transaction'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'txid'] = txid

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Transaction' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#transactions_get(opts = {}) ⇒ Object

Returns transactions that match the filters.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :addrs (String)

    command separated list of addresses

  • :confirmed (String)

    Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all]

Returns:

  • (Object)


1994
1995
1996
1997
# File 'lib/sky_api/api/default_api.rb', line 1994

def transactions_get(opts = {})
  data, _status_code, _headers = transactions_get_with_http_info(opts)
  data
end

#transactions_get_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

Returns transactions that match the filters.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :addrs (String)

    command separated list of addresses

  • :confirmed (String)

    Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all]

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
# File 'lib/sky_api/api/default_api.rb', line 2004

def transactions_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.transactions_get ...'
  end
  # resource path
  local_var_path = '/api/v1/transactions'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'addrs'] = opts[:'addrs'] if !opts[:'addrs'].nil?
  query_params[:'confirmed'] = opts[:'confirmed'] if !opts[:'confirmed'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#transactions_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#transactions_post(opts = {}) ⇒ Object

Returns transactions that match the filters.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :addrs (String)

    command separated list of addresses

  • :confirmed (String)

    Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all]

Returns:

  • (Object)


2054
2055
2056
2057
# File 'lib/sky_api/api/default_api.rb', line 2054

def transactions_post(opts = {})
  data, _status_code, _headers = transactions_post_with_http_info(opts)
  data
end

#transactions_post_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

Returns transactions that match the filters.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :addrs (String)

    command separated list of addresses

  • :confirmed (String)

    Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all]

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
# File 'lib/sky_api/api/default_api.rb', line 2064

def transactions_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.transactions_post ...'
  end
  # resource path
  local_var_path = '/api/v1/transactions'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'addrs'] = opts[:'addrs'] if !opts[:'addrs'].nil?
  query_params[:'confirmed'] = opts[:'confirmed'] if !opts[:'confirmed'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#transactions_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#uxout(opts = {}) ⇒ Object

Returns an unspent output by ID.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :uxid (String)

    uxid to filter by

Returns:

  • (Object)


2113
2114
2115
2116
# File 'lib/sky_api/api/default_api.rb', line 2113

def uxout(opts = {})
  data, _status_code, _headers = uxout_with_http_info(opts)
  data
end

#uxout_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

Returns an unspent output by ID.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :uxid (String)

    uxid to filter by

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
# File 'lib/sky_api/api/default_api.rb', line 2122

def uxout_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.uxout ...'
  end
  # resource path
  local_var_path = '/api/v1/uxout'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'uxid'] = opts[:'uxid'] if !opts[:'uxid'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#uxout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#verify_address(address, opts = {}) ⇒ Object

Verifies a Skycoin address.

Parameters:

  • address (Object)

    Address id.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


2170
2171
2172
2173
# File 'lib/sky_api/api/default_api.rb', line 2170

def verify_address(address, opts = {})
  data, _status_code, _headers = verify_address_with_http_info(address, opts)
  data
end

#verify_address_with_http_info(address, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Verifies a Skycoin address.

Parameters:

  • address (Object)

    Address id.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
# File 'lib/sky_api/api/default_api.rb', line 2179

def verify_address_with_http_info(address, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.verify_address ...'
  end
  # verify the required parameter 'address' is set
  if @api_client.config.client_side_validation && address.nil?
    fail ArgumentError, "Missing the required parameter 'address' when calling DefaultApi.verify_address"
  end
  # resource path
  local_var_path = '/api/v2/address/verify'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'address'] = address

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#verify_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#version(opts = {}) ⇒ InlineResponse2005

versionHandler returns the application version info

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2230
2231
2232
2233
# File 'lib/sky_api/api/default_api.rb', line 2230

def version(opts = {})
  data, _status_code, _headers = version_with_http_info(opts)
  data
end

#version_with_http_info(opts = {}) ⇒ Array<(InlineResponse2005, Integer, Hash)>

versionHandler returns the application version info

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(InlineResponse2005, Integer, Hash)>)

    InlineResponse2005 data, response status code and response headers



2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
# File 'lib/sky_api/api/default_api.rb', line 2238

def version_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.version ...'
  end
  # resource path
  local_var_path = '/api/v1/version'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'InlineResponse2005' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet(id, opts = {}) ⇒ Object

Returns a wallet by id.

Parameters:

  • id (String)

    tags to filter by

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


2285
2286
2287
2288
# File 'lib/sky_api/api/default_api.rb', line 2285

def wallet(id, opts = {})
  data, _status_code, _headers = wallet_with_http_info(id, opts)
  data
end

#wallet_balance(id, opts = {}) ⇒ Object

Returns the wallet’s balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends.

Parameters:

  • id (String)

    tags to filter by

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


2346
2347
2348
2349
# File 'lib/sky_api/api/default_api.rb', line 2346

def wallet_balance(id, opts = {})
  data, _status_code, _headers = wallet_balance_with_http_info(id, opts)
  data
end

#wallet_balance_with_http_info(id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Returns the wallet&#39;s balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends.

Parameters:

  • id (String)

    tags to filter by

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
# File 'lib/sky_api/api/default_api.rb', line 2355

def wallet_balance_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet_balance ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.wallet_balance"
  end
  # resource path
  local_var_path = '/api/v1/wallet/balance'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'id'] = id

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet_balance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet_create(seed, label, opts = {}) ⇒ Object

Loads wallet from seed, will scan ahead N address and load addresses till the last one that have coins.

Parameters:

  • seed (String)

    Wallet seed.

  • label (String)

    Wallet label.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :scan (Integer)

    The number of addresses to scan ahead for balances.

  • :encrypt (Boolean)

    Encrypt wallet.

  • :password (String)

    Wallet Password

Returns:

  • (Object)


2411
2412
2413
2414
# File 'lib/sky_api/api/default_api.rb', line 2411

def wallet_create(seed, label, opts = {})
  data, _status_code, _headers = wallet_create_with_http_info(seed, label, opts)
  data
end

#wallet_create_with_http_info(seed, label, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Loads wallet from seed, will scan ahead N address and load addresses till the last one that have coins.

Parameters:

  • seed (String)

    Wallet seed.

  • label (String)

    Wallet label.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :scan (Integer)

    The number of addresses to scan ahead for balances.

  • :encrypt (Boolean)

    Encrypt wallet.

  • :password (String)

    Wallet Password

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
# File 'lib/sky_api/api/default_api.rb', line 2424

def wallet_create_with_http_info(seed, label, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet_create ...'
  end
  # verify the required parameter 'seed' is set
  if @api_client.config.client_side_validation && seed.nil?
    fail ArgumentError, "Missing the required parameter 'seed' when calling DefaultApi.wallet_create"
  end
  # verify the required parameter 'label' is set
  if @api_client.config.client_side_validation && label.nil?
    fail ArgumentError, "Missing the required parameter 'label' when calling DefaultApi.wallet_create"
  end
  if @api_client.config.client_side_validation && !opts[:'scan'].nil? && opts[:'scan'] < 1
    fail ArgumentError, 'invalid value for "opts[:"scan"]" when calling DefaultApi.wallet_create, must be greater than or equal to 1.'
  end

  # resource path
  local_var_path = '/api/v1/wallet/create'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])
  header_params[:'seed'] = seed
  header_params[:'label'] = label
  header_params[:'scan'] = opts[:'scan'] if !opts[:'scan'].nil?
  header_params[:'encrypt'] = opts[:'encrypt'] if !opts[:'encrypt'].nil?
  header_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet_decrypt(id, password, opts = {}) ⇒ Object

Decrypts wallet.

Parameters:

  • id (String)

    Wallet id.

  • password (String)

    Wallet password.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


2489
2490
2491
2492
# File 'lib/sky_api/api/default_api.rb', line 2489

def wallet_decrypt(id, password, opts = {})
  data, _status_code, _headers = wallet_decrypt_with_http_info(id, password, opts)
  data
end

#wallet_decrypt_with_http_info(id, password, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Decrypts wallet.

Parameters:

  • id (String)

    Wallet id.

  • password (String)

    Wallet password.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
# File 'lib/sky_api/api/default_api.rb', line 2499

def wallet_decrypt_with_http_info(id, password, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet_decrypt ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.wallet_decrypt"
  end
  # verify the required parameter 'password' is set
  if @api_client.config.client_side_validation && password.nil?
    fail ArgumentError, "Missing the required parameter 'password' when calling DefaultApi.wallet_decrypt"
  end
  # resource path
  local_var_path = '/api/v1/wallet/decrypt'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])
  header_params[:'id'] = id
  header_params[:'password'] = password

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet_decrypt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet_encrypt(id, password, opts = {}) ⇒ Object

Encrypt wallet.

Parameters:

  • id (String)

    Wallet id.

  • password (String)

    Wallet password.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


2557
2558
2559
2560
# File 'lib/sky_api/api/default_api.rb', line 2557

def wallet_encrypt(id, password, opts = {})
  data, _status_code, _headers = wallet_encrypt_with_http_info(id, password, opts)
  data
end

#wallet_encrypt_with_http_info(id, password, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Encrypt wallet.

Parameters:

  • id (String)

    Wallet id.

  • password (String)

    Wallet password.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
# File 'lib/sky_api/api/default_api.rb', line 2567

def wallet_encrypt_with_http_info(id, password, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet_encrypt ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.wallet_encrypt"
  end
  # verify the required parameter 'password' is set
  if @api_client.config.client_side_validation && password.nil?
    fail ArgumentError, "Missing the required parameter 'password' when calling DefaultApi.wallet_encrypt"
  end
  # resource path
  local_var_path = '/api/v1/wallet/encrypt'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])
  header_params[:'id'] = id
  header_params[:'password'] = password

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet_encrypt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet_folder(addr, opts = {}) ⇒ InlineResponse2007

Returns the wallet directory path

Parameters:

  • addr (String)

    Address port

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2624
2625
2626
2627
# File 'lib/sky_api/api/default_api.rb', line 2624

def wallet_folder(addr, opts = {})
  data, _status_code, _headers = wallet_folder_with_http_info(addr, opts)
  data
end

#wallet_folder_with_http_info(addr, opts = {}) ⇒ Array<(InlineResponse2007, Integer, Hash)>

Returns the wallet directory path

Parameters:

  • addr (String)

    Address port

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(InlineResponse2007, Integer, Hash)>)

    InlineResponse2007 data, response status code and response headers



2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
# File 'lib/sky_api/api/default_api.rb', line 2633

def wallet_folder_with_http_info(addr, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet_folder ...'
  end
  # verify the required parameter 'addr' is set
  if @api_client.config.client_side_validation && addr.nil?
    fail ArgumentError, "Missing the required parameter 'addr' when calling DefaultApi.wallet_folder"
  end
  # resource path
  local_var_path = '/api/v1/wallets/folderName'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'addr'] = addr

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'InlineResponse2007' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet_new_address(id, opts = {}) ⇒ Object

Generates new addresses

Parameters:

  • id (String)

    Wallet Id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :num (String)

    The number you want to generate

  • :password (String)

    Wallet Password

Returns:

  • (Object)


2687
2688
2689
2690
# File 'lib/sky_api/api/default_api.rb', line 2687

def wallet_new_address(id, opts = {})
  data, _status_code, _headers = wallet_new_address_with_http_info(id, opts)
  data
end

#wallet_new_address_with_http_info(id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Generates new addresses

Parameters:

  • id (String)

    Wallet Id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :num (String)

    The number you want to generate

  • :password (String)

    Wallet Password

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
# File 'lib/sky_api/api/default_api.rb', line 2698

def wallet_new_address_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet_new_address ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.wallet_new_address"
  end
  # resource path
  local_var_path = '/api/v1/wallet/newAddress'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'id'] = id
  query_params[:'num'] = opts[:'num'] if !opts[:'num'].nil?
  query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet_new_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet_new_seed(opts = {}) ⇒ Object

Returns the wallet directory path

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :entropy (String)

    Entropy bitSize.

Returns:

  • (Object)


2752
2753
2754
2755
# File 'lib/sky_api/api/default_api.rb', line 2752

def wallet_new_seed(opts = {})
  data, _status_code, _headers = wallet_new_seed_with_http_info(opts)
  data
end

#wallet_new_seed_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

Returns the wallet directory path

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :entropy (String)

    Entropy bitSize.

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
# File 'lib/sky_api/api/default_api.rb', line 2761

def wallet_new_seed_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet_new_seed ...'
  end
  allowable_values = ["128", "256"]
  if @api_client.config.client_side_validation && opts[:'entropy'] && !allowable_values.include?(opts[:'entropy'])
    fail ArgumentError, "invalid value for \"entropy\", must be one of #{allowable_values}"
  end
  # resource path
  local_var_path = '/api/v1/wallet/newSeed'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'entropy'] = opts[:'entropy'] if !opts[:'entropy'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet_new_seed\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet_recover(id, seed, opts = {}) ⇒ Object

Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned.

Parameters:

  • id (String)

    Wallet id.

  • seed (String)

    Wallet seed.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :password (String)

    Wallet password.

Returns:

  • (Object)


2815
2816
2817
2818
# File 'lib/sky_api/api/default_api.rb', line 2815

def wallet_recover(id, seed, opts = {})
  data, _status_code, _headers = wallet_recover_with_http_info(id, seed, opts)
  data
end

#wallet_recover_with_http_info(id, seed, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned.

Parameters:

  • id (String)

    Wallet id.

  • seed (String)

    Wallet seed.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :password (String)

    Wallet password.

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
# File 'lib/sky_api/api/default_api.rb', line 2826

def wallet_recover_with_http_info(id, seed, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet_recover ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.wallet_recover"
  end
  # verify the required parameter 'seed' is set
  if @api_client.config.client_side_validation && seed.nil?
    fail ArgumentError, "Missing the required parameter 'seed' when calling DefaultApi.wallet_recover"
  end
  # resource path
  local_var_path = '/api/v2/wallet/recover'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])
  header_params[:'id'] = id
  header_params[:'seed'] = seed
  header_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet_recover\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet_seed(id, password, opts = {}) ⇒ Object

This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned.

Parameters:

  • id (String)

    Wallet Id.

  • password (String)

    Wallet password.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


2885
2886
2887
2888
# File 'lib/sky_api/api/default_api.rb', line 2885

def wallet_seed(id, password, opts = {})
  data, _status_code, _headers = wallet_seed_with_http_info(id, password, opts)
  data
end

#wallet_seed_verify(opts = {}) ⇒ Object

Verifies a wallet seed.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :seed (String)

    Seed to be verified.

Returns:

  • (Object)


2952
2953
2954
2955
# File 'lib/sky_api/api/default_api.rb', line 2952

def wallet_seed_verify(opts = {})
  data, _status_code, _headers = wallet_seed_verify_with_http_info(opts)
  data
end

#wallet_seed_verify_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>

Verifies a wallet seed.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :seed (String)

    Seed to be verified.

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
# File 'lib/sky_api/api/default_api.rb', line 2961

def wallet_seed_verify_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet_seed_verify ...'
  end
  # resource path
  local_var_path = '/api/v2/wallet/seed/verify'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])
  header_params[:'seed'] = opts[:'seed'] if !opts[:'seed'].nil?

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet_seed_verify\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet_seed_with_http_info(id, password, opts = {}) ⇒ Array<(Object, Integer, Hash)>

This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned.

Parameters:

  • id (String)

    Wallet Id.

  • password (String)

    Wallet password.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
# File 'lib/sky_api/api/default_api.rb', line 2895

def wallet_seed_with_http_info(id, password, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet_seed ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.wallet_seed"
  end
  # verify the required parameter 'password' is set
  if @api_client.config.client_side_validation && password.nil?
    fail ArgumentError, "Missing the required parameter 'password' when calling DefaultApi.wallet_seed"
  end
  # resource path
  local_var_path = '/api/v1/wallet/seed'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'id'] = id
  query_params[:'password'] = password

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet_seed\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet_transaction(wallet_transaction_request, opts = {}) ⇒ Object

Creates a signed transaction

Parameters:

Returns:

  • (Object)


3009
3010
3011
3012
# File 'lib/sky_api/api/default_api.rb', line 3009

def wallet_transaction(wallet_transaction_request, opts = {})
  data, _status_code, _headers = wallet_transaction_with_http_info(wallet_transaction_request, opts)
  data
end

#wallet_transaction_sign(wallet_transaction_sign_request, opts = {}) ⇒ InlineResponse2009

Creates a signed transaction

Parameters:

Returns:



3071
3072
3073
3074
# File 'lib/sky_api/api/default_api.rb', line 3071

def wallet_transaction_sign(wallet_transaction_sign_request, opts = {})
  data, _status_code, _headers = wallet_transaction_sign_with_http_info(wallet_transaction_sign_request, opts)
  data
end

#wallet_transaction_sign_with_http_info(wallet_transaction_sign_request, opts = {}) ⇒ Array<(InlineResponse2009, Integer, Hash)>

Creates a signed transaction

Parameters:

Returns:

  • (Array<(InlineResponse2009, Integer, Hash)>)

    InlineResponse2009 data, response status code and response headers



3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
# File 'lib/sky_api/api/default_api.rb', line 3080

def wallet_transaction_sign_with_http_info(wallet_transaction_sign_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet_transaction_sign ...'
  end
  # verify the required parameter 'wallet_transaction_sign_request' is set
  if @api_client.config.client_side_validation && wallet_transaction_sign_request.nil?
    fail ArgumentError, "Missing the required parameter 'wallet_transaction_sign_request' when calling DefaultApi.wallet_transaction_sign"
  end
  # resource path
  local_var_path = '/api/v2/wallet/transaction/sign'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(wallet_transaction_sign_request) 

  # return_type
  return_type = opts[:return_type] || 'InlineResponse2009' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet_transaction_sign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet_transaction_with_http_info(wallet_transaction_request, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Creates a signed transaction

Parameters:

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
# File 'lib/sky_api/api/default_api.rb', line 3018

def wallet_transaction_with_http_info(wallet_transaction_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet_transaction ...'
  end
  # verify the required parameter 'wallet_transaction_request' is set
  if @api_client.config.client_side_validation && wallet_transaction_request.nil?
    fail ArgumentError, "Missing the required parameter 'wallet_transaction_request' when calling DefaultApi.wallet_transaction"
  end
  # resource path
  local_var_path = '/api/v1/wallet/transaction'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] || @api_client.object_to_http_body(wallet_transaction_request) 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet_transactions(id, opts = {}) ⇒ InlineResponse2006

Parameters:

  • id (String)

    Wallet Id.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



3132
3133
3134
3135
# File 'lib/sky_api/api/default_api.rb', line 3132

def wallet_transactions(id, opts = {})
  data, _status_code, _headers = wallet_transactions_with_http_info(id, opts)
  data
end

#wallet_transactions_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, Integer, Hash)>

Returns InlineResponse2006 data, response status code and response headers.

Parameters:

  • id (String)

    Wallet Id.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(InlineResponse2006, Integer, Hash)>)

    InlineResponse2006 data, response status code and response headers



3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
# File 'lib/sky_api/api/default_api.rb', line 3140

def wallet_transactions_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet_transactions ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.wallet_transactions"
  end
  # resource path
  local_var_path = '/api/v1/wallet/transactions'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'id'] = id

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'InlineResponse2006' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet_unload(id, opts = {}) ⇒ nil

Unloads wallet from the wallet service.

Parameters:

  • id (String)

    Wallet Id.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3192
3193
3194
3195
# File 'lib/sky_api/api/default_api.rb', line 3192

def wallet_unload(id, opts = {})
  wallet_unload_with_http_info(id, opts)
  nil
end

#wallet_unload_with_http_info(id, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Unloads wallet from the wallet service.

Parameters:

  • id (String)

    Wallet Id.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
# File 'lib/sky_api/api/default_api.rb', line 3201

def wallet_unload_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet_unload ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.wallet_unload"
  end
  # resource path
  local_var_path = '/api/v1/wallet/unload'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'id'] = id

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet_unload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet_update(id, label, opts = {}) ⇒ String

Update the wallet.

Parameters:

  • id (String)

    Wallet Id.

  • label (String)

    The label the wallet will be updated to.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


3254
3255
3256
3257
# File 'lib/sky_api/api/default_api.rb', line 3254

def wallet_update(id, label, opts = {})
  data, _status_code, _headers = wallet_update_with_http_info(id, label, opts)
  data
end

#wallet_update_with_http_info(id, label, opts = {}) ⇒ Array<(String, Integer, Hash)>

Update the wallet.

Parameters:

  • id (String)

    Wallet Id.

  • label (String)

    The label the wallet will be updated to.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(String, Integer, Hash)>)

    String data, response status code and response headers



3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
# File 'lib/sky_api/api/default_api.rb', line 3264

def wallet_update_with_http_info(id, label, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet_update ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.wallet_update"
  end
  # verify the required parameter 'label' is set
  if @api_client.config.client_side_validation && label.nil?
    fail ArgumentError, "Missing the required parameter 'label' when calling DefaultApi.wallet_update"
  end
  # resource path
  local_var_path = '/api/v1/wallet/update'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'application/xml'])
  header_params[:'id'] = id
  header_params[:'label'] = label

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'String' 

  # auth_names
  auth_names = opts[:auth_names] || ['csrfAuth']

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallet_with_http_info(id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Returns a wallet by id.

Parameters:

  • id (String)

    tags to filter by

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
# File 'lib/sky_api/api/default_api.rb', line 2294

def wallet_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallet ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.wallet"
  end
  # resource path
  local_var_path = '/api/v1/wallet'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'id'] = id

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Object' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#wallets(opts = {}) ⇒ Array<Object>

Returns all loaded wallets

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<Object>)


3320
3321
3322
3323
# File 'lib/sky_api/api/default_api.rb', line 3320

def wallets(opts = {})
  data, _status_code, _headers = wallets_with_http_info(opts)
  data
end

#wallets_with_http_info(opts = {}) ⇒ Array<(Array<Object>, Integer, Hash)>

Returns all loaded wallets

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<Object>, Integer, Hash)>)

    Array<Object> data, response status code and response headers



3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
# File 'lib/sky_api/api/default_api.rb', line 3328

def wallets_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.wallets ...'
  end
  # resource path
  local_var_path = '/api/v1/wallets'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml', ])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:body] 

  # return_type
  return_type = opts[:return_type] || 'Array<Object>' 

  # auth_names
  auth_names = opts[:auth_names] || []

  new_options = opts.merge(
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#wallets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end