EthereumAddress class
The address data type. If any supplied value cannot be safely represented as an Ethereum address FormatException will be thrown.
Constructors
- EthereumAddress.fromBigInt(BigInt val)
- From a BigInt. The value must be convertible into the standard Ethereum address format of 20 bytes, however unlike the string constructor smaller values will be 00 padded to make up the 20 byte length.
- EthereumAddress.fromByteAddress(EthereumByteAddress val)
- From a byte address
- EthereumAddress.fromString(String val)
- From a string, must be a valid Ethereum address string, i.e 40 characters with a leading 0x
Properties
Methods
-
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 ==(
dynamic other) → bool -
The equality operator.
override
Static Methods
-
toList(
List< String> val) → List<EthereumAddress> - Address string list to EthereumAddress list
-
toStringList(
List< EthereumAddress> val) → List<String?> - EthereumAddress list to address string
Constants
- addressCharacterLength → const int
- The address length in characters