Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct { Number int Hash string ParentHash string Nonce string Sha3Uncles string LogsBloom string TransactionsRoot string StateRoot string Miner string Difficulty big.Int TotalDifficulty big.Int ExtraData string Size int GasLimit int GasUsed int Timestamp int Uncles []string Transactions []Transaction }
Block - block object
type ProxyBlockWithTransactions ¶
type ProxyBlockWithTransactions struct { Number hexInt `json:"number"` Hash string `json:"hash"` ParentHash string `json:"parentHash"` Nonce string `json:"nonce"` Sha3Uncles string `json:"sha3Uncles"` LogsBloom string `json:"logsBloom"` TransactionsRoot string `json:"transactionsRoot"` StateRoot string `json:"stateRoot"` Miner string `json:"miner"` Difficulty hexBig `json:"difficulty"` TotalDifficulty hexBig `json:"totalDifficulty"` ExtraData string `json:"extraData"` Size hexInt `json:"size"` GasLimit hexInt `json:"gasLimit"` GasUsed hexInt `json:"gasUsed"` Timestamp hexInt `json:"timestamp"` Uncles []string `json:"uncles"` Transactions []ProxyTransaction `json:"transactions"` }
func (*ProxyBlockWithTransactions) ToBlock ¶
func (proxy *ProxyBlockWithTransactions) ToBlock() *ethrpc.Block
type ProxyTransaction ¶
type ProxyTransaction struct { Hash string `json:"hash"` Nonce hexInt `json:"nonce"` BlockHash string `json:"blockHash"` BlockNumber *hexInt `json:"blockNumber"` TransactionIndex *hexInt `json:"transactionIndex"` From string `json:"from"` To string `json:"to"` Value hexBig `json:"value"` Gas hexInt `json:"gas"` GasPrice hexBig `json:"gasPrice"` Input string `json:"input"` }
type Transaction ¶
type Transaction struct { Hash string Nonce int BlockHash string BlockNumber *int TransactionIndex *int From string To string Value big.Int Gas int GasPrice big.Int Input string }
Transaction - transaction object
func (*Transaction) UnmarshalJSON ¶
func (t *Transaction) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.