No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.swagger-codegen 1.0.0 Apr 7, 2018
docs 1.2 Jun 1, 2018
lib 1.2 Jun 1, 2018
spec 1.2 Jun 1, 2018
.DS_Store 1.1.1 Apr 20, 2018
.gitignore 1.0.0 Apr 7, 2018
.rspec 1.0.0 Apr 7, 2018
.swagger-codegen-ignore 1.0.0 Apr 7, 2018
Gemfile 1.0.0 Apr 7, 2018
README.md 1.2 Jun 1, 2018
Rakefile 1.0.0 Apr 7, 2018
git_push.sh 1.0.0 Apr 7, 2018
swagger_client.gemspec 1.2 Jun 1, 2018

README.md

swagger_client

SwaggerClient - the Ruby gem for the Neblio REST API Suite

APIs for Interacting with NTP1 Tokens & The Neblio Blockchain

This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.2.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build swagger_client.gemspec

Then either install the gem locally:

gem install ./swagger_client-1.0.0.gem

(for development, run gem install --dev ./swagger_client-1.0.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 'swagger_client', '~> 1.0.0'

Install from Git

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

gem 'swagger_client', :git => 'https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO.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 'swagger_client'

api_instance = SwaggerClient::InsightApi.new

address = "address_example" # String | Address


begin
  #Returns address object
  result = api_instance.get_address(address)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling InsightApi->get_address: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://ntp1node.nebl.io

Class Method HTTP request Description
SwaggerClient::InsightApi get_address GET /ins/addr/{address} Returns address object
SwaggerClient::InsightApi get_address_balance GET /ins/addr/{address}/balance Returns address balance in sats
SwaggerClient::InsightApi get_address_total_received GET /ins/addr/{address}/totalReceived Returns total received by address in sats
SwaggerClient::InsightApi get_address_total_sent GET /ins/addr/{address}/totalSent Returns total sent by address in sats
SwaggerClient::InsightApi get_address_unconfirmed_balance GET /ins/addr/{address}/unconfirmedBalance Returns address unconfirmed balance in sats
SwaggerClient::InsightApi get_address_utxos GET /ins/addr/{address}/utxo Returns all UTXOs at a given address
SwaggerClient::InsightApi get_block GET /ins/block/{blockhash} Returns information regarding a Neblio block
SwaggerClient::InsightApi get_block_index GET /ins/block-index/{blockindex} Returns block hash of block
SwaggerClient::InsightApi get_raw_tx GET /ins/rawtx/{txid} Returns raw transaction hex
SwaggerClient::InsightApi get_status GET /ins/status Utility API for calling several blockchain node functions
SwaggerClient::InsightApi get_sync GET /ins/sync Get node sync status
SwaggerClient::InsightApi get_tx GET /ins/tx/{txid} Returns transaction object
SwaggerClient::InsightApi get_txs GET /ins/txs Get transactions by block or address
SwaggerClient::InsightApi send_tx POST /ins/tx/send Broadcasts a signed raw transaction to the network (not NTP1 specific)
SwaggerClient::NTP1Api broadcast_tx POST /ntp1/broadcast Broadcasts a signed raw transaction to the network
SwaggerClient::NTP1Api burn_token POST /ntp1/burntoken Builds a transaction that burns an NTP1 Token
SwaggerClient::NTP1Api get_address_info GET /ntp1/addressinfo/{address} Information On a Neblio Address
SwaggerClient::NTP1Api get_token_holders GET /ntp1/stakeholders/{tokenid} Get Addresses Holding a Token
SwaggerClient::NTP1Api get_token_id GET /ntp1/tokenid/{tokensymbol} Returns the tokenId representing a token
SwaggerClient::NTP1Api get_token_metadata_of_issuance GET /ntp1/tokenmetadata/{tokenid} Get Issuance Metadata of Token
SwaggerClient::NTP1Api get_token_metadata_of_utxo GET /ntp1/tokenmetadata/{tokenid}/{utxo} Get UTXO Metadata of Token
SwaggerClient::NTP1Api get_transaction_info GET /ntp1/transactioninfo/{txid} Information On an NTP1 Transaction
SwaggerClient::NTP1Api issue_token POST /ntp1/issue Builds a transaction that issues a new NTP1 Token
SwaggerClient::NTP1Api send_token POST /ntp1/sendtoken Builds a transaction that sends an NTP1 Token
SwaggerClient::TestnetFaucetApi testnet_get_faucet GET /testnet/faucet Withdraws testnet NEBL to the specified address
SwaggerClient::TestnetInsightApi testnet_get_address GET /testnet/ins/addr/{address} Returns address object
SwaggerClient::TestnetInsightApi testnet_get_address_balance GET /testnet/ins/addr/{address}/balance Returns address balance in sats
SwaggerClient::TestnetInsightApi testnet_get_address_total_received GET /testnet/ins/addr/{address}/totalReceived Returns total received by address in sats
SwaggerClient::TestnetInsightApi testnet_get_address_total_sent GET /testnet/ins/addr/{address}/totalSent Returns total sent by address in sats
SwaggerClient::TestnetInsightApi testnet_get_address_unconfirmed_balance GET /testnet/ins/addr/{address}/unconfirmedBalance Returns address unconfirmed balance in sats
SwaggerClient::TestnetInsightApi testnet_get_address_utxos GET /testnet/ins/addr/{address}/utxo Returns all UTXOs at a given address
SwaggerClient::TestnetInsightApi testnet_get_block GET /testnet/ins/block/{blockhash} Returns information regarding a Neblio block
SwaggerClient::TestnetInsightApi testnet_get_block_index GET /testnet/ins/block-index/{blockindex} Returns block hash of block
SwaggerClient::TestnetInsightApi testnet_get_raw_tx GET /testnet/ins/rawtx/{txid} Returns raw transaction hex
SwaggerClient::TestnetInsightApi testnet_get_status GET /testnet/ins/status Utility API for calling several blockchain node functions
SwaggerClient::TestnetInsightApi testnet_get_sync GET /testnet/ins/sync Get node sync status
SwaggerClient::TestnetInsightApi testnet_get_tx GET /testnet/ins/tx/{txid} Returns transaction object
SwaggerClient::TestnetInsightApi testnet_get_txs GET /testnet/ins/txs Get transactions by block or address
SwaggerClient::TestnetInsightApi testnet_send_tx POST /testnet/ins/tx/send Broadcasts a signed raw transaction to the network (not NTP1 specific)
SwaggerClient::TestnetNTP1Api testnet_broadcast_tx POST /testnet/ntp1/broadcast Broadcasts a signed raw transaction to the network
SwaggerClient::TestnetNTP1Api testnet_burn_token POST /testnet/ntp1/burntoken Builds a transaction that burns an NTP1 Token
SwaggerClient::TestnetNTP1Api testnet_get_address_info GET /testnet/ntp1/addressinfo/{address} Information On a Neblio Address
SwaggerClient::TestnetNTP1Api testnet_get_token_holders GET /testnet/ntp1/stakeholders/{tokenid} Get Addresses Holding a Token
SwaggerClient::TestnetNTP1Api testnet_get_token_id GET /testnet/ntp1/tokenid/{tokensymbol} Returns the tokenId representing a token
SwaggerClient::TestnetNTP1Api testnet_get_token_metadata_of_issuance GET /testnet/ntp1/tokenmetadata/{tokenid} Get Issuance Metadata of Token
SwaggerClient::TestnetNTP1Api testnet_get_token_metadata_of_utxo GET /testnet/ntp1/tokenmetadata/{tokenid}/{utxo} Get UTXO Metadata of Token
SwaggerClient::TestnetNTP1Api testnet_get_transaction_info GET /testnet/ntp1/transactioninfo/{txid} Information On an NTP1 Transaction
SwaggerClient::TestnetNTP1Api testnet_issue_token POST /testnet/ntp1/issue Builds a transaction that issues a new NTP1 Token
SwaggerClient::TestnetNTP1Api testnet_send_token POST /testnet/ntp1/sendtoken Builds a transaction that sends an NTP1 Token

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.