Documentation ¶
Index ¶
- Variables
- func InitCache()
- func ReadAddressList()
- func ReadFile(filename string) (*[]string, error)
- func ReadTokenList()
- func SendMail(user, password, host, to, subject, body, mailType string) error
- type BlockNumberResp
- type ETHEmail
- type ETHTxResult
- type ReceiptData
- type Transaction
- type TransactionData
- type TransactionReceipt
- type TxLogs
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //以太坊节点 Net string //邮箱 EmailUser string // 邮箱账号 EmailPassword string //注意,此处为授权码、不是密码 EmailHost string //smtp地址及端口 EmailTo string //接收者,内容可重复,邮箱之间用;隔开 EmailToLock sync.RWMutex )
View Source
var EmailSlice []ETHEmail
Functions ¶
func ReadAddressList ¶
func ReadAddressList()
func ReadTokenList ¶
func ReadTokenList()
Types ¶
type BlockNumberResp ¶
type ETHTxResult ¶
type ETHTxResult struct { Difficulty string `json:"difficulty"` ExtraData string `json:"extraData"` GasLimit string `json:"gasLimit"` GasUsed string `json:"gasUsed"` Hash string `json:"hash"` LogsBloom string `json:"logsBloom"` Miner string `json:"miner"` MixHash string `json:"mixHash"` Nonce string `json:"nonce"` Number string `json:"number"` ParentHash string `json:"parentHash"` ReceiptsRoot string `json:"receiptsRoot"` Sha3Uncles string `json:"sha3Uncles"` Size string `json:"size"` StateRoot string `json:"stateRoot"` Timestamp string `json:"timestamp"` TotalDifficulty string `json:"totalDifficulty"` Txs []TransactionData `json:"transactions"` TxRoot string `json:"transactionsRoot"` Uncles []string `json:"uncles"` }
type ReceiptData ¶
type ReceiptData struct { BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` ContractAddress string `json:"contractAddress"` CumulativeGasUsed string `json:"cumulativeGasUsed"` From string `json:"from"` GasUsed string `json:"gasUsed"` Logs []TxLogs `json:"logs"` LogsBloom string `json:"logsBloom"` Status string `json:"status"` To string `json:"to"` TxHash string `json:"transactionHash"` TxIndex string `json:"transactionIndex"` }
type Transaction ¶
type Transaction struct { JsonRPC string `json:"jsonrpc"` Id int64 `json:"id"` Result ETHTxResult `json:"result"` }
type TransactionData ¶
type TransactionReceipt ¶
type TransactionReceipt struct { JsonRPC string `json:"jsonrpc"` Id int64 `json:"id"` Result ReceiptData `json:"result"` }
type TxLogs ¶
type TxLogs struct { Address string `json:"address"` Topics []string `json:"topics"` Data string `json:"data"` BlockNumber string `json:"blockNumber"` TxHash string `json:"transactionHash"` TxIndex string `json:"transactionIndex"` BlockHash string `json:"blockHash"` LogIndex string `json:"logIndex"` Removed bool `json:"removed"` }
Click to show internal directories.
Click to hide internal directories.