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

address String
The Ethereum 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>
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