Documentation ¶
Index ¶
- type NoahNodeApi
- func (api *NoahNodeApi) GetAddress(address string) (*responses.AddressResponse, error)
- func (api *NoahNodeApi) GetAddresses(addresses []string, height uint64) (*responses.BalancesResponse, error)
- func (api *NoahNodeApi) GetBlock(height uint64) (*responses.BlockResponse, error)
- func (api *NoahNodeApi) GetBlockEvents(height uint64) (*responses.EventsResponse, error)
- func (api *NoahNodeApi) GetBlockValidators(height uint64) (*responses.ValidatorsResponse, error)
- func (api *NoahNodeApi) GetCandidate(pubKey string, height uint64) (*responses.CandidateResponse, error)
- func (api *NoahNodeApi) GetCandidates(height uint64, stakes bool) (*responses.BlockCandidatesResponse, error)
- func (api *NoahNodeApi) GetCoinInfo(symbol string) (*responses.CoinInfoResponse, error)
- func (api *NoahNodeApi) GetEstimateCoinBuy(coinToSell string, coinToBuy string, value string) (*responses.EstimateCoinBuyResponse, error)
- func (api *NoahNodeApi) GetEstimateCoinSell(coinToSell string, coinToBuy string, value string, height uint64) (*responses.EstimateCoinSellResponse, error)
- func (api *NoahNodeApi) GetEstimateCoinSellAll(coinToSell string, coinToBuy string, value string, gasPrice string) (*responses.EstimateCoinSellAllResponse, error)
- func (api *NoahNodeApi) GetEstimateTx(tx string) (*responses.EstimateTxResponse, error)
- func (api *NoahNodeApi) GetLink() string
- func (api *NoahNodeApi) GetMinGasPrice() (*responses.GasResponse, error)
- func (api *NoahNodeApi) GetStatus() (*responses.StatusResponse, error)
- func (api *NoahNodeApi) GetTransaction(hash string) (*responses.TransactionResponse, error)
- func (api *NoahNodeApi) GetTransactionsByQuery(query string) (*responses.TransactionsResponse, error)
- func (api *NoahNodeApi) PushTransaction(tx string) (*responses.SendTransactionResponse, error)
- func (api *NoahNodeApi) SetLink(link string)
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 (*NoahNodeApi) GetLink ¶
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 (*NoahNodeApi) SetLink ¶
func (api *NoahNodeApi) SetLink(link string)
Click to show internal directories.
Click to hide internal directories.