package
0.7.0
Repository: https://github.com/defiweb/go-eth.git
Documentation: pkg.go.dev

# Functions

AddressFromBytes converts a byte slice to an Address type.
AddressFromBytesPtr converts a byte slice to an *Address type.
AddressFromHex parses an address in hex format and returns an Address type.
AddressFromHexPtr parses an address in hex format and returns an *Address type.
BlockNumberFromBigInt converts a big.Int to a BlockNumber type.
BlockNumberFromBigIntPtr converts a big.Int to a *BlockNumber type.
BlockNumberFromHex converts a string to a BlockNumber type.
BlockNumberFromHexPtr converts a string to a *BlockNumber type.
BlockNumberFromUint64 converts an uint64 to a BlockNumber type.
BlockNumberFromUint64Ptr converts an uint64 to a *BlockNumber type.
BytesFromHex converts a hex string to a Bytes type.
BytesFromHexPtr converts a hex string to a *Bytes type.
BytesFromString converts a string to a Bytes type.
BytesFromStringPtr converts a string to a *Bytes type.
HashFromBigInt converts a big.Int to a Hash type.
HashFromBigIntPtr converts a big.Int to a *Hash type.
HashFromBytes converts a byte slice to a Hash type.
HashFromBytesPtr converts a byte slice to a *Hash type.
HashFromHex parses a hash in hex format and returns a Hash type.
HashFromHexPtr parses a hash in hex format and returns a *Hash type.
MustAddressFromBytes converts a byte slice to an Address type.
MustAddressFromBytesPtr converts a byte slice to an *Address type.
MustAddressFromHex parses an address in hex format and returns an Address type.
MustAddressFromHexPtr parses an address in hex format and returns an *Address type.
MustBlockNumberFromHex converts a string to a BlockNumber type.
MustBlockNumberFromHexPtr converts a string to a *BlockNumber type.
MustBytesFromHex converts a hex string to a Bytes type.
MustBytesFromHexPtr converts a hex string to a *Bytes type.
MustHashFromBigInt converts a big.Int to a Hash type.
MustHashFromBigIntPtr converts a big.Int to a *Hash type.
MustHashFromBytes converts a byte slice to a Hash type.
MustHashFromBytesPtr converts a byte slice to a *Hash type.
MustHashFromHex parses a hash in hex format and returns a Hash type.
MustHashFromHexPtr parses a hash in hex format and returns a *Hash type.
MustNumberFromHex converts a hex string to a Number type.
MustNumberFromHexPtr converts a hex string to a *Number type.
MustSignatureFromBytes returns Signature from bytes.
MustSignatureFromBytesPtr returns *Signature from bytes.
MustSignatureFromHex parses a hex string into a Signature.
MustSignatureFromHexPtr parses a hex string into a *Signature.
No description provided by the author
No description provided by the author
No description provided by the author
NumberFromBigInt converts a big.Int to a Number type.
NumberFromBigIntPtr converts a big.Int to a *Number type.
NumberFromBytes converts a byte slice to a Number type.
NumberFromBytesPtr converts a byte slice to a *Number type.
NumberFromHex converts a hex string to a Number type.
NumberFromHexPtr converts a hex string to a *Number type.
NumberFromUint64 converts an uint64 to a Number type.
NumberFromUint64Ptr converts an uint64 to a *Number type.
SignatureFromBytes returns Signature from bytes.
SignatureFromBytesPtr returns *Signature from bytes.
SignatureFromHex parses a hex string into a Signature.
SignatureFromHexPtr parses a hex string into a *Signature.
SignatureFromVRS returns Signature from V, R, S values.
SignatureFromVRSPtr returns *Signature from V, R, S values.

# Constants

Transaction types.
AddressLength is the length of an Ethereum address in bytes.
Transaction types.
No description provided by the author
Transaction types.
PadLeft pads the input with zeros on the left.
PadNone does not allow padding.
PadRight pads the input with zeros on the right.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ZeroAddress is an address with all zeros.
ZeroHash is a hash with all zeros.

# Structs

AccessTuple is the element type of access list.
No description provided by the author
BlockNumber is a type that can hold a block number or a tag.
Call represents a call to a contract or a contract creation if To is nil.
FeeHistory represents the result of the feeHistory Client call.
FilterLogsQuery represents a query to filter logs.
Log represents a contract log event.
Number represents a hex-encoded number.
OnChainTransaction represents a transaction that is included in a block.
Signature represents the transaction signature.
SyncStatus represents the sync status of a node.
Transaction represents a transaction.
TransactionReceipt represents transaction receipt.

# Type aliases

AccessList is an EIP-2930 access list.
Address represents an Ethereum address encoded as a 20 byte array.
Bytes represents a hex-encoded byte slice.
Hash represents the 32 byte Keccak256 hash of arbitrary data.
HashFunc returns the hash for the given input.
Pad is a padding type.
TransactionType is the type of transaction.