EthereumByteAddress class

Ethereum address as a byte array, 20 bytes long

Constructors

EthereumByteAddress(ByteData data)
If the length is greater than addressByteLength then only addressByteLength are taken. If the length is less than addressByteLength the size is padded to addressByteLength with 0's
EthereumByteAddress.fromIntList(List<int> data)
If the length is greater than addressByteLength then addressByteLength are taken. If the length is less than addressByteLength the size is padded to addressByteLength with 0's. Each int must be < 255, if not it is discarded and the value set to 0.

Properties

asString String
As an address string, i.e 40 hex chars with a leading 0x
no setter
byteData ByteData?
The raw byte data
no setter
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
toList() List<int?>
To integer list
toString() String
A string representation of this object.
override

Operators

operator ==(dynamic other) bool
The equality operator.
override

Constants

addressByteLength → const int
The length of an Ethereum address in bytes