Documentation ¶
Index ¶
- func BytesToHex(data []byte) string
- func CopyBytes(b []byte) (copiedBytes []byte)
- func HexToBytes(hex string) []byte
- func HexToString(hex string) string
- func IsHex(hex string) bool
- func ToBytes(data interface{}) ([]byte, error)
- type Address
- type Block
- type Hash
- type Log
- type SyncStatus
- type Topic
- type Topics
- type Transaction
- type TransactionReceipt
- type TransactionRequest
- type Transactions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToHex ¶
func HexToBytes ¶
func HexToString ¶
Types ¶
type Address ¶
type Address [addressLength]byte
Address ...
func NewAddress ¶
func StringToAddress ¶
type Block ¶
type Block struct { Number *big.Int `json:"number"` Hash Hash `json:"hash"` ParentHash Hash `json:"parentHash"` Nonce Hash `json:"nonce"` Sha3Uncles Hash `json:"sha3Uncles"` Bloom Hash `json:"logsBloom"` TransactionRoot Hash `json:"transactionsRoot"` StateRoot Hash `json:"stateRoot"` Miner Address `json:"miner"` Difficulty *big.Int `json:"difficulty"` TotalDifficulty *big.Int `json:"totalDifficulty"` ExtraData Hash `json:"extraData"` Size *big.Int `json:"size"` GasLimit *big.Int `json:"gasLimit"` GasUsed *big.Int `json:"gasUsed"` Timestamp *big.Int `json:"timestamp"` Transactions []Hash `json:"transactions"` Uncles []Hash `json:"uncles"` }
Block ...
type Log ¶
type Log struct { LogIndex uint64 `json:"logIndex"` BlockNumber *big.Int `json:"blockNumber"` BlockHash Hash `json:"blockHash"` TransactionHash Hash `json:"transactionHash"` TransactionIndex uint64 `json:"transactionIndex"` Address Address `json:"address"` Data []byte `json:"data"` Topics Topics `json:"topics"` }
Log ...
type SyncStatus ¶
type SyncStatus struct { Result bool StartingBlock *big.Int CurrentBlock *big.Int HighestBlock *big.Int }
SyncStatus ...
type Transaction ¶
type Transaction struct { Hash Hash `json:"hash"` Nonce Hash `json:"nonce"` BlockHash Hash `json:"blockHash"` BlockNumber *big.Int `json:"blockNumber"` TransactionIndex uint64 `json:"transactionIndex"` From Address `json:"from"` To Address `json:"to"` Gas *big.Int `json:"gas"` GasPrice *big.Int `json:"gasprice"` Value *big.Int `json:"value"` Data []byte `json:"input"` }
Transaction ...
func (*Transaction) String ¶
func (tx *Transaction) String() string
type TransactionReceipt ¶
type TransactionReceipt struct { Hash Hash `json:"transactionHash"` TransactionIndex uint64 `json:"transactionIndex"` BlockNumber *big.Int `json:"blockNumber"` BlockHash Hash `json:"blockHash"` CumulativeGasUsed *big.Int `json:"cumulativeGasUsed"` GasUsed *big.Int `json:"gasUsed"` ContractAddress Address `json:"contractAddress"` Logs []Log `json:"logs"` }
TransactionReceipt ...
func (*TransactionReceipt) String ¶
func (tx *TransactionReceipt) String() string
type TransactionRequest ¶
type TransactionRequest struct { From Address `json:"from"` To Address `json:"to"` Gas *big.Int `json:"gas"` GasPrice *big.Int `json:"gasprice"` Value *big.Int `json:"value"` Data []byte `json:"data"` }
TransactionRequest ...
func (*TransactionRequest) String ¶
func (tx *TransactionRequest) String() string
type Transactions ¶
type Transactions struct {
// contains filtered or unexported fields
}
func NewTransactions ¶
Click to show internal directories.
Click to hide internal directories.