ETHAddress class
Class representing an Ethereum address, implementing the SolidityAddress interface.
- Implemented types
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> -
convert address to bytes
override
-
toHex(
) → String -
override
-
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