Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 853 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 853 Bytes

Skyapi, a Wrapper for Skycoin Api

This wrapper is Auto generated by openapi-generator directly from Skycoin Api code for version v0.25.1.

For further details of usage of Skyapi wrapper for Skycoin Api see Autogenerated documentation

Specific Node Address

For use a specific node of Skycoin, you just need to create a instance of ApiClient passing the node address:

# Load the gem
require 'sky_api'

config =
api_instance = SkyApi::DefaultApi.new
# Set prefered host
api_instance.api_client.config.host = 'some_host'

begin
  #Returns the total number of unique address that have coins.
  result = api_instance.address_count
  p result
rescue SkyApi::ApiError => e
  puts "Exception when calling DefaultApi->address_count: #{e}"
end

Then in skyapi you can use all methods related to Api Client.