Versions in this module Expand all Collapse all v0 v0.0.15 Apr 24, 2020 v0.0.14 Apr 24, 2020 v0.0.13 Apr 24, 2020 v0.0.12 Apr 24, 2020 v0.0.11 Apr 24, 2020 v0.0.10 Apr 23, 2020 v0.0.9 Apr 23, 2020 v0.0.8 Apr 23, 2020 v0.0.7 Apr 23, 2020 v0.0.6 Apr 23, 2020 v0.0.5 Apr 23, 2020 v0.0.4 Apr 23, 2020 v0.0.3 Apr 23, 2020 v0.0.2 Apr 23, 2020 v0.0.1 Apr 23, 2020 Changes in this version + const LatestBlockHeight + type AddressResponse struct + Error *Error + ID string + Jsonrpc string + Result *AddressResult + type AddressResult struct + Balance map[string]string + TransactionCount string + type AddressesResponse struct + Error *Error + ID string + Jsonrpc string + Result []*AddressesResult + type AddressesResult struct + Address string + Balance map[string]string + TransactionCount string + type Api struct + func NewApi(hostUrl string) *Api + func NewApiWithClient(hostUrl string, client *resty.Client) *Api + func (a *Api) Address(address string) (*AddressResult, error) + func (a *Api) AddressAtHeight(address string, height int) (*AddressResult, error) + func (a *Api) Addresses(addresses []string, height int) ([]*AddressesResult, error) + func (a *Api) Balance(address string) (map[string]string, error) + func (a *Api) BalanceAtHeight(address string, height int) (map[string]string, error) + func (a *Api) Block(height int) (*BlockResult, error) + func (a *Api) Candidate(pubKey string) (*CandidateResult, error) + func (a *Api) CandidateAtHeight(pubKey string, height int) (*CandidateResult, error) + func (a *Api) Candidates(includeStakes bool) ([]*CandidateResult, error) + func (a *Api) CandidatesAtHeight(height int, includeStakes bool) ([]*CandidateResult, error) + func (a *Api) CoinInfo(symbol string) (*CoinInfoResult, error) + func (a *Api) CoinInfoAtHeight(symbol string, height int) (*CoinInfoResult, error) + func (a *Api) EstimateCoinBuy(coinToSell string, valueToBuy string, coinToBuy string) (*EstimateCoinBuyResult, error) + func (a *Api) EstimateCoinBuyAtHeight(coinToSell string, valueToBuy string, coinToBuy string, height int) (*EstimateCoinBuyResult, error) + func (a *Api) EstimateCoinSell(coinToSell string, valueToSell string, coinToBuy string) (*EstimateCoinSellResult, error) + func (a *Api) EstimateCoinSellAll(coinToSell string, coinToBuy string, valueToSell string, gasPrice int) (*EstimateCoinSellAllResult, error) + func (a *Api) EstimateCoinSellAllAtHeight(coinToSell string, coinToBuy string, valueToSell string, gasPrice int, ...) (*EstimateCoinSellAllResult, error) + func (a *Api) EstimateCoinSellAtHeight(coinToSell string, valueToSell string, coinToBuy string, height int) (*EstimateCoinSellResult, error) + func (a *Api) EstimateTxCommission(transaction transaction.EncodeInterface) (*EstimateTxCommissionResult, error) + func (a *Api) Events() (*EventsResult, error) + func (a *Api) EventsAtHeight(height int) (*EventsResult, error) + func (a *Api) MaxGas() (string, error) + func (a *Api) MinGasPrice() (string, error) + func (a *Api) MissedBlocks(pubKey string) (*MissedBlocksResult, error) + func (a *Api) MissedBlocksAtHeight(pubKey string, height int) (*MissedBlocksResult, error) + func (a *Api) Nonce(address string) (uint64, error) + func (a *Api) SendRawTransaction(tx string) (*SendTransactionResult, error) + func (a *Api) SendTransaction(transaction transaction.SignedTransaction) (*SendTransactionResult, error) + func (a *Api) Status() (*StatusResult, error) + func (a *Api) Transaction(hash string) (*TransactionResult, error) + func (a *Api) Transactions(query string, page int, perPage int) ([]*TransactionResult, error) + func (a *Api) UnconfirmedTxs(limit int) (*UnconfirmedTxsResult, error) + func (a *Api) Validators() ([]*ValidatorResult, error) + func (a *Api) ValidatorsAtHeight(height int) ([]*ValidatorResult, error) + func (a *Api) ValidatorsPage(height, page, perPage int) ([]*ValidatorResult, error) + type BlockResponse struct + Error *Error + ID string + Jsonrpc string + Result *BlockResult + type BlockResult struct + BlockReward string + Hash string + Height string + NumTxs string + Proposer string + Size string + Time time.Time + TotalTxs string + Transactions []TransactionResult + Validators []struct{ ... } + type BuyCoinData struct + CoinToBuy string + CoinToSell string + MaximumValueToSell string + ValueToBuy string + type CandidateResponse struct + Error *Error + ID string + Jsonrpc string + Result *CandidateResult + type CandidateResult struct + Commission string + OwnerAddress string + PubKey string + RewardAddress string + Stakes []struct{ ... } + Status int + TotalStake string + type CandidatesResponse struct + Error *Error + ID string + Jsonrpc string + Result []*CandidateResult + type CoinInfoResponse struct + Error *Error + ID string + Jsonrpc string + Result *CoinInfoResult + type CoinInfoResult struct + Crr string + Name string + ReserveBalance string + Symbol string + Volume string + type CreateCoinData struct + ConstantReserveRatio string + InitialAmount string + InitialReserve string + MaxSupply string + Name string + Symbol string + type CreateMultisigData struct + Addresses [][20]byte + Threshold uint + Weights []uint + type DeclareCandidacyData struct + Address string + Coin string + Commission string + PubKey string + Stake string + type DelegateData struct + Coin string + PubKey string + Value string + type EditCandidateData struct + OwnerAddress string + PubKey string + RewardAddress string + type Error struct + Code int + Data string + Message string + func (e *Error) Error() string + type EstimateCoinBuyResponse struct + Error *Error + ID string + Jsonrpc string + Result *EstimateCoinBuyResult + type EstimateCoinBuyResult struct + Commission string + WillPay string + type EstimateCoinSellAllResponse struct + Error *Error + ID string + Jsonrpc string + Result *EstimateCoinSellAllResult + type EstimateCoinSellAllResult struct + WillGet string + type EstimateCoinSellResponse struct + Error *Error + ID string + Jsonrpc string + Result *EstimateCoinSellResult + type EstimateCoinSellResult struct + Commission string + WillGet string + type EstimateTxCommissionResponse struct + Error *Error + ID string + Jsonrpc string + Result *EstimateTxCommissionResult + type EstimateTxCommissionResult struct + Commission string + type Event struct + Type string + Value map[string]string + func (e *Event) ValueStruct() (interface{}, error) + type EventsResponse struct + Error *Error + ID string + Jsonrpc string + Result *EventsResult + type EventsResult struct + Events []Event + type MaxGasResponse struct + Error *Error + ID string + Jsonrpc string + Result string + type MinGasPriceResponse struct + Error *Error + ID string + Jsonrpc string + Result string + type MissedBlocksResponse struct + Error *Error + ID string + Jsonrpc string + Result *MissedBlocksResult + type MissedBlocksResult struct + MissedBlocks string + MissedBlocksCount string + type MultisendData struct + List []MultisendDataItem + type MultisendDataItem SendData + type RedeemCheckData struct + Proof string + RawCheck string + type ResponseError struct + func NewResponseError(response *resty.Response) *ResponseError + func (res *ResponseError) Error() string + type RewardEventValue struct + Address string + Amount string + Role string + ValidatorPubKey string + type SellAllCoinData struct + CoinToBuy string + CoinToSell string + MinimumValueToBuy string + type SellCoinData struct + CoinToBuy string + CoinToSell string + MinimumValueToBuy string + ValueToSell string + type SendData struct + Coin string + To string + Value string + type SendTransactionResponse struct + Error *TxError + ID string + Jsonrpc string + Result *SendTransactionResult + type SendTransactionResult struct + Code int + Data string + Hash string + Log string + type SetCandidateOffData struct + PubKey string + type SetCandidateOnData struct + PubKey string + type SlashEventValue struct + Address string + Amount string + Coin string + ValidatorPubKey string + type StatusResponse struct + Error *Error + ID string + Jsonrpc string + Result *StatusResult + type StatusResult struct + LatestAppHash string + LatestBlockHash string + LatestBlockHeight string + LatestBlockTime time.Time + StateHistory string + TmStatus struct{ ... } + Version string + type TransactionResponse struct + Error *Error + ID string + Jsonrpc string + Result *TransactionResult + type TransactionResult struct + Code uint32 + Data transactionData + From string + Gas string + GasCoin string + GasPrice int + Hash string + Height string + Index int + Log string + Nonce string + Payload []byte + RawTx string + ServiceData []byte + Tags struct{ ... } + Type int + func (t *TransactionResult) DataStruct() (tdi, error) + func (t *TransactionResult) ErrorLog() error + func (t *TransactionResult) IsValid() bool + type TransactionsResponse struct + Error *Error + ID string + Jsonrpc string + Result []*TransactionResult + type TxError struct + Code int + Data string + Message string + TxResult struct{ ... } + func (e *TxError) Error() string + type UnbondData struct + Coin string + PubKey string + Value string + type UnbondEventValue struct + Address string + Amount string + Coin string + ValidatorPubKey string + type UnconfirmedTxsResponse struct + Error *Error + ID string + Jsonrpc string + Result *UnconfirmedTxsResult + type UnconfirmedTxsResult struct + NTxs string + Total string + TotalBytes string + Txs []string + type ValidatorResult struct + PubKey string + VotingPower string + type ValidatorsResponse struct + Error *Error + ID string + Jsonrpc string + Result []*ValidatorResult