ETHAddress class

Class representing an Ethereum address, implementing the SolidityAddress interface.

Inheritance
Available extensions

Constructors

ETHAddress(String address, {bool skipChecksum = true})
Creates an ETHAddress instance from an Ethereum address string.
factory
ETHAddress.fromBytes(List<int> addrBytes)
Creates an ETHAddress instance from a bytes representing the address.
factory
ETHAddress.fromPublicKey(List<int> keyBytes)
Creates an ETHAddress instance from a public key represented as a bytes.
factory

Properties

address String
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() List<int>
Converts the hexadecimal address to a bytes.
inherited
toHex() String
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

lengthInBytes → const int
Constant representing the length of the ETH address in bytes