Documentation ¶
Index ¶
- type MinterNodeApi
- func (api *MinterNodeApi) GetAddress(address string) (*responses.AddressResponse, error)
- func (api *MinterNodeApi) GetAddresses(addresses []string, height uint64) (*responses.BalancesResponse, error)
- func (api *MinterNodeApi) GetBlock(height uint64) (*responses.BlockResponse, error)
- func (api *MinterNodeApi) GetBlockEvents(height uint64) (*responses.EventsResponse, error)
- func (api *MinterNodeApi) GetBlockValidators(height uint64) (*responses.ValidatorsResponse, error)
- func (api *MinterNodeApi) GetCandidate(pubKey string, height uint64) (*responses.CandidateResponse, error)
- func (api *MinterNodeApi) GetCandidates(height uint64, stakes bool) (*responses.BlockCandidatesResponse, error)
- func (api *MinterNodeApi) GetCoinInfo(symbol string) (*responses.CoinInfoResponse, error)
- func (api *MinterNodeApi) GetEstimateCoinBuy(coinToSell string, coinToBuy string, value string) (*responses.EstimateCoinBuyResponse, error)
- func (api *MinterNodeApi) GetEstimateCoinSell(coinToSell string, coinToBuy string, value string, height uint64) (*responses.EstimateCoinSellResponse, error)
- func (api *MinterNodeApi) GetEstimateCoinSellAll(coinToSell string, coinToBuy string, value string, gasPrice string) (*responses.EstimateCoinSellAllResponse, error)
- func (api *MinterNodeApi) GetEstimateTx(tx string) (*responses.EstimateTxResponse, error)
- func (api *MinterNodeApi) GetLink() string
- func (api *MinterNodeApi) GetMinGasPrice() (*responses.GasResponse, error)
- func (api *MinterNodeApi) GetStatus() (*responses.StatusResponse, error)
- func (api *MinterNodeApi) GetTransaction(hash string) (*responses.TransactionResponse, error)
- func (api *MinterNodeApi) GetTransactionsByQuery(query string) (*responses.TransactionsResponse, error)
- func (api *MinterNodeApi) PushTransaction(tx string) (*responses.SendTransactionResponse, error)
- func (api *MinterNodeApi) SetHttpClient(client *fasthttp.Client)
- func (api *MinterNodeApi) SetLink(link string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinterNodeApi ¶
type MinterNodeApi struct {
// contains filtered or unexported fields
}
func New ¶
func New(link string) *MinterNodeApi
func NewWithFallbackRetries ¶ added in v1.3.2
func NewWithFallbackRetries(link string, fallbackRetries int, fallbackTimeout time.Duration) *MinterNodeApi
func (*MinterNodeApi) GetAddress ¶
func (api *MinterNodeApi) GetAddress(address string) (*responses.AddressResponse, error)
func (*MinterNodeApi) GetAddresses ¶
func (api *MinterNodeApi) GetAddresses(addresses []string, height uint64) (*responses.BalancesResponse, error)
func (*MinterNodeApi) GetBlock ¶
func (api *MinterNodeApi) GetBlock(height uint64) (*responses.BlockResponse, error)
func (*MinterNodeApi) GetBlockEvents ¶
func (api *MinterNodeApi) GetBlockEvents(height uint64) (*responses.EventsResponse, error)
func (*MinterNodeApi) GetBlockValidators ¶
func (api *MinterNodeApi) GetBlockValidators(height uint64) (*responses.ValidatorsResponse, error)
func (*MinterNodeApi) GetCandidate ¶
func (api *MinterNodeApi) GetCandidate(pubKey string, height uint64) (*responses.CandidateResponse, error)
func (*MinterNodeApi) GetCandidates ¶
func (api *MinterNodeApi) GetCandidates(height uint64, stakes bool) (*responses.BlockCandidatesResponse, error)
func (*MinterNodeApi) GetCoinInfo ¶
func (api *MinterNodeApi) GetCoinInfo(symbol string) (*responses.CoinInfoResponse, error)
func (*MinterNodeApi) GetEstimateCoinBuy ¶
func (api *MinterNodeApi) GetEstimateCoinBuy(coinToSell string, coinToBuy string, value string) (*responses.EstimateCoinBuyResponse, error)
func (*MinterNodeApi) GetEstimateCoinSell ¶
func (api *MinterNodeApi) GetEstimateCoinSell(coinToSell string, coinToBuy string, value string, height uint64) (*responses.EstimateCoinSellResponse, error)
func (*MinterNodeApi) GetEstimateCoinSellAll ¶
func (api *MinterNodeApi) GetEstimateCoinSellAll(coinToSell string, coinToBuy string, value string, gasPrice string) (*responses.EstimateCoinSellAllResponse, error)
func (*MinterNodeApi) GetEstimateTx ¶
func (api *MinterNodeApi) GetEstimateTx(tx string) (*responses.EstimateTxResponse, error)
func (*MinterNodeApi) GetLink ¶
func (api *MinterNodeApi) GetLink() string
func (*MinterNodeApi) GetMinGasPrice ¶
func (api *MinterNodeApi) GetMinGasPrice() (*responses.GasResponse, error)
func (*MinterNodeApi) GetStatus ¶
func (api *MinterNodeApi) GetStatus() (*responses.StatusResponse, error)
func (*MinterNodeApi) GetTransaction ¶ added in v1.3.0
func (api *MinterNodeApi) GetTransaction(hash string) (*responses.TransactionResponse, error)
func (*MinterNodeApi) GetTransactionsByQuery ¶ added in v1.3.0
func (api *MinterNodeApi) GetTransactionsByQuery(query string) (*responses.TransactionsResponse, error)
func (*MinterNodeApi) PushTransaction ¶
func (api *MinterNodeApi) PushTransaction(tx string) (*responses.SendTransactionResponse, error)
func (*MinterNodeApi) SetHttpClient ¶ added in v1.3.5
func (api *MinterNodeApi) SetHttpClient(client *fasthttp.Client)
func (*MinterNodeApi) SetLink ¶
func (api *MinterNodeApi) SetLink(link string)
Click to show internal directories.
Click to hide internal directories.