Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeTx ¶
func NormalizeTx(srcTx *Transaction) (tx types.Tx, ok bool)
func NormalizeTxs ¶
func NormalizeTxs(srcTxs []Transaction) (txs types.Txs)
Types ¶
type Block ¶
type Block struct {
Transactions []Transaction `json:"transactions"`
}
type Client ¶
func (*Client) GetBlockByNumber ¶
func (*Client) GetCurrentBlock ¶
func (c *Client) GetCurrentBlock() (block *CurrentBlock, err error)
type CurrentBlock ¶
type CurrentBlock struct {
Height int64 `json:"height"`
}
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) CurrentBlockNumber ¶
func (*Platform) GetBlockByNumber ¶
type Transaction ¶
type Transaction struct { Id string `json:"id"` Sender string `json:"sender"` AssetId string `json:"assetId"` Recipient string `json:"recipient"` Amount uint64 `json:"amount"` FeeAssetId string `json:"feeAssetId"` Fee uint64 `json:"fee"` Timestamp uint64 `json:"timestamp"` Attachment string `json:"attachment"` Block uint64 `json:"height"` Type uint64 `json:"type"` }
Click to show internal directories.
Click to hide internal directories.