TronAddress class
Class representing a Tron address, implementing the BaseHexAddress interface
- Implemented types
Constructors
- TronAddress(String address, {bool? visible})
-
Factory method to create a TronAddress from a Tron address string
factory
-
TronAddress.fromBytes(List<
int> addrBytes) -
Factory method to create a TronAddress from hex bytes
factory
-
TronAddress.fromEthAddress(List<
int> addrBytes) -
Factory method to create a TronAddress from an Ethereum address represented as bytes
factory
-
TronAddress.fromPublicKey(List<
int> keyBytes) -
Factory method to create a TronAddress from a Tron public key represented as a list of integers
factory
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
-
toAddress(
[bool visible = true]) → String - Method to get the Tron address as a string, with an option to visible address (base58) or hex address
-
toBytes(
) → List< int> -
Implementation of the toBytes method from the BaseHexAddress interface
override
-
toETHAddress(
) → ETHAddress - To Ethereum address
-
toHex(
) → String -
override
-
toString(
[bool visible = true]) → String -
Method to get the Tron address as a string, with an option to visible address (base58) or hex address
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- lengthInBytes → const int
- Constant representing the length of the Tron address in bytes