Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sky_api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sky_api

  • 0.26.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

sky_api

SkyApi - the Ruby gem for the Skycoin REST API.

Skycoin is a next-generation cryptocurrency.

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 0.26.0
  • Package version: 0.26.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit https://skycoin.net

Installation

Build a gem

To build the Ruby code into a gem:

gem build sky_api.gemspec

Then either install the gem locally:

gem install ./sky_api-0.26.0.gem

(for development, run gem install --dev ./sky_api-0.26.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'sky_api', '~> 0.26.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'sky_api', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'sky_api'

api_instance = SkyApi::DefaultApi.new

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

Documentation for API Endpoints

All URIs are relative to http://127.0.0.1:6420

ClassMethodHTTP requestDescription
SkyApi::DefaultApiaddress_countGET /api/v1/addresscountReturns the total number of unique address that have coins.
SkyApi::DefaultApiaddress_uxoutsGET /api/v1/address_uxouts
SkyApi::DefaultApiapi_v1_rawtx_getGET /api/v1/rawtx
SkyApi::DefaultApiapi_v2_metrics_getGET /api/v2/metrics
SkyApi::DefaultApibalance_getGET /api/v1/balanceReturns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends.
SkyApi::DefaultApibalance_postPOST /api/v1/balanceReturns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends.
SkyApi::DefaultApiblockGET /api/v1/blockReturns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends.
SkyApi::DefaultApiblockchain_metadataGET /api/v1/blockchain/metadataReturns the blockchain metadata.
SkyApi::DefaultApiblockchain_progressGET /api/v1/blockchain/progressReturns the blockchain sync progress.
SkyApi::DefaultApiblocksGET /api/v1/blocksReturns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends.
SkyApi::DefaultApicoin_supplyGET /api/v1/coinSupply
SkyApi::DefaultApicsrfGET /api/v1/csrfCreates a new CSRF token. Previous CSRF tokens are invalidated by this call.
SkyApi::DefaultApidata_deleteDELETE /api/v2/data
SkyApi::DefaultApidata_getGET /api/v2/data
SkyApi::DefaultApidata_postPOST /api/v2/data
SkyApi::DefaultApidefault_connectionsGET /api/v1/network/defaultConnectionsdefaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\n They are not necessarily connected to.
SkyApi::DefaultApihealthGET /api/v1/healthReturns node health data.
SkyApi::DefaultApilast_blocksGET /api/v1/last_blocks
SkyApi::DefaultApinetwork_connectionGET /api/v1/network/connectionThis endpoint returns a specific connection.
SkyApi::DefaultApinetwork_connectionsGET /api/v1/network/connectionsThis endpoint returns all outgoings connections.
SkyApi::DefaultApinetwork_connections_disconnectPOST /api/v1/network/connection/disconnect
SkyApi::DefaultApinetwork_connections_exchangeGET /api/v1/network/connections/exchange
SkyApi::DefaultApinetwork_connections_trustGET /api/v1/network/connections/trusttrustConnectionsHandler 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.
SkyApi::DefaultApioutputs_getGET /api/v1/outputsIf 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.
SkyApi::DefaultApioutputs_postPOST /api/v1/outputsIf 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.
SkyApi::DefaultApipending_txsGET /api/v1/pendingTxs
SkyApi::DefaultApiresend_unconfirmed_txnsPOST /api/v1/resendUnconfirmedTxns
SkyApi::DefaultApirichlistGET /api/v1/richlistReturns the top skycoin holders.
SkyApi::DefaultApitransactionGET /api/v1/transaction
SkyApi::DefaultApitransaction_injectPOST /api/v1/injectTransactionBroadcast a hex-encoded, serialized transaction to the network.
SkyApi::DefaultApitransaction_postPOST /api/v2/transaction
SkyApi::DefaultApitransaction_post_unspentPOST /api/v2/transaction/unspent
SkyApi::DefaultApitransaction_rawGET /api/v2/transaction/rawReturns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed.
SkyApi::DefaultApitransaction_verifyPOST /api/v2/transaction/verify
SkyApi::DefaultApitransactions_getGET /api/v1/transactionsReturns transactions that match the filters.
SkyApi::DefaultApitransactions_postPOST /api/v1/transactionsReturns transactions that match the filters.
SkyApi::DefaultApiuxoutGET /api/v1/uxoutReturns an unspent output by ID.
SkyApi::DefaultApiverify_addressPOST /api/v2/address/verifyVerifies a Skycoin address.
SkyApi::DefaultApiversionGET /api/v1/version
SkyApi::DefaultApiwalletGET /api/v1/walletReturns a wallet by id.
SkyApi::DefaultApiwallet_balanceGET /api/v1/wallet/balanceReturns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends.
SkyApi::DefaultApiwallet_createPOST /api/v1/wallet/create
SkyApi::DefaultApiwallet_decryptPOST /api/v1/wallet/decryptDecrypts wallet.
SkyApi::DefaultApiwallet_encryptPOST /api/v1/wallet/encryptEncrypt wallet.
SkyApi::DefaultApiwallet_folderGET /api/v1/wallets/folderName
SkyApi::DefaultApiwallet_new_addressPOST /api/v1/wallet/newAddress
SkyApi::DefaultApiwallet_new_seedGET /api/v1/wallet/newSeed
SkyApi::DefaultApiwallet_recoverPOST /api/v2/wallet/recoverRecovers 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.
SkyApi::DefaultApiwallet_seedPOST /api/v1/wallet/seedThis endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned.
SkyApi::DefaultApiwallet_seed_verifyPOST /api/v2/wallet/seed/verifyVerifies a wallet seed.
SkyApi::DefaultApiwallet_transactionPOST /api/v1/wallet/transactionCreates a signed transaction
SkyApi::DefaultApiwallet_transaction_signPOST /api/v2/wallet/transaction/signCreates a signed transaction
SkyApi::DefaultApiwallet_transactionsGET /api/v1/wallet/transactions
SkyApi::DefaultApiwallet_unloadPOST /api/v1/wallet/unloadUnloads wallet from the wallet service.
SkyApi::DefaultApiwallet_updatePOST /api/v1/wallet/updateUpdate the wallet.
SkyApi::DefaultApiwalletsGET /api/v1/wallets

Documentation for Models

Documentation for Authorization

csrfAuth

  • Type: API key
  • API key parameter name: X-CSRF-TOKEN
  • Location: HTTP header

FAQs

Package last updated on 24 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc