EthereumAddress class
Represents an Ethereum address.
- Inheritance
- Implemented types
Constructors
- EthereumAddress(Uint8List value)
- An ethereum address from the raw address bytes.
- EthereumAddress.fromHex(String hex)
-
Parses an Ethereum address from the hexadecimal representation. The
representation must have a length of 20 bytes (or 40 hexadecimal chars),
and can optionally be prefixed with "0x".
factory
- EthereumAddress.fromPublicKey(PublicKey publicKey)
-
Constructs an Ethereum address from a public key. The address is formed by
the last 20 bytes of the keccak hash of the public key.
factory
Properties
- eip55 → String
-
Returns this address in a hexadecimal representation, like with
convert.hex
. The hexadecimal characters A-F in the address will be in lower- or uppercase depending on EIP 55.final - hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → Uint8List
-
Value of the public key.
finalinherited
- with0x → String
-
A hexadecimal representation of this address, padded to a length of 40
characters or 20 bytes, and prefixed with "0x".
final
- without0x → String
-
A hexadecimal representation of this address, padded to a length of 40
characters or 20 bytes, but not prefixed with "0x".
final
Methods
-
compareTo(
EthereumAddress other) → int -
Compares this object to another object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override