SolidityAddress class
An abstract class representing a hexadecimal address in solidity smart conteract system. such as Ethereum and Tron (visible address).
This class defines common methods for working with hexadecimal addresses, including obtaining the length of the address and converting it to a list of integers.
Implementations for specific blockchain addresses, such as Ethereum
(ETHAddress
) and Tron (TronAddress
), will provide concrete
implementations for these methods.
- Implementers
- Available extensions
Constructors
- SolidityAddress(String address, {bool skipChecksum = true})
-
factory
-
SolidityAddress.fromBytes(List<
int> bytes, {bool skipChecksum = true}) -
factory
- SolidityAddress.unsafe(String _hexAddress)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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> - Converts the hexadecimal address to a bytes.
-
toHex(
) → String -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited