ETHAddress class
Class representing an Ethereum address, implementing the SolidityAddress interface.
- Inheritance
-
- Object
- SolidityAddress
- ETHAddress
- 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
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