Versions in this module Expand all Collapse all v1 v1.2.0 Jun 10, 2021 Changes in this version + const Annual + func NormalizeTx(trx *Transaction) (tx types.Tx, b bool, err error) + func NormalizeTxs(txs []Transaction) types.Txs + type BlockInfo struct + Hash string + Number string + Transactions []Transaction + type Client struct + func (c *Client) CurrentBlockNumber() (int64, error) + func (c *Client) GetBalance(address string) (string, error) + func (c *Client) GetBlockByNumber(num int64) (info BlockInfo, err error) + func (c *Client) GetTxsOfAddress(address string) (txPage *TxResult, err error) + type Platform struct + func Init(api string) *Platform + func (p *Platform) Coin() coin.Coin + func (p *Platform) CurrentBlockNumber() (int64, error) + func (p *Platform) GetBlockByNumber(num int64) (*types.Block, error) + func (p *Platform) GetTxsByAddress(address string) (types.Txs, error) + func (p *Platform) NormalizeBlock(block *BlockInfo) types.Block + type Transaction struct + BlockHash string + BlockNumber string + From string + Gas string + GasPrice string + Hash string + Nonce string + Timestamp string + To string + Value string + type TxResponse struct + Result TxResult + type TxResult struct + Transactions []Transaction