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.TxPage, 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 ¶ added in v1.0.37
func (c *Client) GetAccount(address string) (*AccountInfo, error)
func (*Client) GetAddressTotalTransactions ¶
func (*Client) GetDelegations ¶ added in v1.0.37
func (c *Client) GetDelegations(address string) (blockatlas.DelegationsPage, error)
func (*Client) GetLatestBlock ¶ added in v1.0.37
func (*Client) GetTxsInBlock ¶ added in v1.0.37
func (c *Client) GetTxsInBlock(number int64) ([]*ActionInfo, error)
func (*Client) GetTxsOfAddress ¶
func (*Client) GetValidators ¶ added in v1.0.37
func (c *Client) GetValidators() (blockatlas.ValidatorPage, error)
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) GetTxsByAddress ¶
func (*Platform) GetValidators ¶ added in v1.0.37
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.