Versions in this module Expand all Collapse all v1 v1.2.0 Jun 10, 2021 Changes in this version + const AttributeAmount + const AttributeValidator + const DenomAtom + const DenomKava + const EventTransfer + const EventWithdrawRewards + const MsgBeginRedelegate + const MsgCreateValidator + const MsgDelegate + const MsgDeposit + const MsgMultiSend + const MsgSend + const MsgSubmitProposal + const MsgUndelegate + const MsgUnjail + const MsgVote + const MsgWithdrawDelegationReward + const MsgWithdrawValidatorCommission + const TextProposal + func CalculateAnnualReward(p Pool, inflation float64, validator Validator) float64 + func NormalizeDelegations(delegations []DelegationValue, validators blockatlas.ValidatorMap) []blockatlas.Delegation + func NormalizeUnbondingDelegations(delegations []UnbondingDelegation, validators blockatlas.ValidatorMap) []blockatlas.Delegation + type Account struct + Value AccountValue + type AccountValue struct + Coins []Balance + type Amount struct + Denom string + Quantity string + type Attribute struct + Key AttributeKey + Value string + type AttributeKey string + type Attributes []Attribute + func (a Attributes) GetWithdrawRewardValue() int64 + type AuthAccount struct + Account Account + type Balance struct + Amount string + Denom DenomType + type Block struct + Header BlockHeader + type BlockHeader struct + Height string + type Client struct + func (c *Client) CurrentBlockNumber() (num int64, err error) + func (c *Client) GetAccount(address string) (result AuthAccount, err error) + func (c *Client) GetAddrTxs(address, tag string, page int) (txs TxPage, err error) + func (c *Client) GetBlockByNumber(num int64) (txs TxPage, err error) + func (c *Client) GetDelegations(address string) (delegations Delegations, err error) + func (c *Client) GetInflation() (inflation Inflation, err error) + func (c *Client) GetPool() (result StakingPool, err error) + func (c *Client) GetUnbondingDelegations(address string) (delegations UnbondingDelegations, err error) + func (c *Client) GetValidators() (validators Validators, err error) + type Contents struct + Fee Fee + Memo string + Message []Message + type CosmosCommission struct + Commision CosmosCommissionRates + type CosmosCommissionRates struct + Rate string + type Data struct + Contents Contents + type Delegation struct + DelegatorAddress string + Shares string + ValidatorAddress string + func (d *Delegation) Value() string + type DelegationValue struct + Delegation Delegation + type Delegations struct + List []DelegationValue + type DenomType string + type Event struct + Attributes Attributes + Type EventType + type EventType string + type Events struct + Events []Event + type Fee struct + FeeAmount []Amount + type Inflation struct + Result string + type LasteBlock struct + Block Block + type Logs []*Events + func (l Logs) GetWithdrawRewardValue() string + type Message struct + Type TxType + Value interface{} + func (m *Message) UnmarshalJSON(buf []byte) error + type MessageValueDelegate struct + Amount Amount + DelegatorAddr string + ValidatorAddr string + type MessageValueTransfer struct + Amount []Amount + FromAddr string + ToAddr string + type Platform struct + CoinIndex uint + func Init(coin uint, api string) *Platform + func (p *Platform) Coin() coin.Coin + func (p *Platform) CurrentBlockNumber() (int64, error) + func (p *Platform) Denom() DenomType + func (p *Platform) GetActiveValidators() (blockatlas.StakeValidators, error) + func (p *Platform) GetBlockByNumber(num int64) (*types.Block, error) + func (p *Platform) GetDelegations(address string) (blockatlas.DelegationsPage, error) + func (p *Platform) GetDetails() blockatlas.StakingDetails + func (p *Platform) GetTxsByAddress(address string) (types.Txs, error) + func (p *Platform) GetValidators() (blockatlas.ValidatorPage, error) + func (p *Platform) Normalize(srcTx *Tx) (tx types.Tx, ok bool) + func (p *Platform) NormalizeTxs(srcTxs []Tx) types.Txs + func (p *Platform) UndelegatedBalance(address string) (string, error) + type Pool struct + BondedTokens string + NotBondedTokens string + type StakingPool struct + Pool Pool + type Tx struct + Block string + Code int + Data Data + Date string + ID string + Logs Logs + type TxPage struct + PageTotal string + Txs []Tx + type TxType string + type UnbondingDelegation struct + Entries []UnbondingDelegationEntry + type UnbondingDelegationEntry struct + Balance string + CompletionTime string + DelegatorAddress string + type UnbondingDelegations struct + List []UnbondingDelegation + type Validator struct + Address string + Commission CosmosCommission + Status int + type Validators struct + Result []Validator