Documentation ¶
Index ¶
- func GetNormalizationError(err error) error
- func NormalizeTx(trx *Transaction) (tx blockatlas.Tx, b bool, err error)
- func NormalizeTxs(txs []Transaction) blockatlas.TxPage
- type BlockInfo
- type Client
- type Platform
- func (p *Platform) Coin() coin.Coin
- func (p *Platform) CurrentBlockNumber() (int64, error)
- func (p *Platform) GetBlockByNumber(num int64) (*blockatlas.Block, error)
- func (p *Platform) GetTxsByAddress(address string) (blockatlas.TxPage, error)
- func (p *Platform) Init() error
- func (p *Platform) NormalizeBlock(block *BlockInfo) blockatlas.Block
- type Transaction
- type TxResponse
- type TxResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNormalizationError ¶
func NormalizeTx ¶
func NormalizeTx(trx *Transaction) (tx blockatlas.Tx, b bool, err error)
func NormalizeTxs ¶
func NormalizeTxs(txs []Transaction) blockatlas.TxPage
Types ¶
type BlockInfo ¶
type BlockInfo struct { Hash string `json:"hash"` Number string `json:"number"` Transactions []Transaction `json:"transactions"` }
type Client ¶
type Client struct {
blockatlas.Request
}
func (*Client) CurrentBlockNumber ¶
func (*Client) GetBlockByNumber ¶
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)
func (*Platform) NormalizeBlock ¶
func (p *Platform) NormalizeBlock(block *BlockInfo) blockatlas.Block
type Transaction ¶
type Transaction struct { BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` From string `json:"from"` Gas string `json:"gas"` GasPrice string `json:"gasPrice"` Hash string `json:"hash"` Nonce string `json:"nonce"` To string `json:"to"` Value string `json:"value"` Timestamp string `json:"timestamp"` }
type TxResponse ¶
type TxResponse struct {
Result TxResult `json:"result"`
}
type TxResult ¶
type TxResult struct {
Transactions []Transaction `json:"transactions"`
}
Click to show internal directories.
Click to hide internal directories.