Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Go API client for neblioapi

APIs for Interacting with NTP1 Tokens & The Neblio Blockchain

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.3.0
  • Package version: 1.2.1
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./neblioapi"

Documentation for API Endpoints

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

Class Method HTTP request Description
InsightApi GetAddress Get /ins/addr/{address} Returns address object
InsightApi GetAddressBalance Get /ins/addr/{address}/balance Returns address balance in sats
InsightApi GetAddressTotalReceived Get /ins/addr/{address}/totalReceived Returns total received by address in sats
InsightApi GetAddressTotalSent Get /ins/addr/{address}/totalSent Returns total sent by address in sats
InsightApi GetAddressUnconfirmedBalance Get /ins/addr/{address}/unconfirmedBalance Returns address unconfirmed balance in sats
InsightApi GetAddressUtxos Get /ins/addr/{address}/utxo Returns all UTXOs at a given address
InsightApi GetBlock Get /ins/block/{blockhash} Returns information regarding a Neblio block
InsightApi GetBlockIndex Get /ins/block-index/{blockindex} Returns block hash of block
InsightApi GetRawTx Get /ins/rawtx/{txid} Returns raw transaction hex
InsightApi GetStatus Get /ins/status Utility API for calling several blockchain node functions
InsightApi GetSync Get /ins/sync Get node sync status
InsightApi GetTx Get /ins/tx/{txid} Returns transaction object
InsightApi GetTxs Get /ins/txs Get transactions by block or address
InsightApi SendTx Post /ins/tx/send Broadcasts a signed raw transaction to the network (not NTP1 specific)
JSONRPCApi JsonRpc Post / Send a JSON-RPC call to a localhost neblio-Qt or nebliod node
NTP1Api BroadcastTx Post /ntp1/broadcast Broadcasts a signed raw transaction to the network
NTP1Api BurnToken Post /ntp1/burntoken Builds a transaction that burns an NTP1 Token
NTP1Api GetAddressInfo Get /ntp1/addressinfo/{address} Information On a Neblio Address
NTP1Api GetTokenHolders Get /ntp1/stakeholders/{tokenid} Get Addresses Holding a Token
NTP1Api GetTokenId Get /ntp1/tokenid/{tokensymbol} Returns the tokenId representing a token
NTP1Api GetTokenMetadata Get /ntp1/tokenmetadata/{tokenid} Get Metadata of Token
NTP1Api GetTokenMetadataOfUtxo Get /ntp1/tokenmetadata/{tokenid}/{utxo} Get UTXO Metadata of Token
NTP1Api GetTransactionInfo Get /ntp1/transactioninfo/{txid} Information On an NTP1 Transaction
NTP1Api IssueToken Post /ntp1/issue Builds a transaction that issues a new NTP1 Token
NTP1Api SendToken Post /ntp1/sendtoken Builds a transaction that sends an NTP1 Token
TestnetFaucetApi TestnetGetFaucet Get /testnet/faucet Withdraws testnet NEBL to the specified address
TestnetInsightApi TestnetGetAddress Get /testnet/ins/addr/{address} Returns address object
TestnetInsightApi TestnetGetAddressBalance Get /testnet/ins/addr/{address}/balance Returns address balance in sats
TestnetInsightApi TestnetGetAddressTotalReceived Get /testnet/ins/addr/{address}/totalReceived Returns total received by address in sats
TestnetInsightApi TestnetGetAddressTotalSent Get /testnet/ins/addr/{address}/totalSent Returns total sent by address in sats
TestnetInsightApi TestnetGetAddressUnconfirmedBalance Get /testnet/ins/addr/{address}/unconfirmedBalance Returns address unconfirmed balance in sats
TestnetInsightApi TestnetGetAddressUtxos Get /testnet/ins/addr/{address}/utxo Returns all UTXOs at a given address
TestnetInsightApi TestnetGetBlock Get /testnet/ins/block/{blockhash} Returns information regarding a Neblio block
TestnetInsightApi TestnetGetBlockIndex Get /testnet/ins/block-index/{blockindex} Returns block hash of block
TestnetInsightApi TestnetGetRawTx Get /testnet/ins/rawtx/{txid} Returns raw transaction hex
TestnetInsightApi TestnetGetStatus Get /testnet/ins/status Utility API for calling several blockchain node functions
TestnetInsightApi TestnetGetSync Get /testnet/ins/sync Get node sync status
TestnetInsightApi TestnetGetTx Get /testnet/ins/tx/{txid} Returns transaction object
TestnetInsightApi TestnetGetTxs Get /testnet/ins/txs Get transactions by block or address
TestnetInsightApi TestnetSendTx Post /testnet/ins/tx/send Broadcasts a signed raw transaction to the network (not NTP1 specific)
TestnetNTP1Api TestnetBroadcastTx Post /testnet/ntp1/broadcast Broadcasts a signed raw transaction to the network
TestnetNTP1Api TestnetBurnToken Post /testnet/ntp1/burntoken Builds a transaction that burns an NTP1 Token
TestnetNTP1Api TestnetGetAddressInfo Get /testnet/ntp1/addressinfo/{address} Information On a Neblio Address
TestnetNTP1Api TestnetGetTokenHolders Get /testnet/ntp1/stakeholders/{tokenid} Get Addresses Holding a Token
TestnetNTP1Api TestnetGetTokenId Get /testnet/ntp1/tokenid/{tokensymbol} Returns the tokenId representing a token
TestnetNTP1Api TestnetGetTokenMetadata Get /testnet/ntp1/tokenmetadata/{tokenid} Get Metadata of Token
TestnetNTP1Api TestnetGetTokenMetadataOfUtxo Get /testnet/ntp1/tokenmetadata/{tokenid}/{utxo} Get UTXO Metadata of Token
TestnetNTP1Api TestnetGetTransactionInfo Get /testnet/ntp1/transactioninfo/{txid} Information On an NTP1 Transaction
TestnetNTP1Api TestnetIssueToken Post /testnet/ntp1/issue Builds a transaction that issues a new NTP1 Token
TestnetNTP1Api TestnetSendToken Post /testnet/ntp1/sendtoken Builds a transaction that sends an NTP1 Token

Documentation For Models

Documentation For Authorization

rpcAuth

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
	UserName: "username",
	Password: "password",
})
r, err := client.Service.Operation(auth, args)

Author

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.