Documentation ¶
Index ¶
- Constants
- func HexToAddress(hexAddr string) (b58 string, err error)
- func NormalizeDelegations(data *AccountData, validators blockatlas.ValidatorMap) []blockatlas.Delegation
- func NormalizeToken(info AssetInfo) types.Token
- type Account
- type AccountData
- type Asset
- type AssetInfo
- type AssetV2
- type Block
- type BlockData
- type BlockRequest
- type Blocks
- type Client
- type Contract
- type ContractType
- type ExplorerClient
- type ExplorerResponse
- type ExplorerTrc20Tokens
- type Frozen
- type Page
- type Platform
- func (p *Platform) Coin() coin.Coin
- func (p *Platform) CurrentBlockNumber() (int64, error)
- 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) GetTokenListByAddress(address string) (types.TokenPage, error)
- func (p *Platform) GetTokenTxsByAddress(address, token string) (types.TxPage, error)
- func (p *Platform) GetTxsByAddress(address string) (types.TxPage, error)
- func (p *Platform) GetValidators() (blockatlas.ValidatorPage, error)
- func (p *Platform) NormalizeBlockChannel(srcTx Tx, txChan chan types.Tx)
- func (p *Platform) NormalizeBlockTxs(srcTxs []Tx) chan types.Tx
- func (p *Platform) UndelegatedBalance(address string) (string, error)
- type TRC20TokenInfo
- type TRC20Transaction
- type TRC20Transactions
- type TransferValue
- type Tx
- type TxData
- type Validator
- type Validators
- type Votes
- type VotesRequest
Constants ¶
View Source
const Annual = 0.74
Variables ¶
This section is empty.
Functions ¶
func HexToAddress ¶
HexToAddress converts a hex representation of a Tron address into a Base58 string with a 4 byte checksum.
func NormalizeDelegations ¶ added in v1.0.37
func NormalizeDelegations(data *AccountData, validators blockatlas.ValidatorMap) []blockatlas.Delegation
func NormalizeToken ¶ added in v1.0.37
Types ¶
type Account ¶ added in v1.0.37
type Account struct {
Data []AccountData `json:"data"`
}
type AccountData ¶ added in v1.0.37
type BlockRequest ¶ added in v1.0.37
type Contract ¶
type Contract struct { Type ContractType `json:"type"` Parameter struct { Value TransferValue `json:"value"` } `json:"parameter"` }
type ContractType ¶ added in v1.0.37
type ContractType string
const ( TransferContract ContractType = "TransferContract" TransferAssetContract ContractType = "TransferAssetContract" )
type ExplorerClient ¶ added in v1.1.4
type ExplorerResponse ¶ added in v1.1.4
type ExplorerResponse struct {
ExplorerTrc20Tokens []ExplorerTrc20Tokens `json:"trc20token_balances"`
}
type ExplorerTrc20Tokens ¶ added in v1.1.4
type Frozen ¶ added in v1.0.37
type Frozen struct { ExpireTime int64 `json:"expire_time"` FrozenBalance interface{} `json:"frozen_balance,string"` // nolint }
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) CurrentBlockNumber ¶ added in v1.0.37
func (*Platform) GetActiveValidators ¶ added in v1.1.4
func (p *Platform) GetActiveValidators() (blockatlas.StakeValidators, error)
func (*Platform) GetBlockByNumber ¶ added in v1.0.37
func (*Platform) GetDelegations ¶ added in v1.0.37
func (p *Platform) GetDelegations(address string) (blockatlas.DelegationsPage, error)
func (*Platform) GetDetails ¶ added in v1.0.37
func (p *Platform) GetDetails() blockatlas.StakingDetails
func (*Platform) GetTokenListByAddress ¶ added in v1.0.37
func (*Platform) GetTokenTxsByAddress ¶ added in v1.0.37
func (*Platform) GetTxsByAddress ¶ added in v1.0.37
func (*Platform) GetValidators ¶ added in v1.0.37
func (p *Platform) GetValidators() (blockatlas.ValidatorPage, error)
func (*Platform) NormalizeBlockChannel ¶ added in v1.0.37
func (*Platform) NormalizeBlockTxs ¶ added in v1.0.37
type TRC20TokenInfo ¶ added in v1.1.4
type TRC20Transaction ¶ added in v1.1.4
type TRC20Transactions ¶ added in v1.1.4
type TRC20Transactions struct {
Data []TRC20Transaction `json:"data"`
}
type TransferValue ¶
type Validators ¶ added in v1.0.37
type Validators struct {
Witnesses []Validator `json:"witnesses"`
}
type VotesRequest ¶ added in v1.0.37
Click to show internal directories.
Click to hide internal directories.