Generated by DocFX

Class Client

Inheritance
System.Object
Client
Implements
IClient
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VEDriversLite.NeblioAPI
Assembly: VEDriversLite.NeblioAPI.dll
Syntax
public class Client : IClient

Constructors

| Improve this Doc View Source

Client(HttpClient)

Declaration
public Client(HttpClient httpClient)
Parameters
Type Name Description
System.Net.Http.HttpClient httpClient

Properties

| Improve this Doc View Source

BaseUrl

Declaration
public string BaseUrl { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

JsonSerializerSettings

Declaration
protected JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
Type Description
Newtonsoft.Json.JsonSerializerSettings
| Improve this Doc View Source

ReadResponseAsString

Declaration
public bool ReadResponseAsString { get; set; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

BroadcastTxAsync(BroadcastTxRequest)

Broadcasts a signed raw transaction to the network

Declaration
public Task<BroadcastTxResponse> BroadcastTxAsync(BroadcastTxRequest body)
Parameters
Type Name Description
BroadcastTxRequest body
Returns
Type Description
System.Threading.Tasks.Task<BroadcastTxResponse>

An object containing the TXID if the broadcast was successful

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

BroadcastTxAsync(BroadcastTxRequest, CancellationToken)

Broadcasts a signed raw transaction to the network

Declaration
public async Task<BroadcastTxResponse> BroadcastTxAsync(BroadcastTxRequest body, CancellationToken cancellationToken)
Parameters
Type Name Description
BroadcastTxRequest body
System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<BroadcastTxResponse>

An object containing the TXID if the broadcast was successful

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

BurnTokenAsync(BurnTokenRequest)

Builds a transaction that burns an NTP1 Token

Declaration
public Task<BurnTokenResponse> BurnTokenAsync(BurnTokenRequest body)
Parameters
Type Name Description
BurnTokenRequest body
Returns
Type Description
System.Threading.Tasks.Task<BurnTokenResponse>

An object representing the tx to burn the token

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

BurnTokenAsync(BurnTokenRequest, CancellationToken)

Builds a transaction that burns an NTP1 Token

Declaration
public async Task<BurnTokenResponse> BurnTokenAsync(BurnTokenRequest body, CancellationToken cancellationToken)
Parameters
Type Name Description
BurnTokenRequest body
System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<BurnTokenResponse>

An object representing the tx to burn the token

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetAddressAsync(String)

Returns address object

Declaration
public Task<GetAddressResponse> GetAddressAsync(string address)
Parameters
Type Name Description
System.String address

Address

Returns
Type Description
System.Threading.Tasks.Task<GetAddressResponse>

Object containing address info

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetAddressAsync(String, CancellationToken)

Returns address object

Declaration
public async Task<GetAddressResponse> GetAddressAsync(string address, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String address

Address

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<GetAddressResponse>

Object containing address info

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetAddressBalanceAsync(String)

Returns address balance in sats

Declaration
public Task<double> GetAddressBalanceAsync(string address)
Parameters
Type Name Description
System.String address

Address

Returns
Type Description
System.Threading.Tasks.Task<System.Double>

Address balance

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetAddressBalanceAsync(String, CancellationToken)

Returns address balance in sats

Declaration
public async Task<double> GetAddressBalanceAsync(string address, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String address

Address

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<System.Double>

Address balance

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetAddressInfoAsync(String)

Information On a Neblio Address

Declaration
public Task<GetAddressInfoResponse> GetAddressInfoAsync(string address)
Parameters
Type Name Description
System.String address

Neblio Address to get information on.

Returns
Type Description
System.Threading.Tasks.Task<GetAddressInfoResponse>

An object with an array of UTXOs for this address

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetAddressInfoAsync(String, CancellationToken)

Information On a Neblio Address

Declaration
public async Task<GetAddressInfoResponse> GetAddressInfoAsync(string address, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String address

Neblio Address to get information on.

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<GetAddressInfoResponse>

An object with an array of UTXOs for this address

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetAddressTotalReceivedAsync(String)

Returns total received by address in sats

Declaration
public Task<double> GetAddressTotalReceivedAsync(string address)
Parameters
Type Name Description
System.String address

Address

Returns
Type Description
System.Threading.Tasks.Task<System.Double>

Total received by address

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetAddressTotalReceivedAsync(String, CancellationToken)

Returns total received by address in sats

Declaration
public async Task<double> GetAddressTotalReceivedAsync(string address, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String address

Address

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<System.Double>

Total received by address

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetAddressTotalSentAsync(String)

Returns total sent by address in sats

Declaration
public Task<double> GetAddressTotalSentAsync(string address)
Parameters
Type Name Description
System.String address

Address

Returns
Type Description
System.Threading.Tasks.Task<System.Double>

Total sent by address

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetAddressTotalSentAsync(String, CancellationToken)

Returns total sent by address in sats

Declaration
public async Task<double> GetAddressTotalSentAsync(string address, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String address

Address

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<System.Double>

Total sent by address

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetAddressUnconfirmedBalanceAsync(String)

Returns address unconfirmed balance in sats

Declaration
public Task<double> GetAddressUnconfirmedBalanceAsync(string address)
Parameters
Type Name Description
System.String address

Address

Returns
Type Description
System.Threading.Tasks.Task<System.Double>

Address unconfirmed balance

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetAddressUnconfirmedBalanceAsync(String, CancellationToken)

Returns address unconfirmed balance in sats

Declaration
public async Task<double> GetAddressUnconfirmedBalanceAsync(string address, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String address

Address

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<System.Double>

Address unconfirmed balance

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetAddressUtxosAsync(String)

Returns all UTXOs at a given address

Declaration
public Task<ICollection<Anonymous>> GetAddressUtxosAsync(string address)
Parameters
Type Name Description
System.String address

Address

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.ICollection<Anonymous>>

UTXOs at an address

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetAddressUtxosAsync(String, CancellationToken)

Returns all UTXOs at a given address

Declaration
public async Task<ICollection<Anonymous>> GetAddressUtxosAsync(string address, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String address

Address

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.ICollection<Anonymous>>

UTXOs at an address

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetBlockAsync(String)

Returns information regarding a Neblio block

Declaration
public Task<GetBlockResponse> GetBlockAsync(string blockhash)
Parameters
Type Name Description
System.String blockhash

Block Hash

Returns
Type Description
System.Threading.Tasks.Task<GetBlockResponse>

Object containing all information on a blockchain block

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetBlockAsync(String, CancellationToken)

Returns information regarding a Neblio block

Declaration
public async Task<GetBlockResponse> GetBlockAsync(string blockhash, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String blockhash

Block Hash

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<GetBlockResponse>

Object containing all information on a blockchain block

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetBlockIndexAsync(Double)

Returns block hash of block

Declaration
public Task<GetBlockIndexResponse> GetBlockIndexAsync(double blockindex)
Parameters
Type Name Description
System.Double blockindex

Block Index

Returns
Type Description
System.Threading.Tasks.Task<GetBlockIndexResponse>

Object containing block hash

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetBlockIndexAsync(Double, CancellationToken)

Returns block hash of block

Declaration
public async Task<GetBlockIndexResponse> GetBlockIndexAsync(double blockindex, CancellationToken cancellationToken)
Parameters
Type Name Description
System.Double blockindex

Block Index

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<GetBlockIndexResponse>

Object containing block hash

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetRawTxAsync(String)

Returns raw transaction hex

Declaration
public Task<GetRawTxResponse> GetRawTxAsync(string txid)
Parameters
Type Name Description
System.String txid

Transaction ID

Returns
Type Description
System.Threading.Tasks.Task<GetRawTxResponse>

Object containing raw hex of transaction

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetRawTxAsync(String, CancellationToken)

Returns raw transaction hex

Declaration
public async Task<GetRawTxResponse> GetRawTxAsync(string txid, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String txid

Transaction ID

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<GetRawTxResponse>

Object containing raw hex of transaction

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetStatusAsync(String)

Utility API for calling several blockchain node functions

Declaration
public Task<GetStatusResponse> GetStatusAsync(string q)
Parameters
Type Name Description
System.String q

Function to call, getInfo, getDifficulty, getBestBlockHash, or getLastBlockHash

Returns
Type Description
System.Threading.Tasks.Task<GetStatusResponse>

Function Response

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetStatusAsync(String, CancellationToken)

Utility API for calling several blockchain node functions

Declaration
public async Task<GetStatusResponse> GetStatusAsync(string q, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String q

Function to call, getInfo, getDifficulty, getBestBlockHash, or getLastBlockHash

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<GetStatusResponse>

Function Response

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetSyncAsync()

Get node sync status

Declaration
public Task<GetSyncResponse> GetSyncAsync()
Returns
Type Description
System.Threading.Tasks.Task<GetSyncResponse>

Sync Info

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetSyncAsync(CancellationToken)

Get node sync status

Declaration
public async Task<GetSyncResponse> GetSyncAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<GetSyncResponse>

Sync Info

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetTokenHoldersAsync(String)

Get Addresses Holding a Token

Declaration
public Task<GetTokenHoldersResponse> GetTokenHoldersAsync(string tokenid)
Parameters
Type Name Description
System.String tokenid

TokenId to request metadata for

Returns
Type Description
System.Threading.Tasks.Task<GetTokenHoldersResponse>

An object containing all of the addresses holding a token

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetTokenHoldersAsync(String, CancellationToken)

Get Addresses Holding a Token

Declaration
public async Task<GetTokenHoldersResponse> GetTokenHoldersAsync(string tokenid, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String tokenid

TokenId to request metadata for

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<GetTokenHoldersResponse>

An object containing all of the addresses holding a token

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetTokenIdAsync(String)

Returns the tokenId representing a token

Declaration
public Task<GetTokenIdResponse> GetTokenIdAsync(string tokensymbol)
Parameters
Type Name Description
System.String tokensymbol

Token symbol

Returns
Type Description
System.Threading.Tasks.Task<GetTokenIdResponse>

Object containing the token symbol and ID, if token symbol does not exist on network, empty object is returned.

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetTokenIdAsync(String, CancellationToken)

Returns the tokenId representing a token

Declaration
public async Task<GetTokenIdResponse> GetTokenIdAsync(string tokensymbol, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String tokensymbol

Token symbol

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<GetTokenIdResponse>

Object containing the token symbol and ID, if token symbol does not exist on network, empty object is returned.

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetTokenMetadataAsync(String, Nullable<Double>)

Get Metadata of Token

Declaration
public Task<GetTokenMetadataResponse> GetTokenMetadataAsync(string tokenid, double? verbosity)
Parameters
Type Name Description
System.String tokenid

TokenId to request metadata for

System.Nullable<System.Double> verbosity

0 (Default) is fastest, 1 contains token stats, 2 contains token holding addresses

Returns
Type Description
System.Threading.Tasks.Task<GetTokenMetadataResponse>

An object containing the metadata of a token

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetTokenMetadataAsync(String, Nullable<Double>, CancellationToken)

Get Metadata of Token

Declaration
public async Task<GetTokenMetadataResponse> GetTokenMetadataAsync(string tokenid, double? verbosity, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String tokenid

TokenId to request metadata for

System.Nullable<System.Double> verbosity

0 (Default) is fastest, 1 contains token stats, 2 contains token holding addresses

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<GetTokenMetadataResponse>

An object containing the metadata of a token

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetTokenMetadataOfUtxoAsync(String, String, Nullable<Double>)

Get UTXO Metadata of Token

Declaration
public Task<GetTokenMetadataResponse> GetTokenMetadataOfUtxoAsync(string tokenid, string utxo, double? verbosity)
Parameters
Type Name Description
System.String tokenid

TokenId to request metadata for

System.String utxo

Specific UTXO to request metadata for

System.Nullable<System.Double> verbosity

0 (Default) is fastest, 1 contains token stats, 2 contains token holding addresses

Returns
Type Description
System.Threading.Tasks.Task<GetTokenMetadataResponse>

An object containing the metadata of a token for a UTXO

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetTokenMetadataOfUtxoAsync(String, String, Nullable<Double>, CancellationToken)

Get UTXO Metadata of Token

Declaration
public async Task<GetTokenMetadataResponse> GetTokenMetadataOfUtxoAsync(string tokenid, string utxo, double? verbosity, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String tokenid

TokenId to request metadata for

System.String utxo

Specific UTXO to request metadata for

System.Nullable<System.Double> verbosity

0 (Default) is fastest, 1 contains token stats, 2 contains token holding addresses

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<GetTokenMetadataResponse>

An object containing the metadata of a token for a UTXO

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetTransactionInfoAsync(String)

Information On an NTP1 Transaction

Declaration
public Task<GetTransactionInfoResponse> GetTransactionInfoAsync(string txid)
Parameters
Type Name Description
System.String txid

Neblio txid to get information on.

Returns
Type Description
System.Threading.Tasks.Task<GetTransactionInfoResponse>

An object represending this transaction

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetTransactionInfoAsync(String, CancellationToken)

Information On an NTP1 Transaction

Declaration
public async Task<GetTransactionInfoResponse> GetTransactionInfoAsync(string txid, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String txid

Neblio txid to get information on.

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<GetTransactionInfoResponse>

An object represending this transaction

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetTxAsync(String)

Returns transaction object

Declaration
public Task<GetTxResponse> GetTxAsync(string txid)
Parameters
Type Name Description
System.String txid

Transaction ID

Returns
Type Description
System.Threading.Tasks.Task<GetTxResponse>

Object containing transaction info

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetTxAsync(String, CancellationToken)

Returns transaction object

Declaration
public async Task<GetTxResponse> GetTxAsync(string txid, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String txid

Transaction ID

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<GetTxResponse>

Object containing transaction info

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetTxsAsync(String, String, Nullable<Double>)

Get transactions by block or address

Declaration
public Task<GetTxsResponse> GetTxsAsync(string address, string block, double? pageNum)
Parameters
Type Name Description
System.String address

Address

System.String block

Block Hash

System.Nullable<System.Double> pageNum

Page number to display

Returns
Type Description
System.Threading.Tasks.Task<GetTxsResponse>

List of transactions

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

GetTxsAsync(String, String, Nullable<Double>, CancellationToken)

Get transactions by block or address

Declaration
public async Task<GetTxsResponse> GetTxsAsync(string address, string block, double? pageNum, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String address

Address

System.String block

Block Hash

System.Nullable<System.Double> pageNum

Page number to display

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<GetTxsResponse>

List of transactions

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

IssueTokenAsync(IssueTokenRequest)

Builds a transaction that issues a new NTP1 Token

Declaration
public Task<IssueTokenResponse> IssueTokenAsync(IssueTokenRequest body)
Parameters
Type Name Description
IssueTokenRequest body
Returns
Type Description
System.Threading.Tasks.Task<IssueTokenResponse>

An object representing the token created

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

IssueTokenAsync(IssueTokenRequest, CancellationToken)

Builds a transaction that issues a new NTP1 Token

Declaration
public async Task<IssueTokenResponse> IssueTokenAsync(IssueTokenRequest body, CancellationToken cancellationToken)
Parameters
Type Name Description
IssueTokenRequest body
System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<IssueTokenResponse>

An object representing the token created

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<String, IEnumerable<String>>)

Declaration
protected virtual async Task<Client.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers)
Parameters
Type Name Description
System.Net.Http.HttpResponseMessage response
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Collections.Generic.IEnumerable<System.String>> headers
Returns
Type Description
System.Threading.Tasks.Task<Client.ObjectResponseResult<T>>
Type Parameters
Name Description
T
| Improve this Doc View Source

SendTokenAsync(SendTokenRequest)

Builds a transaction that sends an NTP1 Token

Declaration
public Task<SendTokenResponse> SendTokenAsync(SendTokenRequest body)
Parameters
Type Name Description
SendTokenRequest body
Returns
Type Description
System.Threading.Tasks.Task<SendTokenResponse>

An object representing the tx to send the token

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

SendTokenAsync(SendTokenRequest, CancellationToken)

Builds a transaction that sends an NTP1 Token

Declaration
public async Task<SendTokenResponse> SendTokenAsync(SendTokenRequest body, CancellationToken cancellationToken)
Parameters
Type Name Description
SendTokenRequest body
System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<SendTokenResponse>

An object representing the tx to send the token

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

SendTxAsync(BroadcastTxRequest)

Broadcasts a signed raw transaction to the network (not NTP1 specific)

Declaration
public Task<BroadcastTxResponse> SendTxAsync(BroadcastTxRequest body)
Parameters
Type Name Description
BroadcastTxRequest body
Returns
Type Description
System.Threading.Tasks.Task<BroadcastTxResponse>

An object containing the TXID if the broadcast was successful

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

SendTxAsync(BroadcastTxRequest, CancellationToken)

Broadcasts a signed raw transaction to the network (not NTP1 specific)

Declaration
public async Task<BroadcastTxResponse> SendTxAsync(BroadcastTxRequest body, CancellationToken cancellationToken)
Parameters
Type Name Description
BroadcastTxRequest body
System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<BroadcastTxResponse>

An object containing the TXID if the broadcast was successful

Exceptions
Type Condition
ApiException

A server side error occurred.

Implements

IClient