Documentation ¶
Index ¶
- Constants
- func HexToAddress(hexAddr string) (b58 string, err error)
- func NormalizeDelegations(data *AccountData, validators blockatlas.ValidatorMap) []blockatlas.Delegation
- 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 ExplorerResponse
- type ExplorerTrc20Tokens
- type Frozen
- type GridClient
- 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.Token, error)
- func (p *Platform) GetTokenListIdsByAddress(address string) ([]string, error)
- func (p *Platform) GetTokenTxsByAddress(address, token string) (types.Txs, error)
- func (p *Platform) GetTxsByAddress(address string) (types.Txs, 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 ¶
func NormalizeDelegations(data *AccountData, validators blockatlas.ValidatorMap) []blockatlas.Delegation
Types ¶
type Account ¶
type Account struct {
Data []AccountData `json:"data"`
}
type AccountData ¶
type BlockRequest ¶
type Contract ¶
type Contract struct { Type ContractType `json:"type"` Parameter struct { Value TransferValue `json:"value"` } `json:"parameter"` }
type ContractType ¶
type ContractType string
const ( TransferContract ContractType = "TransferContract" TransferAssetContract ContractType = "TransferAssetContract" )
type ExplorerResponse ¶
type ExplorerResponse struct {
ExplorerTrc20Tokens []ExplorerTrc20Tokens `json:"trc20token_balances"`
}
type ExplorerTrc20Tokens ¶
type Frozen ¶
type Frozen struct { ExpireTime int64 `json:"expire_time"` FrozenBalance interface{} `json:"frozen_balance,string"` // nolint }
type GridClient ¶
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) CurrentBlockNumber ¶
func (*Platform) GetActiveValidators ¶
func (p *Platform) GetActiveValidators() (blockatlas.StakeValidators, error)
func (*Platform) GetBlockByNumber ¶
func (*Platform) GetDelegations ¶
func (p *Platform) GetDelegations(address string) (blockatlas.DelegationsPage, error)
func (*Platform) GetDetails ¶
func (p *Platform) GetDetails() blockatlas.StakingDetails
func (*Platform) GetTokenListByAddress ¶
func (*Platform) GetTokenListIdsByAddress ¶
func (*Platform) GetTokenTxsByAddress ¶
func (*Platform) GetTxsByAddress ¶
func (*Platform) GetValidators ¶
func (p *Platform) GetValidators() (blockatlas.ValidatorPage, error)
func (*Platform) NormalizeBlockChannel ¶
func (*Platform) NormalizeBlockTxs ¶
type TRC20TokenInfo ¶
type TRC20Transaction ¶
type TRC20Transactions ¶
type TRC20Transactions struct {
Data []TRC20Transaction `json:"data"`
}
type TransferValue ¶
type Validators ¶
type Validators struct {
Witnesses []Validator `json:"witnesses"`
}
type VotesRequest ¶
Click to show internal directories.
Click to hide internal directories.