Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ERC20TokenInfo = make(map[common.Address]erc20.ERC20Info) UserERC20Txs = make(map[string]*ERC20TxRecordList) )
Functions ¶
func TestUserTxs ¶
func TestUserTxs()
Types ¶
type AccountTxResult ¶
type AccountTxResult struct { Status string `json:"status"` Message string `json:"message"` Result []TxDetail `json:"result"` }
func GetAccountTxHistory ¶
func GetAccountTxHistory(account string) (*AccountTxResult, error)
type ERC20TxRecord ¶
type ERC20TxRecordList ¶
type ERC20TxRecordList []*ERC20TxRecord
func (ERC20TxRecordList) Len ¶
func (r ERC20TxRecordList) Len() int
func (ERC20TxRecordList) Less ¶
func (r ERC20TxRecordList) Less(i, j int) bool
func (ERC20TxRecordList) Swap ¶
func (r ERC20TxRecordList) Swap(i, j int)
type TxDetail ¶
type TxDetail struct { BlockNumber string `json:"blockNumber"` TimeStamp string `json:"timeStamp"` Hash string `json:"hash"` Nonce string `json:"nonce"` BlockHash string `json:"blockHash"` TransactionIndex string `json:"transactionIndex"` From string `json:"from"` To string `json:"to"` Value string `json:"value"` Gas string `json:"gas"` GasPrice string `json:"gasPrice"` IsError string `json:"isError"` Txreceipt_status string `json:"txreceipt_tatus"` Input string `json:"input"` ContractAddress string `json:"contractAddress"` CumulativeGasUsed string `json:"cumulativeGasUsed"` GasUsed string `json:"gasUsed"` Confirmations string `json:"confirmations"` }
Click to show internal directories.
Click to hide internal directories.