Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountState ¶
type Address ¶
type Address string
func NewAddress ¶
NewAddressFromHex creates a new address from a given hex string It will left-pad to 20 bytes if the string is shorter than that, or truncate to 20 bytes if larger
func (Address) MarshalJSON ¶
func (*Address) UnmarshalJSON ¶
func (*Address) UnmarshalTOML ¶
type Block ¶
type Block struct { Hash Hash `json:"hash"` ParentHash Hash `json:"parentHash"` StateRoot Hash `json:"stateRoot"` TxRoot Hash `json:"txRoot"` ReceiptRoot Hash `json:"receiptRoot"` Number uint64 `json:"number"` GasLimit uint64 `json:"gasLimit"` GasUsed uint64 `json:"gasUsed"` Timestamp uint64 `json:"timestamp"` ExtraData string `json:"extraData"` Transactions []Hash `json:"transactions"` }
type EIP165Call ¶
Call args for checking a contract for EIP165 interfaces
type Event ¶
type Event struct { Index uint64 `json:"index"` Address Address `json:"address"` Topics []Hash `json:"topics"` Data HexData `json:"data"` BlockNumber uint64 `json:"blockNumber"` BlockHash Hash `json:"blockHash"` TransactionHash Hash `json:"transactionHash"` TransactionIndex uint64 `json:"transactionIndex"` Timestamp uint64 `json:"timestamp"` }
type Hash ¶
type Hash string
func NewHash ¶
NewHashFromHex creates a new hash from a given hex string It will left-pad to 32 bytes if the string is shorter than that, or truncate to 32 bytes if larger
func (Hash) MarshalJSON ¶
func (*Hash) UnmarshalJSON ¶
func (*Hash) UnmarshalTOML ¶
type HexData ¶
type HexData string
func NewHexData ¶
func (HexData) MarshalJSON ¶
func (*HexData) UnmarshalJSON ¶
type HexNumber ¶
type HexNumber uint64
func (HexNumber) MarshalJSON ¶
func (*HexNumber) UnmarshalJSON ¶
type InternalCall ¶
type RangeResult ¶
type RawAccountState ¶
type RawBlock ¶
type RawBlock struct { Hash Hash `json:"hash"` ParentHash Hash `json:"parentHash"` StateRoot Hash `json:"stateRoot"` TxRoot Hash `json:"transactionsRoot"` ReceiptRoot Hash `json:"receiptsRoot"` Number HexNumber `json:"number"` GasLimit HexNumber `json:"gasLimit"` GasUsed HexNumber `json:"gasUsed"` Timestamp HexNumber `json:"timestamp"` ExtraData string `json:"extraData"` Transactions []Hash `json:"transactions"` }
received from eth_getBlockByNumber
type RawInnerCall ¶
type RawOuterCall ¶
type RawOuterCall struct {
Calls []RawInnerCall
}
type Transaction ¶
type Transaction struct { Hash Hash `json:"hash"` Status bool `json:"status"` BlockNumber uint64 `json:"blockNumber"` BlockHash Hash `json:"blockHash"` Index uint64 `json:"index"` Nonce uint64 `json:"nonce"` From Address `json:"from"` To Address `json:"to"` Value uint64 `json:"value"` Gas uint64 `json:"gas"` GasPrice uint64 `json:"gasPrice"` GasUsed uint64 `json:"gasUsed"` CumulativeGasUsed uint64 `json:"cumulativeGasUsed"` CreatedContract Address `json:"createdContract"` Data HexData `json:"data"` PrivateData HexData `json:"privateData"` IsPrivate bool `json:"isPrivate"` Timestamp uint64 `json:"timestamp"` Events []*Event `json:"events"` InternalCalls []*InternalCall `json:"internalCalls"` }
Click to show internal directories.
Click to hide internal directories.