Documentation ¶
Index ¶
- Constants
- func GetCoinInfo(coinId int, token string) (info *blockatlas.CoinInfo, err error)
- func GetValidators(api blockatlas.StakeAPI) ([]blockatlas.StakeValidator, error)
- func GetValidatorsMap(api blockatlas.StakeAPI) (blockatlas.ValidatorMap, error)
- type AssetValidator
- type ValidatorPayout
- type ValidatorStatus
Constants ¶
View Source
const (
AssetsURL = "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/"
)
Variables ¶
This section is empty.
Functions ¶
func GetCoinInfo ¶
func GetCoinInfo(coinId int, token string) (info *blockatlas.CoinInfo, err error)
func GetValidators ¶
func GetValidators(api blockatlas.StakeAPI) ([]blockatlas.StakeValidator, error)
func GetValidatorsMap ¶
func GetValidatorsMap(api blockatlas.StakeAPI) (blockatlas.ValidatorMap, error)
Types ¶
type AssetValidator ¶
type AssetValidator struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Website string `json:"website"` Payout ValidatorPayout `json:"payout,omitempty"` Status ValidatorStatus `json:"status,omitempty"` }
type ValidatorPayout ¶
type ValidatorPayout struct {
Commission float64 `json:"commission"`
}
type ValidatorStatus ¶
type ValidatorStatus struct {
Disabled bool `json:"disabled"`
}
Click to show internal directories.
Click to hide internal directories.