noah_node_go_api

package module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 9 Imported by: 5

README

License undefined

NOAH Node API

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoahNodeApi

type NoahNodeApi struct {
	// contains filtered or unexported fields
}

func New

func New(link string) *NoahNodeApi

func NewWithFallbackRetries

func NewWithFallbackRetries(link string, fallbackRetries int, fallbackTimeout time.Duration) *NoahNodeApi

func (*NoahNodeApi) GetAddress

func (api *NoahNodeApi) GetAddress(address string) (*responses.AddressResponse, error)

func (*NoahNodeApi) GetAddresses

func (api *NoahNodeApi) GetAddresses(addresses []string, height uint64) (*responses.BalancesResponse, error)

func (*NoahNodeApi) GetBlock

func (api *NoahNodeApi) GetBlock(height uint64) (*responses.BlockResponse, error)

func (*NoahNodeApi) GetBlockEvents

func (api *NoahNodeApi) GetBlockEvents(height uint64) (*responses.EventsResponse, error)

func (*NoahNodeApi) GetBlockValidators

func (api *NoahNodeApi) GetBlockValidators(height uint64) (*responses.ValidatorsResponse, error)

func (*NoahNodeApi) GetCandidate

func (api *NoahNodeApi) GetCandidate(pubKey string, height uint64) (*responses.CandidateResponse, error)

func (*NoahNodeApi) GetCandidates

func (api *NoahNodeApi) GetCandidates(height uint64, stakes bool) (*responses.BlockCandidatesResponse, error)

func (*NoahNodeApi) GetCoinInfo

func (api *NoahNodeApi) GetCoinInfo(symbol string) (*responses.CoinInfoResponse, error)

func (*NoahNodeApi) GetEstimateCoinBuy

func (api *NoahNodeApi) GetEstimateCoinBuy(coinToSell string, coinToBuy string, value string) (*responses.EstimateCoinBuyResponse, error)

func (*NoahNodeApi) GetEstimateCoinSell

func (api *NoahNodeApi) GetEstimateCoinSell(coinToSell string, coinToBuy string, value string, height uint64) (*responses.EstimateCoinSellResponse, error)

func (*NoahNodeApi) GetEstimateCoinSellAll

func (api *NoahNodeApi) GetEstimateCoinSellAll(coinToSell string, coinToBuy string, value string, gasPrice string) (*responses.EstimateCoinSellAllResponse, error)

func (*NoahNodeApi) GetEstimateTx

func (api *NoahNodeApi) GetEstimateTx(tx string) (*responses.EstimateTxResponse, error)
func (api *NoahNodeApi) GetLink() string

func (*NoahNodeApi) GetMinGasPrice

func (api *NoahNodeApi) GetMinGasPrice() (*responses.GasResponse, error)

func (*NoahNodeApi) GetStatus

func (api *NoahNodeApi) GetStatus() (*responses.StatusResponse, error)

func (*NoahNodeApi) GetTransaction

func (api *NoahNodeApi) GetTransaction(hash string) (*responses.TransactionResponse, error)

func (*NoahNodeApi) GetTransactionsByQuery

func (api *NoahNodeApi) GetTransactionsByQuery(query string) (*responses.TransactionsResponse, error)

func (*NoahNodeApi) PushTransaction

func (api *NoahNodeApi) PushTransaction(tx string) (*responses.SendTransactionResponse, error)
func (api *NoahNodeApi) SetLink(link string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL