Documentation ¶
Index ¶
Constants ¶
View Source
const TxTypeBinary = "binary"
Variables ¶
This section is empty.
Functions ¶
func NormalizeTx ¶
func NormalizeTx(srcTx Transaction) types.Tx
func NormalizeTxs ¶
func NormalizeTxs(txs []Transaction) types.Txs
Types ¶
type Client ¶
func (*Client) GetBlockByNumber ¶
func (c *Client) GetBlockByNumber(num int64) ([]Transaction, error)
func (*Client) GetLatestBlock ¶
func (*Client) GetTransactions ¶
func (c *Client) GetTransactions(values url.Values) ([]Transaction, error)
type NewBlockResponse ¶
type NewBlockResponse struct {
Data []NewBlock `json:"data"`
}
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) CurrentBlockNumber ¶
func (*Platform) GetBlockByNumber ¶
type Response ¶
type Response struct {
Data ResponseData `json:"data"`
}
type ResponseData ¶
type ResponseData struct {
Transactions []Transaction `json:"txnList"`
}
type Transaction ¶
type Transaction struct { Hash string `json:"hash"` Type string `json:"type"` Value json.Number `json:"value"` TxFee string `json:"txFee"` Nonce uint64 `json:"nonce"` Block Block `json:"block"` From Address `json:"from"` To Address `json:"to"` Timestamp int64 `json:"timestamp"` Status int32 `json:"status"` }
Click to show internal directories.
Click to hide internal directories.