Versions in this module Expand all Collapse all v1 v1.0.0 Dec 13, 2022 Changes in this version + var TransactionTypeAccessList = int64(0x1) + var TransactionTypeDynamicFee = int64(0x2) + var TransactionTypeLegacy = int64(0x0) + func OptionalString(s string) *string + func ToChecksumAddress(address string) string + type AccessList []AccessListEntry + func NewAccessListFromRLP(v rlp.Value) (AccessList, error) + func (a *AccessList) RLP() rlp.Value + func (in AccessList) DeepCopy() AccessList + func (in AccessList) DeepCopyInto(out *AccessList) + type AccessListEntry struct + Address Address + StorageKeys []Data32 + func (in *AccessListEntry) DeepCopy() *AccessListEntry + func (in *AccessListEntry) DeepCopyInto(out *AccessListEntry) + type Address Data20 + func ECRecover(h *Hash, r, s, v *Quantity) (*Address, error) + func MustAddress(value string) *Address + func NewAddress(value string) (*Address, error) + func (a *Address) RLP() rlp.Value + func (a *Address) UnmarshalJSON(data []byte) error + func (a Address) Bytes() []byte + func (a Address) MarshalJSON() ([]byte, error) + func (a Address) String() string + type Block struct + Author Address + BaseFeePerGas *Quantity + Difficulty Quantity + ExtraData Data + GasLimit Quantity + GasUsed Quantity + Hash *Hash + LogsBloom Data256 + Miner Address + MixHash *Data + Nonce *Data8 + Number *Quantity + ParentHash Hash + ReceiptsRoot Data32 + SHA3Uncles Data32 + SealFields *[]Data + Signature *string + Size Quantity + StateRoot Data32 + Step *string + Timestamp Quantity + TotalDifficulty Quantity + Transactions []TxOrHash + TransactionsRoot Data32 + Uncles []Hash + func (b *Block) DepopulateTransactions() + func (b *Block) FromRaw(input string) error + func (b *Block) UnmarshalJSON(data []byte) error + func (b Block) MarshalJSON() ([]byte, error) + func (in *Block) DeepCopy() *Block + func (in *Block) DeepCopyInto(out *Block) + type BlockNumberOrTag struct + func MustBlockNumberOrTag(value string) *BlockNumberOrTag + func NewBlockNumberOrTag(value string) (*BlockNumberOrTag, error) + func (b *BlockNumberOrTag) Quantity() (Quantity, bool) + func (b *BlockNumberOrTag) Tag() (Tag, bool) + func (b *BlockNumberOrTag) UnmarshalJSON(data []byte) error + func (b BlockNumberOrTag) MarshalJSON() ([]byte, error) + func (in *BlockNumberOrTag) DeepCopy() *BlockNumberOrTag + func (in *BlockNumberOrTag) DeepCopyInto(out *BlockNumberOrTag) + type BlockSpecifier struct + Hash *Hash + Number *Quantity + Raw bool + RequireCanonical bool + Tag *Tag + func MustBlockSpecifier(value interface{}) *BlockSpecifier + func NewBlockSpecifier(value interface{}) (*BlockSpecifier, error) + func NewBlockSpecifierFromMap(value map[string]interface{}) (*BlockSpecifier, error) + func NewBlockSpecifierFromString(value string) (*BlockSpecifier, error) + func (b *BlockSpecifier) GetHash() (*Hash, bool) + func (b *BlockSpecifier) GetQuantity() (*Quantity, bool) + func (b *BlockSpecifier) GetTag() (*Tag, bool) + func (b *BlockSpecifier) UnmarshalJSON(data []byte) error + func (b BlockSpecifier) MarshalJSON() ([]byte, error) + func (in *BlockSpecifier) DeepCopy() *BlockSpecifier + func (in *BlockSpecifier) DeepCopyInto(out *BlockSpecifier) + type Bloom struct + func (b *Bloom) AddAddress(addr Address) + func (b *Bloom) AddBytes(_bytes []byte) + func (b *Bloom) AddData32(data Data32) + func (b *Bloom) AddLog(log Log) + func (b *Bloom) MatchesAddress(addr Address) bool + func (b *Bloom) MatchesBytes(_bytes []byte) bool + func (b *Bloom) MatchesData32(data Data32) bool + func (b *Bloom) MatchesLog(log Log) bool + func (b *Bloom) Value() Data256 + type Condition json.RawMessage + func (in Condition) DeepCopy() Condition + func (in Condition) DeepCopyInto(out *Condition) + type Data string + func MustData(value string) *Data + func NewData(value string) (*Data, error) + func (d *Data) RLP() rlp.Value + func (d *Data) UnmarshalJSON(data []byte) error + func (d Data) Bytes() []byte + func (d Data) Hash() Hash + func (d Data) MarshalJSON() ([]byte, error) + func (d Data) String() string + type Data20 Data + func MustData20(value string) *Data20 + func NewData20(value string) (*Data20, error) + func (d *Data20) UnmarshalJSON(data []byte) error + func (d Data20) Bytes() []byte + func (d Data20) Hash() Hash + func (d Data20) String() string + type Data256 Data + func MustData256(value string) *Data256 + func NewData256(value string) (*Data256, error) + func (d *Data256) UnmarshalJSON(data []byte) error + func (d Data256) Bytes() []byte + func (d Data256) Hash() Hash + func (d Data256) String() string + type Data32 Data + func MustData32(value string) *Data32 + func NewData32(value string) (*Data32, error) + func (d *Data32) RLP() rlp.Value + func (d *Data32) UnmarshalJSON(data []byte) error + func (d Data32) Bytes() []byte + func (d Data32) Hash() Hash + func (d Data32) String() string + type Data8 Data + func MustData8(value string) *Data8 + func NewData8(value string) (*Data8, error) + func (d *Data8) UnmarshalJSON(data []byte) error + func (d Data8) Bytes() []byte + func (d Data8) Hash() Hash + func (d Data8) String() string + type Hash = Data32 + func MustHash(value string) *Hash + func MustTopic(value string) *Hash + func NewHash(value string) (*Hash, error) + func NewTopic(value string) (*Hash, error) + type Log struct + Address Address + BlockHash *Hash + BlockNumber *Quantity + Data Data + LogIndex *Quantity + Removed bool + Topics []Topic + TxHash *Hash + TxIndex *Quantity + TxLogIndex *Quantity + Type *string + func (in *Log) DeepCopy() *Log + func (in *Log) DeepCopyInto(out *Log) + type LogFilter struct + Address []Address + BlockHash *Hash + FromBlock *BlockNumberOrTag + ToBlock *BlockNumberOrTag + Topics [][]Topic + func (f *LogFilter) Matches(l Log) bool + func (f *LogFilter) UnmarshalJSON(data []byte) error + func (in *LogFilter) DeepCopy() *LogFilter + func (in *LogFilter) DeepCopyInto(out *LogFilter) + type NewHeadsNotificationParams struct + Result NewHeadsResult + Subscription string + func (in *NewHeadsNotificationParams) DeepCopy() *NewHeadsNotificationParams + func (in *NewHeadsNotificationParams) DeepCopyInto(out *NewHeadsNotificationParams) + type NewHeadsResult struct + Author Address + BaseFeePerGas *Quantity + Difficulty Quantity + ExtraData Data + GasLimit Quantity + GasUsed Quantity + Hash Hash + LogsBloom Data256 + Miner Address + MixHash *Data + Nonce *Data8 + Number Quantity + ParentHash Hash + ReceiptsRoot Data32 + SHA3Uncles Data32 + SealFields *[]Data + Signature *string + Size *Quantity + StateRoot Data32 + Step *string + Timestamp Quantity + TransactionsRoot Data32 + func (in *NewHeadsResult) DeepCopy() *NewHeadsResult + func (in *NewHeadsResult) DeepCopyInto(out *NewHeadsResult) + func (nh *NewHeadsResult) FromBlock(block *Block) + func (nh *NewHeadsResult) UnmarshalJSON(data []byte) error + func (nh NewHeadsResult) MarshalJSON() ([]byte, error) + type NewPendingTxBodyNotificationParams struct + Result Transaction + Subscription string + func (in *NewPendingTxBodyNotificationParams) DeepCopy() *NewPendingTxBodyNotificationParams + func (in *NewPendingTxBodyNotificationParams) DeepCopyInto(out *NewPendingTxBodyNotificationParams) + type NewPendingTxNotificationParams struct + Result Hash + Subscription string + func (in *NewPendingTxNotificationParams) DeepCopy() *NewPendingTxNotificationParams + func (in *NewPendingTxNotificationParams) DeepCopyInto(out *NewPendingTxNotificationParams) + type Quantity struct + func MustQuantity(value string) *Quantity + func NewQuantity(value string) (*Quantity, error) + func NewQuantityFromRLP(v rlp.Value) (*Quantity, error) + func OptionalQuantityFromInt(value int) *Quantity + func QuantityFromBigInt(value *big.Int) Quantity + func QuantityFromInt64(value int64) Quantity + func QuantityFromUInt64(value uint64) Quantity + func (in *Quantity) DeepCopy() *Quantity + func (q *Quantity) DeepCopyInto(out *Quantity) + func (q *Quantity) UnmarshalJSON(data []byte) error + func (q Quantity) Big() *big.Int + func (q Quantity) Int64() int64 + func (q Quantity) MarshalJSON() ([]byte, error) + func (q Quantity) RLP() rlp.Value + func (q Quantity) String() string + func (q Quantity) UInt64() uint64 + type Signature struct + func ECSign(h *Hash, privKeyBytes []byte, chainId Quantity) (*Signature, error) + func NewEIP155Signature(r Quantity, s Quantity, v Quantity) (*Signature, error) + func NewEIP2718Signature(chainId Quantity, r Quantity, s Quantity, v Quantity) (*Signature, error) + func (in *Signature) DeepCopy() *Signature + func (in *Signature) DeepCopyInto(out *Signature) + func (s *Signature) ChainId() (*Quantity, error) + func (s *Signature) EIP155Values() (R Quantity, S Quantity, V Quantity) + func (s *Signature) EIP2718Values() (R Quantity, S Quantity, V Quantity) + func (s *Signature) Recover(hash *Hash) (*Address, error) + type Tag string + const TagEarliest + const TagFinalized + const TagLatest + const TagPending + const TagSafe + func MustTag(s string) *Tag + func NewTag(s string) (*Tag, error) + func (t Tag) String() string + type Topic = Data32 + type Transaction struct + AccessList *AccessList + BlockHash *Hash + BlockNumber *Quantity + ChainId *Quantity + Condition *Condition + Creates *Address + From Address + Gas Quantity + GasPrice *Quantity + Hash Hash + Index *Quantity + Input Data + MaxFeePerGas *Quantity + MaxPriorityFeePerGas *Quantity + Nonce Quantity + PublicKey *Data + R Quantity + Raw *Data + S Quantity + StandardV *Quantity + To *Address + Type *Quantity + V Quantity + Value Quantity + func (in *Transaction) DeepCopy() *Transaction + func (in *Transaction) DeepCopyInto(out *Transaction) + func (t *Transaction) FromRaw(input string) error + func (t *Transaction) IsProtected() bool + func (t *Transaction) RawRepresentation() (*Data, error) + func (t *Transaction) RequiredFields() error + func (t *Transaction) Sign(privateKey string, chainId Quantity) (*Data, error) + func (t *Transaction) Signature() (*Signature, error) + func (t *Transaction) SigningHash(chainId Quantity) (*Hash, error) + func (t *Transaction) SigningPreimage(chainId Quantity) (*Data, error) + func (t *Transaction) TransactionType() int64 + func (t *Transaction) UnmarshalJSON(data []byte) error + func (t Transaction) MarshalJSON() ([]byte, error) + type TransactionReceipt struct + BlockHash Hash + BlockNumber Quantity + ContractAddress *Address + CumulativeGasUsed Quantity + EffectiveGasPrice *Quantity + From Address + GasUsed Quantity + Logs []Log + LogsBloom Data256 + Root *Data32 + Status *Quantity + To *Address + TransactionHash Hash + TransactionIndex Quantity + Type *Quantity + func (in *TransactionReceipt) DeepCopy() *TransactionReceipt + func (in *TransactionReceipt) DeepCopyInto(out *TransactionReceipt) + func (t *TransactionReceipt) TransactionType() int64 + type TxOrHash struct + Populated bool + func (in *TxOrHash) DeepCopy() *TxOrHash + func (in *TxOrHash) DeepCopyInto(out *TxOrHash) + func (t *TxOrHash) UnmarshalJSON(data []byte) error + func (t TxOrHash) MarshalJSON() ([]byte, error) + type Uncle struct + Author Address + Difficulty Quantity + ExtraData Data + GasLimit Quantity + GasUsed Quantity + Hash *Hash + LogsBloom Data256 + Miner Address + MixHash *Data + Nonce *Data8 + Number *Quantity + ParentHash Hash + ReceiptsRoot Data32 + SHA3Uncles Data32 + SealFields *[]Data + Signature *string + Size *Quantity + StateRoot Data32 + Step *string + Timestamp Quantity + TotalDifficulty *Quantity + Transactions []TxOrHash + TransactionsRoot Data32 + Uncles []Hash + func (in *Uncle) DeepCopy() *Uncle + func (in *Uncle) DeepCopyInto(out *Uncle) + func (u *Uncle) UnmarshalJSON(data []byte) error + func (u Uncle) MarshalJSON() ([]byte, error)