Documentation ¶
Index ¶
- func Normalize(tx Transaction) (result types.Tx, ok bool)
- func NormalizeTxs(txs []Transaction) []types.Tx
- type Account
- type BlockResponse
- type Client
- 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 Status
- type Transaction
- type TransactionPayment
- type TransactionType
- type TransactionsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeTxs ¶
func NormalizeTxs(txs []Transaction) []types.Tx
Types ¶
type BlockResponse ¶
type BlockResponse struct { Timestamp uint64 `json:"timestamp"` Transactions []Transaction `json:"transactions"` }
type Client ¶
func InitClient ¶
func (*Client) GetAccount ¶
deprecated, no longer need to support staking
func (*Client) GetLatestBlock ¶
func (*Client) GetTxsInBlock ¶
func (c *Client) GetTxsInBlock(number int64) ([]Transaction, error)
func (*Client) GetTxsOfAddress ¶
func (c *Client) GetTxsOfAddress(address string) ([]Transaction, error)
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) CurrentBlockNumber ¶
func (*Platform) GetActiveValidators ¶ added in v1.1.4
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 Transaction ¶
type Transaction struct { Type TransactionType `json:"tx-type"` Hash string `json:"id"` From string `json:"sender"` Fee uint64 `json:"fee"` Round uint64 `json:"confirmed-round"` Payment TransactionPayment `json:"payment-transaction"` Timestamp uint64 `json:"round-time"` }
type TransactionPayment ¶
type TransactionType ¶
type TransactionType string
const (
TransactionTypePay TransactionType = "pay"
)
type TransactionsResponse ¶
type TransactionsResponse struct {
Transactions []Transaction `json:"transactions"`
}
Click to show internal directories.
Click to hide internal directories.