Versions in this module Expand all Collapse all v1 v1.2.0 Jun 10, 2021 Changes in this version + const TxTypeBinary + func NormalizeTx(srcTx Transaction) types.Tx + func NormalizeTxs(txs []Transaction) types.Txs + type Address struct + Hash string + type Block struct + Height uint64 + type Client struct + func (c *Client) GetBlockByNumber(num int64) ([]Transaction, error) + func (c *Client) GetLatestBlock() (int64, error) + func (c *Client) GetTransactions(values url.Values) ([]Transaction, error) + func (c *Client) GetTxs(address string, page int) ([]Transaction, error) + type NewBlock struct + Height int64 + type NewBlockResponse struct + Data []NewBlock + 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) + type Response struct + Data ResponseData + type ResponseData struct + Transactions []Transaction + type Transaction struct + Block Block + From Address + Hash string + Nonce uint64 + Status int32 + Timestamp int64 + To Address + TxFee string + Type string + Value json.Number