Documentation ¶
Index ¶
Constants ¶
View Source
const Annual = 10
Variables ¶
This section is empty.
Functions ¶
func NormalizeTx ¶
func NormalizeTx(trx *Transaction) (tx types.Tx, b bool, err error)
func NormalizeTxs ¶
func NormalizeTxs(txs []Transaction) types.Txs
Types ¶
type BlockInfo ¶
type BlockInfo struct { Hash string `json:"hash"` Number string `json:"number"` Transactions []Transaction `json:"transactions"` }
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) CurrentBlockNumber ¶
func (*Platform) GetBlockByNumber ¶
func (*Platform) GetTxsByAddress ¶
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.