Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeTx ¶
func NormalizeTx(srcTx Transaction) types.Tx
func NormalizeTxs ¶
func NormalizeTxs(srcTxs []Transaction) types.Txs
Types ¶
type BlockRequest ¶
type BlockRequest struct {
BlockIdentifier int64 `json:"block_identifier"`
}
type Client ¶
func (*Client) GetBlockByNumber ¶
func (c *Client) GetBlockByNumber(num int64) (*[]Transaction, error)
func (*Client) GetCurrentBlock ¶
func (*Client) GetTrxOfAddress ¶
func (c *Client) GetTrxOfAddress(address string) (*[]Transaction, error)
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) CurrentBlockNumber ¶
func (*Platform) GetBlockByNumber ¶
type Transaction ¶
type Transaction struct { Hash string `json:"tx_hash"` From string `json:"from"` To string `json:"to"` Amount string `json:"amount"` Fee string `json:"fee"` Date int64 `json:"date"` Block uint64 `json:"block"` Success bool `json:"success"` ErrorMsg string `json:"error_message,omitempty"` Sequence uint64 `json:"sequence"` }
type TransactionsByAddressRequest ¶
type TransactionsByAddressRequest struct {
Address string `json:"address"`
}
Click to show internal directories.
Click to hide internal directories.