Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeTx ¶
func NormalizeTx(srcTx *Transaction) (tx blockatlas.Tx, ok bool)
func NormalizeTxs ¶
func NormalizeTxs(srcTxs []Transaction) (txs []blockatlas.Tx)
Types ¶
type Block ¶
type Block struct {
Transactions []Transaction `json:"transactions"`
}
type Client ¶
type Client struct {
blockatlas.Request
}
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 ¶
func (p *Platform) GetBlockByNumber(num int64) (*blockatlas.Block, error)
func (*Platform) GetTxsByAddress ¶
func (p *Platform) GetTxsByAddress(address string) (blockatlas.TxPage, error)
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.