Documentation ¶
Index ¶
- func Normalize(trx *ActionInfo) *types.Tx
- type AccountInfo
- type AccountMeta
- type Action
- type ActionCore
- type ActionInfo
- type ChainMeta
- type Client
- func (c *Client) GetAccount(address string) (*AccountInfo, error)
- func (c *Client) GetAddressTotalTransactions(address string) (int64, error)
- func (c *Client) GetDelegations(address string) (blockatlas.DelegationsPage, error)
- func (c *Client) GetLatestBlock() (int64, error)
- func (c *Client) GetTxsInBlock(number int64) ([]*ActionInfo, error)
- func (c *Client) GetTxsOfAddress(address string, start int64) (*Response, error)
- func (c *Client) GetValidators() (blockatlas.ValidatorPage, error)
- 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) GetTxsByAddress(address string) (types.Txs, error)
- func (p *Platform) GetValidators() (blockatlas.ValidatorPage, error)
- func (p *Platform) UndelegatedBalance(address string) (string, error)
- type Response
- type Transfer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Normalize ¶
func Normalize(trx *ActionInfo) *types.Tx
Normalize converts an Iotex transaction into the generic model
Types ¶
type AccountInfo ¶
type AccountInfo struct {
AccountMeta *AccountMeta `json:"accountMeta"`
}
type AccountMeta ¶
type Action ¶
type Action struct {
Core *ActionCore `json:"core"`
}
type ActionCore ¶
type ActionInfo ¶
type Client ¶
func (*Client) GetAccount ¶
func (c *Client) GetAccount(address string) (*AccountInfo, error)
func (*Client) GetAddressTotalTransactions ¶
func (*Client) GetDelegations ¶
func (c *Client) GetDelegations(address string) (blockatlas.DelegationsPage, error)
func (*Client) GetLatestBlock ¶
func (*Client) GetTxsInBlock ¶
func (c *Client) GetTxsInBlock(number int64) ([]*ActionInfo, error)
func (*Client) GetTxsOfAddress ¶
func (*Client) GetValidators ¶
func (c *Client) GetValidators() (blockatlas.ValidatorPage, error)
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) GetTxsByAddress ¶
func (*Platform) GetValidators ¶
func (p *Platform) GetValidators() (blockatlas.ValidatorPage, error)
type Response ¶
type Response struct {
ActionInfo []*ActionInfo `json:"actionInfo"`
}
Click to show internal directories.
Click to hide internal directories.